General C++ Programming - March 2009 (Page 3)

Randomize without repition
 
so i've tried and tried and tried and changed my code about ten times in the last hour, its getting ...
[1 reply] : Hi. If your goal is to get random numbers without repeating numbers th... (by Repentinus)
mutex ownership problem
 
Hi, I have two threads in my application. thread 2 must wait for thread1 but it doesn't because t...
[10 replies] Last: great.. :) (by writetonsharma)
structs with list
 
so im making this struct and i want to include a list in it : struct student{ int id;...
[4 replies] Last: it might be same, but these were my view where the error can be.. :) (by writetonsharma)
Error in using static map
 
I am a C# .NET programmer who has recently switched to c++, and thus my understanding on some things...
[2 replies] Last: static member variables of a class have to be defined outside the clas... (by guestgulkan)
value returning function question...
 
whats wrong with the following function? Thanks for any help!!! bool Greater (int a, int b) { ...
[2 replies] Last: yea i was thinking it was something along the lines of that, thanks. (by chewykb24)
by wretch
Code review, Proxy pattern, 64 lines
 
One of my primary C++ goals is to study all of the (Gang of Four) patterns, From what I understan...
[2 replies] Last: Thanks very much seymore15074 for looking at this. And yes, I agree... (by wretch)
Memory Allocation Question
 
Hi Guys, I am really confused. Basically, what I am trying to do is, I have a struct which has a...
[1 reply] : Memcopy just copies each member, so you will have two pointers pointin... (by Gumbercules)
Dev C++ Compiler Issue
 
Has anyone ever had an issue with Dev-C++ v 4.9.9.2 not producing a physical executable file after c...
[3 replies] Last: i use 5. somethingso i wouldnt know but my school used that version an... (by freakytb)
by jimctu
Pronlem with \0
 
hello ppl... well...i have a very strange problem... I have an array of chars, and a buffer, that ...
[2 replies] Last: uhn... ok, thx... i´ll do it like u said... ^^ thank u...it was v... (by jimctu)
i need code for point of sale using classes
 
i need a C++ code for point of sale system plz help me !! likefor taking the payments n genratin...
[no replies]
reading jpeg file
 
Hello, I'm a fairly new user to programming and my skills are still very young. I'm interested howev...
[1 reply] : libjpeg http://www.ijg.org/ looks promising, I haven't used it though. (by Gumbercules)
by olove5
can someone give to me a tip to solve the main()
 
#include "10_exampr1.cpp" using namespace std; void includeName(); char GetStri...
[3 replies] Last: char GetString (char *msg) { char s , i,*destinoItem; cout<< msg... (by Gumbercules)
encryption
 
I want to be able to encrypt my save files so that no one except for those whom have the extractor a...
[6 replies] Last: okay, i also noticed that i put the wrong file extension on for the sa... (by freakytb)
Confusion about pointer object
 
I am a pretty experienced programmer, but there is one thing about pointers that confuses me. I will...
[1 reply] : The pointer is destroyed, not the thing it points to. (by jsmith)
array equality trickiness
 
Hi, I would appreciate, if someone explains me why is this true: a == *(a + i) == *(i + a) == ...
[10 replies] Last: See: Not that it has any practical use beyond that of obfuscated... (by jsmith)
how to check for spaces in a line of words
 
how to check for the number os spaces in a line of words? wad code must i use? is it isspace()...
[4 replies] Last: Also std::count_if( text.begin(), text.end(), isspace ) if by ... (by jsmith)
by galaxy
The Destructor ruins everything
 
Hi everybody I really have a problem with calling the destructor Yes, the destructor ruins everyth...
[2 replies] Last: Thnx bro It really worked now I understand everything (by galaxy)
by bito
functions
 
how do i go about his question,am required to write code that prompts the user to enter 2 characters...
[1 reply] : 1. get the chars and the int 2. have 2 nested loops and output in the... (by Bazzy)
by olove5
Problem with main()
 
#include <iostream> #include <cstdlib> #include "10_exampr1.cpp" using namespace std; void...
[no replies]
controlling the output on each line
 
how do we control the number of output on each line? #include <iostream> #include <cstdlib> u...
[2 replies] Last: thanks man csiz u r the greatest (by comput14)
March 2009 Pages: 12345... 21
  Archived months: [feb2009] [apr2009]

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