c yah!

  • 4 Replies
  • 811 Views
*

unreality

  • Starship Trooper
  • *******
  • 435
  • SE,EE,Physicist,Philosopher. Built world's 1st AGI
    • Eva Progress, from AGI to ASI
c yah!
« on: November 21, 2017, 06:58:59 am »
Good old c. Not even c++ can touch it in performance or program size.

https://benchmarksgame.alioth.debian.org/u64q/c.html

*

Korrelan

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1114
  • Look into my eyes! WOAH!
    • YouTube
Re: c yah!
« Reply #1 on: November 21, 2017, 04:57:21 pm »
From the post title I thought someone was leaving lol.

 :)
It thunk... therefore it is!... my project page.

*

unreality

  • Starship Trooper
  • *******
  • 435
  • SE,EE,Physicist,Philosopher. Built world's 1st AGI
    • Eva Progress, from AGI to ASI
Re: c yah!
« Reply #2 on: November 21, 2017, 07:26:20 pm »
Yah, looks like I was one h away from leaving lol

*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1064
    • 8pla.net
Re: c yah!
« Reply #3 on: November 21, 2017, 10:47:36 pm »
I love C Language.  I am not saying anything bad about C++, but it is a just super structure.

My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1064
    • 8pla.net
Re: c yah!
« Reply #4 on: November 21, 2017, 11:20:34 pm »
This source code is posted strictly for discussion purpose, without any warranty or guarantee of any kind whatsoever.

Code: [Select]
#include <stdio.h>
#include <string.h>

/* 

    Some C language to begin chatbot design.

*/

int main()
{
  /* DATA */
  char stimulus[72];
  int match;

  /* INPUT */
  printf("Say something: ");
  fgets(stimulus,72,stdin);

  /* PROCESS */
  if (strcasecmp(stimulus, "hello\n") == 0) printf("You greeted me.\n");

  /* OUTPUT */
  printf("You said: %s\n",stimulus);
  return(0);
}

Program Output:
Quote
Tell me something: hello
You greeted me.
You told me: hello


It is simple, but simple is a good place to start sometimes.
My Very Enormous Monster Just Stopped Using Nine

 


Bridge to the future of engineering
by Tyler (Robotics News)
November 15, 2018, 12:00:54 pm
The many interfaces of computing
by Tyler (Robotics News)
November 14, 2018, 12:00:23 pm
Emotionally Responsive Avatars
by 8pla.net (AI News )
November 12, 2018, 10:00:17 pm
World's First AI News Anchor
by squarebear (AI News )
November 12, 2018, 08:22:59 am
Looking back at Project Athena
by Tyler (Robotics News)
November 11, 2018, 12:01:49 pm
A.I. Optometrist
by LOCKSUIT (AI News )
November 11, 2018, 07:06:36 am
Highlighting new research opportunities in civil and environmental engineering
by Tyler (Robotics News)
November 08, 2018, 12:00:38 pm
Why some Wikipedia disputes go unresolved
by Tyler (Robotics News)
November 07, 2018, 12:01:07 pm

Users Online

80 Guests, 1 User
Users active in past 15 minutes:
LOCKSUIT
[Trusty Member]

Most Online Today: 92. Most Online Ever: 208 (August 27, 2008, 09:36:30 am)

Articles