yea, thats not cutting it, you try using that in my code and see what happens, and its not pretty
Type: Posts; User: futurama140
yea, thats not cutting it, you try using that in my code and see what happens, and its not pretty
OK, so I got that one problem fixed, but now how do i loop it back the the first choice if someone inputs an unrecognised command? i have:
#include <iostream>
#include <string>
using namespace...
no, ichanged it earlier, before i made the post with the question, my current code is:
#include <iostream>
#include <string>
using namespace std;
int main(void)
{
string name;
Also, when i type in "leave" when running the program, after the
cin>> choicea; the program exits, does anyone get what im trying to do? i want it to display the one cout after i type in leave, and...
so how do i compile the string into a string into the if statement?
okay, i have this now... it wont do squat, and i know i have absolutely nothing good here, but maybe you can see what im trying to do, and understand why im an idiot, btw, my cout is just random...
thanks! i know im a n00b but it really helps anyway
Ive been having a problem, ive gone through the frst few basic lessons in c++ here at the site, and can get my tiny programs to accept a single character or number, but it will not accept any whole...
actually, it was that i didnt have "()" around "a - 32", it did the multiplication first, thats why I got that answer
#include <iostream>
using namespace std;
int main()
{
int a;
I got it, finaly, thanks
Ok, all the suggestions have not helped, this is what i have, and everytime i get -32 as the output
#include <iostream>
using namespace std;
int main()
{
float a;
ok, yet another problem:
#include <iostream>
using namespace std;
int main()
{
int a;
ok, now I am trying to get a letter in plae of a number, i have the "char" tag, but when i put a letter in, it says that value "a" has not been used before,
:D :D :D YES thats it! ty but I am confused about
int zipcode = 59602;
Does that have nothing to do with the outcome?
ok here is what I have, What is the problem with it please?
#include <iostream>
using namespace std;
int main()
{
int zipcode = 59602 ;
I am having a problem with understanding the "||" function. ( I know I probably sound stupid, I just started learning C++ tonight...) I was just looking at a little program, and when I use integer =...