hmm qustion.. {"frist" } what do i put in the " "? would the qustion actually go in there? or just a number or something to link the qustion later?
Type: Posts; User: Gardul
hmm qustion.. {"frist" } what do i put in the " "? would the qustion actually go in there? or just a number or something to link the qustion later?
I just read about that actually... I will have to give that a try. and yes I do use C++ Dev.. i was thinking maybe how boreland is soon.
i really dont know much about 2d arrays. but im sure inm y text book they mention it.. any more ideas or hints.
im making something like jeopardy where you have qustions and such. But what i was wondering how can i do random qustions. and how should I go about making the qustions so they can be read. Dont do...
haha.. i got it.. thanks..
sz[strlen(sz) - 1] = 0 what does this do? I tried it and it says i need to declare it. and without me really knowing what it does or is, its not gonna help me learn ..chow.
this prints the time
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
I did a loop like this
int grade = 1;
int main(int argc, char *argv[])
{
while ( grade != 10 ){
here is something simple, and im having a brain fart this after noon, I need to have text lets say cout << " hello world"; repeated 5 or more times with out me typing it a bumch of times.. I know.....
it works for me. and i use the same DEV.
thanks sly once again :)
*edit* and crazy norman, i did fix that before i saw your post. but thank you any way.
if ( gameStatus == WON ){
w = x * 2;
cout << "You have won: " << w << endl;
newtotal = w + total;
cout << "You now have " << newtotal << " dollars. ";
newtotal...
what I'm looking for is this:
to have the new total of a persons money carried over into the new game. here is some code i did with out the carrying over.
if ( gameStatus == WON ){
w...
as will I :)
OMG... i cant belive i didnt figure that.. Thank you very much.. you have helped me understand this just a bit more. :) i hope you all have a good day for helping me:)
I think when I started DEV it was on there. since i dont remember typing it.
what should i do? I'm semi new and dont have much experence with loops. any ideas or examples would help. thanks.
hmm i didnt even see that.. thanks for pointing that out...
okay, i just took out the return 0; but, the thing is. It is still doing it. I'm now a bit lost..
okay here is the problem. You see I am writing a dice rolling game. Kinda like craps. I got the dice rolling part all worked out. But the problem is, When the player wins or loses, it closes. Soa ny...
no that isnt all my code. I didnt seem the need to post the hole thing thats all.
i get keeping this error, undefined reference to Attack,Run and Defend. here is my code.
string battleSelect;
void Battle(); {
cout << "You Have engaged into battle!! What will...
Okay frist things frist. I am making a Text based game and need some answers. I have created a formula for hit points for races. here is the code,
player.BaseHitPoints = (50 * 3) / 2;
this...
Thanks for the info. some one let me borrow How to Program C++ by Deitel & Deitel second Edition. so far its a decent book. any reviews you all might have on this book?
Thanks. by any chance u know how much the book costs?
hello all im new here, as you all might notice. I 'm a was a Basic programmer for awile ( mostly used liberty basic) and now im moving on to C++. but I have a slight problem. Frist im using Dev c++...