ahh yes I see now
#include <iostream>
using namespace std;
int main()
{
cout<<"Here we go!\n";
char var1 = 55;
Type: Posts; User: Zero_X
ahh yes I see now
#include <iostream>
using namespace std;
int main()
{
cout<<"Here we go!\n";
char var1 = 55;
awesome, i didnt know i could stack the case's like that. but now ive run into another problem im not sure if i will solve. for some reason im still getting 8 && 10 to show with no ascii character. i...
hey guys i keep going off and on with my programming resulting in my forgeting how to do most everything :p
ok so the program im working on is supposed to display all the ascii characters and...
Hey guys I was looking for some help on my current situation.
ive had to replace my motherboard in my pc twice and i didnt reformat my pc on either time...come to find out now it may be why ive...
ok i fixed it now guys, sorry about that. i was trying to put the if() statement before the case 3:... i switched it to inside of the case 3: and it worked fine.
cout<<"1) Option-A\n";...
Ah I see whats going on now, Thanks alot!
thanks guys, I was looking over the tutorial on this site for it and it gave the example
random = (rand() % (max - min + 1) + min)
and im getting all that except why we add +1. my math is not...
hey guys, im still working on that little turn based game and im trying to add random damage to it. but i think im using rand() wrong.
this is how i am calling it...
i have this function built...
i make a call from one of the functions above it, i ran into an error when i had the functions above main() below it. so i found the fastest way to get it running way to prototype it and keep the...
heh yeah that would be pretty kool....but a little bit down the road for me :p
hey thanks man, Comments like that make me feel like i might actally be learning some of this c++ stuff lol
ok so this is the little turn based game i was working on...and i just got it working...kinda lol but i was curious as to how you guys would make this thing work. im sure you have ways to do the same...
ah ok this is my mental block im at
int clSel(player1& play1) using the '&' how is that working? its a pointer correct? i havnt messed with pointers much im going to go over the tutorial on this...
ok sorry..but im stuck again...how would i pass it to clSel()? i know i would go
clSel(play1); but then what do i put in the clSel() prototype? i know how to do it with datatype int and char is it...
ooo ok that makes sence to me, i'll try and see if i can make it work. thanks alot guys
ok the break; works and i used it before but i thought it was breaking it out of the program all together but it was just returning to main() and theres nothing left for it to do :p
and in my mind...
hey i tried it with a string but i got the same output :confused:
i want it to be flexible, i was going to just leave it blank so that they could enter how ever many characters they needed for their name...again im sure there is a better way but from the very very...
hey guys im a beginner in C++ and its ganna show :p but here is my code....and when you run it you'll see what im getting..im not really sure whats going on
#include<iostream>...