General C++ Programming (Page 32)

PLEASE help! C++ assignment due tonight!Computer Tick Tack Toe
 
The problem I am having is the computer does not switch turns after it inputs a move, infact the c...
[1 reply] : You are just reading the move from the first player. Let's say I enter... (by billyb29)
lower half of parallelogram???
 
this is what i have so far: #include <iostream> using namespace std; int main() { ...
[1 reply] : what exactly is the problem? the code seems to be working fine... (by billyb29)
Mixed expressions, loops and Formatted output
 
Hello, I need some general guidance with the following problem: 1) ask the user to input a ma...
[2 replies] Last: If that is all you doing (number operator number operator number) it w... (by billyb29)
Code won't compile
 
Can someone fix this so it could compile? Thanks #include <iostream> #include <string> #include <f...
[9 replies] Last: How many arguments do you have in the call of highestScore on that lin... (by keskiverto)
Range check is not occuring?
 
In my program I have a range check setup in the class I call from main, but when I run it and put in...
[3 replies] Last: Yes, since you want to validate the parameters. (by LB)
Syntax Error?
 
#include <iostream> #include <math.h> using namespace std; int main() { char a, s,...
[2 replies] Last: Thanks, can't believe I didn't realize that. Works fine now and I edit... (by Rodr1697)
by Kevint
Switch/case need help
 
So we have a weekend assignment that is "Write a c++ program that will allow a user to input their f...
[7 replies] Last: Never mind i FINALLY got it. thank you so much for your help (: (by Kevint)
C string program
 
Can someone please show me how to do this? replaceSubstring Function Write a function named replac...
[1 reply] : What have you written so far? What specifically is confusing you?... (by LB)
Quick look at "Accepts a pointer to a C-String" What does this mean???
 
I have made this program run, however in the book it says my functions should "accept a pointer to a...
[6 replies] Last: Thank you, I thought I had that, guess I overlooked it lol (by TheDMinor)
c++ converting pseudo code for runtime
 
I am given the following information, i am trying to convert this in a function. c ← 0 for i ← ...
[4 replies] Last: Ah, thank you i cant believe i didn't notice that. haha Thanks (by hoofhamples)
I/O problems including a map container
 
Hello, I am having a hard time understanding what the problem with my code is. The problem that o...
[9 replies] Last: if im understanding correctly of the reporducable code this should be... (by MiiNiPaa)
by rich1
Column sums
 
Hello world imagine you are given a matrix of positive integer numbers (maximum 25*15, value of num...
[2 replies] Last: Your solution was the first that sprung to my mind and yes - it's not ... (by rich1)
problems with for command
 
Hello, this is my assignment: Write a program that will predict the size of a population of organ...
[1 reply] : Please put your code in code tags: [co de]Put your code between thes... (by Disch)
by srowe
Formatting iostream for readable hex.
 
My problem is that the setfill('0') doesn't affect the output; I want four columns of 64bit numbers...
[6 replies] Last: Right again. Boy I am rusty. lol Thanks. And yes the class library i... (by srowe)
Finding a char array in a large file
 
I have a specific byte (that is unsigned char) array, that I need to find in a very big file (2GB or...
[6 replies] Last: Use a string search algorithm (instead of a pattern-matching algorithm... (by JLBorges)
Search a dynamic array for a string, and return the indices
 
Hello. I am looking for help with my program. I need it to search a dynamic array which I build fr...
[2 replies] Last: Looks like you need to increase your compiler warning levels, and fix ... (by jlb)
by Ausha
operator overloading
 
Hi, having trouble with understanding operator overloading, everywhere there is theory explained but...
[3 replies] Last: Very nice^^ Please mark your question as answered ;) (by Gamer2015)
Error C2678?
 
So I have the following code: template<typename T1, typename T2> class Pair { public: T1 a...
[16 replies] Last: Ah, I see. Well, I think all my questions have been answered, so thank... (by RotatingAxis)
by bpc123
Not exiting While loop
 
Hey guys. This is a portion of code that I've been trying to fix, and I know I'm missing something b...
[1 reply] : You exit the while loop only if both conditions are false, so you need... (by ats15)
Pages: 1... 3031323334... 52
  Archived months: [jan2015]

Cannot post in this page. To post a new message, go to the first page.