ok i figured out how to do it. thanks :P
Type: Posts; User: MOH123
ok i figured out how to do it. thanks :P
what if i did
int name; ? will that make a difference? i remember doing names and stuff before but i kinda forgot how, obviously.
ok, im making a text-adventure game and i have just started but i already have problems!
this is the code:
#include <iostream>
using namespace std;
int main()
{
yea, i dont have any books and i just didn't look at the tutorials. i looked in the help file but couldn't find it there either. I'll look harder next time :P
ah, hehe. thanks
well, i need some help with this. how would i be able to make it so when they press the quit option it closes? like this:
1) blah
2) blah
3) quit
//i know this stuff
if (a == 3) {
ok thanks but just one thing, when entering the operator, i know i have to do a,d,s,or m, but if somebody enters something wrong by accident then it will just continuously loop "= Nothing was...
hmm i dont get that, nothing happens when i use that code. could you explain better? like where to i put it and stuff?
-thanks
ok, i found how to do the while code and it works for adding and subtracting but when i try to do it for * or / it will just repeat equals 2 forevor. here is code /*i know it is very messy and i...
well this is my first actual project with C++. Im trying to make a basic calculator, +, -, *, and /. I first had a problem on hwo to loop it so it wont shut down after only doing 1 problem. i have...
hmm...that didnt help at all...
ok, i used to be able to do this code but it wont work now!! can someone please tell me what is wrong?
#include <iostream>
using namespace std;
int main()
{
int name;
i wouldnt say its too young as i am only 14 and seem to be doing......ok. lol.
and i didnt know anybody as young as me used C++!! lol
anybody know anything about a tutorial or something?
oh and also, is there a way to change the color of text in C++?
i just started to try C++ again as lately i have been using game maker programs. anyway, i would like to make an adventure game(text based of course) using C++ but i really dont know how. could...
k, thanks guys
i need help with this code. I know it is very basic and even explained in the tutorials but when i write it myself there is an error. here is code
#include <iostream>
using namespace std;
...
alright thanks
i just got a C++ compiler and made a quick text thing. i was just wondering, can you only make text based games with C++ or is it possible to make games like say starcraft? (i know there would still...