Author Topic: newbie wants a little help  (Read 3263 times)

Offline rollingstonedev

  • Single posting newcomer
  • *
  • Posts: 2
newbie wants a little help
« on: November 26, 2015, 10:26:43 pm »

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

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: newbie wants a little help
« Reply #1 on: November 26, 2015, 10:42:03 pm »
I am considering Code::Blocks to develop a AI scripted language.
what is a AI scripted language?

How should I do this with Code::Blocks?

according your information i would write it like this:
Code
std::string in;
std::cin >> in;
if(in.compare(".(out("hello world").(!]"))
   std::cout << "hello world";
return 0;

greetings