• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Random access iterators
 
In this code: vector<int> mydata(100); mydata = 999; In statement 2 does that call t...
[6 replies] Last: Doesn't the begin function return an iterator, and the vector containe... (by Daleth)
Help Please
 
So I've been tasked with creating a program that checks to see whether or not a string is a palindro...
[2 replies] Last: My apologies, I'm new here. I've edited my original post to include co... (by futureshocked)
Executing of batch file
 
I want to execute one command using batch file but non of below code is working where Please tell me...
[no replies]
[Help!] tic tac toe void function (1,2)
 
void newtable (char board ) { for(int n=0;n++;n<5) { if(n%2==0) ...
[29 replies] Last: so if got it down to this void clearboard (char board ) { board = ... (by alen1234di)
by Jebus
I need help finishing up a game I started
 
Hello! I began working with object oriented, I found a fun game to start which is hangman. First I l...
[no replies]
by TMoney
How would I write this program?
 
Here is what the program needs to do: Write a program which allows the user to read a list of nu...
[12 replies] Last: display how many times the number occurs http://en.cppreference.com/w... (by MiiNiPaa)
Value define problem in class function
 
Hi, I have a class: class testa { public: int n; double s; void funca(); } void funca(...
[7 replies] Last: s inside funcb() is function local. You will got an error on line 20. ... (by MiiNiPaa)
Add value to beginning (left hand side) of string
 
This is probably a stupid question, but how do you add a value to the beginning of a string instead ...
[17 replies] Last: When i don't include (int)"" in my code an the compiler gets an erro... (by Gabz21924)
HELP- not saving text to the specified location
 
Here's my code, my problem is that it is not sending the keystrokes to the LOG.TXT file I want them ...
[no replies]
ostream/istream iterators
 
How can they be classified as iterators? http://en.wikipedia.org/wiki/Iterator The Wikipedia ...
[4 replies] Last: Thanks guys! (by Anmol444)
Validating that there are no integers
 
I am working on a program where the person enters their name and their gross pay. I had to validate ...
[3 replies] Last: Well, I have not experienced the infinite loop. However, I can tell yo... (by Daleth)
HELP- [Error] 'fprintf' was not declared in this scope
 
I have this error- 'fprintf' was not declared in this scope (line 32) and this 'fclose...
[3 replies] Last: nevermind that was a stupid question...... (by I 8 Crayon)
question about headers and objects files
 
Hi all, I have a question regarding how GCC relates a header file and its binary file. The followi...
[2 replies] Last: thanks. when you say all the libraries provided, you means all the lib... (by santiagorf)
by labeeb
Error in reading struct from binary file.
 
Below is the code for reading a struct that was stored in a binary file. Problem is while reading f...
[no replies]
Smart Pointers
 
When i try to compile this code it gives me a error during run-time saying "*program name* has stopp...
[5 replies] Last: Oh ok thanks, that makes sense. So they can only point to dynamically ... (by Anmol444)
Please help! My program is not reading in values from a .DAT file correctly
 
Hey guys I'm really stumped on this problem I'm having in my lab. We are supposed to split this lab ...
[1 reply] : This is my code from the previous lab we are supposed to build off of.... (by ovaltine99)
initialising arrays
 
How do you set all the entries in an array to 0 or a particular number... much appreciated
[3 replies] Last: Misc. other stuff: - For char arrays, you can also use const size_t... (by andywestken)
Help- expected unqualified-id before '{' token
 
here's my code, I get this error on line 16 expected unqualified-id before '{' token What am I ...
[2 replies] Last: Thanks you! (by I 8 Crayon)
Iterators
 
From my book: "Iterators are objects that behave like pointers and are very important for accessing...
[14 replies] Last: Alright thanks guys. One question about line 36 and 37. Why is the ar... (by Anmol444)
Pages: 123... 85
  Archived months: [mar2013]