General C++ Programming - November 2009 (Page 4)

C++ Syntax Error Issue
 
Hello all, I am new to C++ and I need a little help. I am debugging some code I wrote, and I get ...
[5 replies] Last: I thought I had poured over all the code countless times, and as I wen... (by homecheese101)
time delay measurement
 
Hi, Does anyone know of any tool that would measure the time spent in a C++ program? I need the m...
[1 reply] : The functions from ctime should help you: http://www.cplusplus.com/ref... (by Bazzy)
Printing contents of an input file to the screen
 
My program is supposed to read from this output file and print the contents to the screen NOTHING ...
[2 replies] Last: The problem is that the output wont print to the screen. When compiled... (by babe20042004)
Matrix recursion
 
Greetings everyone! I need to make a recursive funktion for matrix inversion, and was wondering if ...
[1 reply] : Post your code please. (by Zhuge)
My Program Wont append
 
#include <iostream> #include <fstream> using namespace std; int main() { int num=0; int t...
[2 replies] Last: Thanks! Such a simple error! (by babe20042004)
Arrays and Strings
 
I need to write a program using arrays and strings.Here is the question. A class of students takes ...
[1 reply] : Please declare student_count in your program... There is no declarati... (by chakde)
Convert from FILE to fstream and vice versus
 
Dear everyone, I am writing a C++ program and using fstream(ifstream and ofstream). Additionally...
[2 replies] Last: Thanks helios. If so, is there any similar function in Linux? Or is... (by strongdevil)
by funny
how to re-write each line in text file easily way
 
hi, im trying to make a function which could (in for statmnt) read format from file, delete same lin...
[4 replies] Last: does he have to close the file before opening it again for writing on ... (by herbert1910)
Runtime error #2 Yahtzee program
 
I am in the process of writing a little Yahtzee program out of boredom. However, I have stumbled upo...
[5 replies] Last: Ok, I've used std::getline() before, when trying to get strings as inp... (by Matt23488)
planitary motion
 
i wan to make a program that will simulate the earth orbiting the sun. i have all the opengl experie...
[6 replies] Last: [quote=helios]Or unless the camera is behind the Earth, with the Sun i... (by Duthomhas)
Why integer booleans?
 
I find that many people redefine integers to be booleans. As a boolean can easily be represented as ...
[8 replies] Last: char myChar = 'h'; myChar is 1 byte. char myChar = "abcdefgh... (by Kangaroux)
by wany
Using current sytem time in program
 
Programming language c++ I have this project and what i have to do is get the current system time (...
[no replies]
[c/c++] video library...
 
hi everybody!! i would like to write a program that can open, show and modify a video. actually at...
[12 replies] Last: calm down guys, please... I did not specify the OS, so i think both... (by mamo139)
cin.getline for int, or cin for strings?
 
Okay, so I'm supposed to be writing a program that will take data in from the keyboard and then outp...
[1 reply] : You should read this: http://www.cplusplus.com/forum/articles/6046/ (by Bazzy)
Having problems with TURBO c++
 
I ran the following program in Turbo C++ and got some errors related to the usage of the new operato...
[3 replies] Last: Man, just dont use Turbo C, it's totally out-standard. (by outsid3r)
by wimvd
maximum allocation size not reached?
 
Hi, To store data from a precalculation on about 1100 images and 830000 features, i'm trying to a...
[2 replies] Last: [wvandam@cancer ~]$ ulimit -m unlimited Unlimited should work. :) (by wimvd)
How to restrict automatic Type conversation in C++?
 
I want to restrict automatic type conversation in C++ function calls. I have the below piece of c...
[3 replies] Last: I agree with kbw's solution. (by jsmith)
sprintf vs stringstream
 
Are there any advantages to using sprtintf over stringstream? Is it any faster since it does not dyn...
[1 reply] : When you can choose between C and C++, always choose C++. So use stri... (by Bazzy)
Init 2D Vectors
 
How can I initialize a 2D vector at the place where its declared. An single dimension vector is d...
[2 replies] Last: thx a ton! (by luckycusp)
by bzz77
C++ beginner's questions on vectors of vectors (declaration, definition)
 
Hello everyone: I am a C++ beginner. I have questions regarding vectors of vectors. I have read...
[2 replies] Last: Hi Disch: Thanks a lot for your example and for your advice about u... (by bzz77)
November 2009 Pages: 123456... 16
  Archived months: [oct2009] [dec2009]

This is an archived page. To post a new message, go to the current page.