General C++ Programming - May 2011 (Page 11)

system time in millisecond c++
 
how can I get system time in milliseconds? thankss..
[11 replies] Last: "I wanna calculate how much long struct waited in queue in millisecond... (by LB)
SDL faster than SFML for 2D
 
I'm not trying to be a fanboy of SDL, but when people on this and other sites categorically insist that SFML is faster than SDL, I just have to respectfully dis...
[9 replies] Last: Interesting thread. I've got a little bit of input. I've been using S... (by ultifinitus)
c++ Unused variable
 
Hi, I am working in large code base in c++(may be 8 million code). In My application I have seen thousands of unused variable and reported by g++ compiler bu...
[1 reply] : duplicate. (by writetonsharma)
Arcitecture Specific Programming
 
Hello, dear Community! At the moment, I'm digging into programming for x64 architectures. I read some articles on msdn for this. But now I was wondering, if ...
[no replies]
c++
 
hey can any one help me in programming....
[5 replies] Last: [quote=hira aftab]what would be solution to do best programming. I do... (by closed account zb0S216C)
by tenn
Passing memory content as paramater?
 
Hi What I want to do is read the content of a binary file to memory... edit the content.. and pass it to an external program as a parameter. Basically I h...
[12 replies] Last: [quote=tenn]Would it be possible to load both - the external app and t... (by closed account zb0S216C)
by Ronen
How Can I Check In Templates , If T==Boolean ? (1,2)
 
Hi guys, I need to add two parameters . I'm dealing with string/int/double and boolean. The first three are doing great , meaning the ADD operation between the...
[20 replies] Last: Well, the OP had a good reason not to want to post his/her code. Or a... (by m4ster r0shi)
Sorting strings by lengths (1,2)
 
I'm trying to write a program that sorts strings by their lengths and use it on a text file I have to print out the ten shortest and ten longest lines. I am ...
[22 replies] Last: Add more output to readLines(). such as if(!file){ ... } else std::c... (by hamsterman)
openssl aes 256 generating some junk characters
 
Hi, I'm facing the same issue as mentioned in the link. http://www.cplusplus.com/forum/general/26982/ please provide me solution.Thanks in advance reg...
[no replies]
system() function problem
 
Hey guys sorry but I just started programming like 2 weeks ago, and I recently hit a snag with using system() function to run start a program. It works just...
[5 replies] Last: That's a good project. Hint: use a file that lists the game name and ... (by Duthomhas)
Does the order of stream mode flags matter when opening an fstream?
 
Hi, Curious to hear what others think of this. When I create a binary filestream for output it turns out that setting the mode flags this way produces a t...
[2 replies] Last: Well, it's hard to misinterpret a file being written in plain ASCII wh... (by canismajor)
multiple inheritance with shared attribute names
 
I have come here many times to research issues that others have also had, but have not found a topic directly related to this so figured I'd start my own. Th...
[6 replies] Last: Ah hah! That makes much more sense, thanks!! (by whitmcrae)
Advanced - Refactoring Templates
 
I need some advice on refactoring templates (this may be advanced or has no solution?) I have a chunk of working code below, however, the following chunks of c...
[9 replies] Last: I'll check it out when I get home. I don't know why Valgrind would co... (by Disch)
overload operator []
 
#define MaxInt 101 #include <iostream> using namespace std; class IntegerSet { public: IntegerSet(int a1=-1, int a2=-1, int a3=-1, int a4=-1, int a5=-1) ...
[2 replies] Last: class IntergerSet { ... public: ... int& operator (int i... (by Mathhead200)
by maory
Adding operator of boolean class (1,2)
 
Hi, I thought about an idea that will make my h.w. alot easier. To do that, I need to add an operator+ of 2 boolean variables. Is that possible? If possi...
[23 replies] Last: Ah, I missed the part about abusing common operators to mean something... (by Duthomhas)
by joshiv
Returning an error in a function
 
I want to return a string "error" from a function that returns an int on successful completion. How can I do it?
[1 reply] : //like this? int f() { if( something_wrong ) throw "error"... (by Mathhead200)
by NGen
Why is Casting Necessary?
 
Before I delve into the issue, I'll pastebin my code: http://pastebin.com/z8rLjG1E Right, that's a very simple tree implementation that simply allows for gene...
[7 replies] Last: Alright, I'm seeing it now. It was my interpretation of how the compil... (by NGen)
This program works, but doesn't
 
So this program compiles and runs, but when it outputs the number and percentage correct, it outputs the same results for each different student, and it does pr...
[5 replies] Last: Whoops, I see that! Apparently I poked around with preparing my answer... (by closed account D80DSL3A)
Learning memory modification
 
There are a TON of tutorials teaching C++ but I can't seem to find any good tutorials that specifically teach memory coding in C++. Tutorials that go into ReadP...
[2 replies] Last: Yea I somewhat know how to modify memory. I would need IDA, CheatEngin... (by TheNoobie)
Fgets and Fputs
 
I am trying to read in and combine three files and output it as another file. I know I can do this using system commands, but its just one phase in a larger pr...
[4 replies] Last: I am trying to understand this, but I'm having all sorts of trouble...... (by anewcreation84)
May 2011 Pages: 1... 910111213... 32
  Archived months: [apr2011] [jun2011]

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