General C++ Programming - February 2009 (Page 7)

Urgent: Generating random numbers WITHOUT repetition
 
Hello. May I know how to generate random numbers where all the numbers are different, without repet...
[8 replies] Last: //RANDOMIZE : BY Atul int n = 10, r, result; int getRandNum ; i... (by atul bajaj)
by g0dwyn
[SOLVED] segfault on New (mild necro)
 
Hey all, I saw that Helios was having a similar problem to what I'm experiencing, and figured I'd...
[3 replies] Last: Wow. Turns out it was all caused by a simple decrement in a recursive... (by g0dwyn)
PROBLEM PASSING ARRAY TO A FUNCTION
 
I get the following error when i try to pass an array (of char type) to a function 'UNDEFINED SYMB...
[11 replies] Last: I wasn't pointing to Matt's code, I was pointing to the OP's. Matt's h... (by Garandy)
Struct questions
 
I'm writing up a video-game engine right now, and for the tactical combat grid, I was thinking up wa...
[no replies]
how to do this using string array
 
Hello, i wan to do c++ program in ubuntu that able to write a summary on the directory example is...
[9 replies] Last: Hey! Sorry for not replying for so long. Anyways if you'll just use ... (by kevinchkin)
extern and unresolved external : I'm lost
 
Hello all I'm facing a very puzzling issue : an array of const std::string values is never s...
[2 replies] Last: You are not linking both source1.obj and source2.obj into the executab... (by jsmith)
[SOLVED]Adding some form of FPS?
 
Well basically I had to recreate the game space invaders for a task today. The game it self comes ou...
[11 replies] Last: That depends on the threading library. Typically something like Thr... (by Zaita)
by Karami
[solved]multiple definition of `sakums(int)'
 
hi, i was writing some basic programs and linking them together in 1 big program but when i decided ...
[3 replies] Last: Include guards work for multiple declaration, your problem was having ... (by Bazzy)
two-dimensional array and function
 
Hi, Actually I'm using C, not C++ but i think the codes are just about the same that's why i joi...
[2 replies] Last: Hi Bazzy, You're right. I just changed the function variable to cu... (by whacked)
by annliu
computer ebooks free download
 
Hi,there are many computer ebooks free download. [url=http://www.51cnnet.net]free ebook download ...
[no replies]
String Radomization
 
I am trying to randomize an array of strings. ex(like in a mad lib program) I have them declare...
[9 replies] Last: Yes, it's right. You don't need parentheses around 10 when pos... (by Bazzy)
error C2078: too many initializers
 
I want to change this to use user defined functions working on the first and i get this error, not s...
[4 replies] Last: *Never* but the else statement in the same line as the if statement. I... (by helios)
Trouble converting a program into user-defined functions
 
Well, I had this code done to find the biggest number out of a set amount of numbers and one to get ...
[12 replies] Last: oh wow didn't even copy the right program oh well (by Bishopssix)
by tition
an inheritance and template class riddle...
 
Hi all, Just got an interesting piece of tangled code involving template classes. It compiles and...
[no replies]
Prevent "^C" from appearing into console?
 
Hi all, could someone tell me, how can I make my C/C++ program be stopped by pressing Ctrl+C and no...
[1 reply] : That's handled by the console, not the program, so it's not possible t... (by helios)
Modifying array with probability
 
Hi, I'm implementing an algorithm and it asks to modify a 15x15 2d array with a certain probabili...
[1 reply] : By probability 0.1 you mean 10%? Generate a random number in the ra... (by jsmith)
ECCENTRIC PHENOMENON when passing values
 
I came to an eccentric phenomenon when running my program. My process accepts TCP connections and...
[2 replies] Last: Thanks for you reply. the binary file would be rebuilt for every prod... (by KenSoGCN)
still problem with UNICODE
 
hi, pls help me with unicode problem here is my programm #include <iostream> #include <wchar...
[1 reply] : UNICODE (not _UNICODE) must be defined before including windows.h, and... (by helios)
by pczi
changes to xpdf
 
Hi all, I want pdftohtml (http://www.foolabs.com/xpdf/download.html) to output a placeholder/ma...
[no replies]
Reading data in .txt format
 
Hi there, I been trying to create a way to read data that is stored in .txt format. I have tried ...
[4 replies] Last: The very first line of your posted program code... is the '/*' really ... (by eker676)
February 2009 Pages: 1... 56789... 14
  Archived months: [jan2009] [mar2009]

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