Wheres the rest of the code:Quote:
Originally Posted by the zack
Printable View
Wheres the rest of the code:Quote:
Originally Posted by the zack
i need some brushing up for some codes on lua any e-books/sites that someone could direct me too......actually i might just head to barnes and nobles and pick up a copy of LUA the programming launguage and c/c+ for dummies
#include <iostream>
int main()
{
std::cout << "aloaldafgd\n";
return 0;
}
its not really an error,go to cmd and just browse to where the exe is,to make life easier replace reture 0 with
while (1);
thank you gamehunter101 you solved my problem!
This waits for input before closing. Without cin, the app will print "aloaldafgd" and close hence you just see it 'flash'.Quote:
#include <iostream>
int main(int arg, char ** argv)
{
std::cout << "Hello World" << std::endl;
char temp;
std::cin >> temp;
return 0;
}
thanks for that oneQuote:
Originally Posted by yaustar
Hey I need a little help on something. I am trying to make a program (that I will actually use in real life) where you input a word and it would return a corresponding word, for example: "hello" would returrn "hi to you too", and in the same program if you input for example "nice hat" it would return "thanks i got it at target". I tried to make an if statement for it but I just doen know where to start. can somebody start me out on a template of some kind they could write out?
I am using this for debate class, I have a laptop, so if I write the case name "coast guard" then it would return various arguements to use against the case. i also want to be able to ask other questions to the program, so it can narrow down its outputs.
Depending on your level of programming, it will be very tough to do. You will need to at least implement a text parser to analyse the key words such as verbs and nouns. These can be written in a seperate file as a list that can be loaded in at the start of the program.
Then you have to create a system for the reply which should be able to construct a (legal) sentence based on keywords from the input.
Not easy.