So I would replace "cin" with "getline"? If so, I already tried that, and it still didn't work. I hope there isn't something I am overlooking, because I am pretty sure I did a pretty good job of...
Type: Posts; User: RazorBlade
So I would replace "cin" with "getline"? If so, I already tried that, and it still didn't work. I hope there isn't something I am overlooking, because I am pretty sure I did a pretty good job of...
First of all, I just want to thank you for having being patient with me.
But I keep getting a "Permission Denied" message whenever I try to compile it. Here is my code so far:
//Study -...
I don't understand how I store the right answer in the code so the program has the right answer to compare to the User's answer.
Thanks for the link. I am reading it right now. So you say my code is correct? 'Cause, even with your link I am having a hard time understanding it.
Ohh, oops. I forgot to change that back from when I was messing around. I know the difference between a string, char, and int. But since you mentioned a string tutorial, would you know of any good...
//Study - program that allows User input/output
//for studying. Program asks User to state
//what user thinks is answer for problem at hand.
#include <cstdio>
#include <cstdlib>
#include...
How would I have my program compare input from a user to an already stored string within the program? Plus, how would I make my program give the ability of multiple choice?
Something like this...
Yeeeah, I think I am too tired to even realize my mistakes for right now. So I will try again tomorrow after I get some sleep. Thanks for all your help so far, guys. I really appreciate it.
:)
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
int answer;
cout <<"Use the comma to...
Okay, I was kind of second guessing when I posted my code because of the whole int thing. I haven't gotten to the part in the book yet where it deals with string. But I am confused on what I should...
Cool, thanks Elysia.
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
Well, I picked up the book "C++ for Dummies" and have gotten to page 88. I have just gotten into it last week. The main reason I want to know how to do this is to help me learn and remember some...
I need help with trying to find out how to make a game with C++. I don't want any fancy graphics ........ or anything, just something like this:
"State Comma Rule 7: *User puts in whatever they...