Ok, I think I got it. Thanks for the help ^_^
Type: Posts; User: KunoNoOni
Ok, I think I got it. Thanks for the help ^_^
I think I'm missing something about passing variables to functions. This small program doesn't do what I want it to do. Its suppose to print a = 0 then call the function then print a=5, but it prints...
Ok I think I figured it out. Thank for all the help!! ^_^
I'm not at home right now... so no I haven't compiled it yet.
As far as my example, I don't know what I was thinking about when I put the return in the loop :o . 'a' is the array which is a...
so if I understand you correctly then this should be legal...
for (int x=0;x<10;x++)
{
a+x="*" //assuming the array is string
return a
}
I'm kinda concerned about not being able to pass arrays to functions.
Would be just be better to make the array global?
here's an example.
I'm making a text based tic-tac-toe game.
I...
Hmm... The oldest computer I have would have to be my Atari 800, I also have 2 Apple ][e and a ][c
I don't believe so, as long as they have the correct .dll file
Yeah I changed the char to string, too away the * and added #include <string> and it worked! ^_^
I ust needed to add in an IF statement so that the word 'done' wasn't added to the list.
Thanks...
Oops! hehe thanks for the info I'll try that when I get home.
Tuesday of this past week I decided I would give myself a long over due refresher course in C++. So I started with the tutorials and when I got to Linked Lists I got stuck and a practice program I...
Character Player;
cin >> CharacterClass;
for(;;) {
if (CharacterClass == "d" || CharacterClass == "D") {
CharacterClassvar = Dwarf;
...