General C++ Programming (Page 2)

Need better understanding + need to solve an error.
I'm learning C++ off of this very website, and i'm up to this section :
[3 replies] Last: You aren't assigning the results of Getuserinput(), Getuseroperation()... (by programmerdog297)
Binary and String File Protection
Hello, I am using private copy constructors to protect my string and binary files. I am wonderin...
[no replies]
by Gamytr
Double, int and float. See the differences.
I don't know where I made the mistake #include <iostream> using namespace std; int main() { in...
[4 replies] Last: Thank you :)) (by Gamytr)
Simple encryption program runtime error
I am trying to make a simple program for encrypting a char* with the XOR operator. The code compil...
[4 replies] Last: Do you know how to do this with std::string and the other C++ awesome... (by cire)
by nines
Needed explanation
Hi, I need help with this code : 1. # include <iostream> 2. # include <cctype> 3. using name...
[3 replies] Last: myesolar & lsk thanks for the tips I will google it and find out (: (by nines)
explaining of codes
can someone explain the function below to me void readFile() { ifstream read("bs.txt"); ofs...
[3 replies] Last: The code seems to do "silly" things and might not even work properly. ... (by keskiverto)
How to know if a variable has been accessed
I wondered if anyone knew how to tell whether a variable has been accessed in memory, no matter what...
[4 replies] Last: The variable isn't encapsulated, it's just a standard C++ primitive va... (by SatsumaBenji)
by bairsh
large array of objects isnt freed
Hello, strange behaviour have seen with large array of objects in the following code. If class inte...
[5 replies] Last: Thanks for the clarification. I'm not able to test the 4.1Gb version a... (by Chervil)
Dangling Pointer Memory
I appear to be having difficulty freeing memory and I think that it may be causing leaks, I could us...
[5 replies] Last: No need to use new for those temp objects, and with the exception of... (by duky)
Is the expression with multiple '<<' full?
Hello to everyone. I need to implement simple wrapper for logging function log(const char *). S...
[2 replies] Last: Thx (by alexvein)
C++ 2D game library
Can you recommend me a 2D game library ( NOT a game engine ) that is similar to Apple's SpriteKit, b...
[5 replies] Last: Thank you very much! I built SFML from sources and added the SFML incl... (by memberfunction)
explaining of codes 2
and this function too void writeFile() { ofstream fout("tmp.txt");//opening file"bs.txt" for ...
[no replies]
c++ vectors struct dilemma
i want to know what the struct is being used for if everything is being stored in the tmp variable...
[no replies]
Random function better than rand()?
So I need my program to very rapidly spit out random numbers. Now I don't remember where I read this...
[17 replies] Last: @cire: if i use a function attribute, that isnt guaranteed to be port... (by cire)
The progran flashes
Hi. Why is it that the program doesn't stop for me to see the output? Here is my code: // accessin...
[1 reply] : (by helios)
Struct: Help with my grade function please
My code has no errors. I'm just having problems with getting the grades of the file sorted. grades i...
[2 replies] Last: BTW, you press 'g' but check for FirstName ! if (student .name.firs... (by lsk)
Please help
I have this program, this is giving junk/garbage values in output: Statement: take input from user ...
[1 reply] : @ammar9493 You have a few problems with your program, and it's not do... (by whitenite1)
Using vectors vs arrays.
So I'm new to C++ and am trying to understand inheritance. Specifically in my cod below i'm looking...
[12 replies] Last: I had to start over since I believe I made far too many mistakes. In ... (by cjust689)
Help with audio
Since im bored and don't have anything better to do, I was wondering how do I play a simple mp3 thro...
[6 replies] Last: So you can hook audio? that's AWESOME and exactly what I was looking f... (by ScriptKiddy123)
Trouble with player jumping on 2D Gravity based map
So, I've recently been working on a side-view, 2D game using a 2D array for a map. So far, world gen...
[no replies]
Pages: 1234... 39
  Archived months: [may2014]

Cannot post in this page. To post a new message, go to the first page.