so to run it using the cmd commnad I would type what? The program is located in my documents/programs folder/neverfear.cpp
how would I type that in the dos screen to run it? Thanks alot guys for...
Type: Posts; User: coreyt1111
so to run it using the cmd commnad I would type what? The program is located in my documents/programs folder/neverfear.cpp
how would I type that in the dos screen to run it? Thanks alot guys for...
is the return 0 code closing it? How do I run it from the console window? I want to understand why this program closes so I wont make this mistake in the future. Thanks
ok so im using Dev-C++ complier. I just wrote the simpliest program ever yet I cant get it to run. I complied it and all but dos just pops up really quick and disappears. Here is the code:
...
I would also need it when users input a word for the program to search the program for these unique words.
Ok, I need to assign unique values to words. Like say for instance the word "business" has a value of $%%^&*(*
Is it possible to do by using structure variables?
thanks manutd. I will try it out.
thanks manutd. What exactly does a fstream do? Im a little confused.
how do I store it in a text file, what would this method be known as? Sorry im still learning.
ok so I wanna use varaibles to store data. The thing is I wanna use the Cin >> input so that everything people type in is stored in the program. I understand that you can allow users to type in info...
One thing I do notice is I can only enter one number for conversion then when I press enter again it closes, maybe thats why the book didnt tell me those two lines of code? Thanks alot for the help...
I got it!! I inserted this code like Desolation said:
cin.ignore();
cin.get();
What I wanna know is why did my C++ without fear not advise me to enter that code at the end so I could run...
I cant seem to get the run cmd way to work. If my file is named convert.cpp and is located in my documents then would it be mydocuments/convert.cpp
?
why is my book not teaching me to do this if this isnt the correct way? Maybe that comes later in the book?
Thanks Desolation. So your saying if I add those two lines I can run the program without typing cmd etc? Where would I insert those two lines? Thanks
Oh yea the complier im using is Dev C++ 4.9.9.2 beta if that matters.
Ok so this is my first program ive written. Its a Celsius to Fahrenheit converter. Its the first code example in the book I bought C++ without Fear. I did the code exactly as the book showed, the...
You think I should learn both? Isn't C++ powerful enough to handle it all?
Well im making a AI program and I heard prolog is good for AI. Anyone here know Prolog? I just dont know what to use, C++ might be hard for AI. My AI program will have databases, the program will...