General C++ Programming - April 2009 (Page 16)

Bool Question
 
Well...It looks fairly simple and I could do this myself. But one thing I don't understand is how come doing a prime number test requires assuming a number is t...
[4 replies] Last: I'm sorry, I said that backwards. If it finds a factor, is_prime shoul... (by Gumbercules)
Newlines in text files I/Os
 
Hello. I am writing this program for a class I'm taking and I'm encountering a problem. My text file is simulating a vehicle's license, with basic information a...
[2 replies] Last: Oh, thanks, but I just discovered my problem, I have to move the curso... (by daevashiara)
Problems with vec.erase
 
I wrote a program that is reading a text from a text file. The program should erase all double words, all words with less then four letters but it desn't do any...
[11 replies] Last: because i am not really sure how to use it. (by MarcusTx)
return 0; ...
 
This program succeeds, and its runs but, it doesnt to anything. Everytime i run it the "press any key to continue...". Any reasons why this doesnt work? #inc...
[3 replies] Last: nvm, ha thanks, sorry im a doorknob lol. (by chewykb24)
by ilyes
example and use of a template
 
hello i would like to create a template because i really need it! so i had focus an example but i haven't find any thing that is simple so can you give me...
[3 replies] Last: read also: http://www.cplusplus.com/doc/tutorial/templates/ for more e... (by Bazzy)
vector = automatic memory leak!??!?!?
 
Is this a fake memory leak or what? How come a vector trips the _CrtDumpMemoryLeaks() into saying there is a memory leak??? #include <iostream> #include ...
[10 replies] Last: I actually did it is a global variable ( which might be ok if it is th... (by guestgulkan)
share data between two applications
 
Hi everybody, I have two applications that share memory with each other. As I understand it, I can do it either with files or with sockets. I don't want to w...
[4 replies] Last: the easiest is to use #pragma share region. :) something like this: ... (by writetonsharma)
by Deimos
File Parser...Anyone?
 
Hey everyone, I'm currently working on learning the basics of game development using a (very nice) low-level graphics library, SDL. I'm trying to use OOP as ...
[5 replies] Last: hahahaha... me too will go with xml.. because its not related to wi... (by writetonsharma)
GUI Console
 
I have created many console applications with that boring black screen. Does C++ console application support GUI. If the answer is yes can you please help me....
[18 replies] Last: Well I didn't take offense by any of that either. ^^ Obviously I c... (by Disch)
by sadi
why it write the last twice??
 
good day all; I have a question says Write a complete C++ program that keeps read numbers from user (i.e. while(cin)), then find and write on a file each ...
[4 replies] Last: Oh, thanks (by sadi)
Infinite value
 
Hallo Is there any predefined constant in C++ which I can use for infinite value. I have lots of mathematical calculations to do, and it would be convenient ...
[2 replies] Last: better is numeric_limits<double>::infinity() http://www.cplusplus... (by Bazzy)
Exception/assertion error
 
I am trying to add time to my program and I keep getting these "Unhandled exception" errors. Can anyone help? Here are a few code snippits: Where all of my v...
[15 replies] Last: If you use initializer lists, you can avoid this kind of problem, at l... (by jsmith)
retrieving data from a file.
 
I am getting large negative numbers like the data from the .txt file isn't being read. Here is the code. What am I doing wrong? #include <iostream> #includ...
[3 replies] Last: Thank you very much. You were most helpful. (by Rowland1965)
by Gaylle
how to add a new project template
 
helle everyone. i would like .txt files (notepad) to be an option when i want to add a new project item. i dont know how to go about this. could somebody please...
[1 reply] : what?? pls explain. (by writetonsharma)
The logic of sinc function.
 
I'm having trouble with a problem. The problem asks that I use the sinx/x function and produce a table of values for the function on a user entered interval. I...
[2 replies] Last: Yes, but additionally how would I continue the table for the interval? (by bookercorey1)
Algorithms
 
Hi Im pretty new to c++ and im still in the basics,but I've been seeing a lot of texts on algorithms in programming and was wondering at what level I can get in...
[2 replies] Last: Or are you asking about the algorithms in the general sense? In t... (by jsmith)
Problems with file I/O
 
Hi, I'm reading a ppm image file into my program. Its a binary file with some comments and image information in ASCII at the beginning. I read the first few li...
[1 reply] : they must have found a eof character in the file and must have stopped... (by writetonsharma)
Threading in C++ (under Linux)
 
Hi all, I am about to use threading in a C++ application for performance reasons. I have read that Boost library (www.boost.org) and commoncpp by gnu are pop...
[3 replies] Last: use pthreads on linux/unix. you can find lots of tutorials on web. (by writetonsharma)
making a game for uni
 
hey guys I'm studying games design in uni at the moment as part of our course we do not learn C++ and we are design students not programming students, I however...
[no replies]
by mwaser
NURBS library
 
hi all i'm looking for a nurbs library in c++. does anyone know a good source? i'm workin with microsoft vs 2008. thanks mwaser
[2 replies] Last: yes. this version of nurbs++ seems too have problems when compiled wit... (by mwaser)
April 2009 Pages: 1... 1415161718... 20
  Archived months: [mar2009] [may2009]

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