News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

newbie wants a little help

Started by rollingstonedev, November 26, 2015, 10:26:43 PM

Previous topic - Next topic

rollingstonedev


I am considering Code::Blocks to develop a AI scripted language.

Here's a snippet:

.(out("hello world").(!]

Which should print the text on the console.

How should I do this with Code::Blocks?

Thanks,

Stefaan Meeuws

BlueHazzard

Quote from: rollingstonedev on November 26, 2015, 10:26:43 PM
I am considering Code::Blocks to develop a AI scripted language.
what is a AI scripted language?

Quote from: rollingstonedev on November 26, 2015, 10:26:43 PM
How should I do this with Code::Blocks?

according your information i would write it like this:

std::string in;
std::cin >> in;
if(in.compare(".(out("hello world").(!]"))
   std::cout << "hello world";
return 0;


greetings