General C++ Programming (Page 2)

by PadMad
SDL 2 / blitting too slow
Hey guys, First, I'm new to the forum and hope it's the right section. I'm tryin' to code a simple ...
[11 replies] Last: But the cursor disappears when i move it fast from one Position to an... (by helios)
Error when comparing special charracters like "č"
Hello, how can I compare strings, so the function will return special characters, such as "č" t...
[8 replies] Last: great! thanks, works like a charm now (by mekkatorqu)
Getting a value from object passing it to an array
I am writing a program for a poker game.. I created a class to get cards and create deck.. the probl...
[1 reply] : Line 20: toString is declared as returning nothing (void). Line 49: ... (by AbstractionAnon)
by bara1
working with Excel file in C++
I have an excel file (.csv) like that: Student ID | Average mark 1 | 8 2 |...
[no replies]
Dynamic memory allocation in a class
Hello, I'm having problems with this code: #include <iostream> using namespace std; cl...
[2 replies] Last: There is a rule known as the "rule of 3". It says that if you need to... (by Disch)
How to redeffine operator ->
How i have to redefine the operator -> on my own class? Thanks in advance
[4 replies] Last: Yes sure, copy & paste error x.. Anyway Thank you! (by Franconet)
by birbal
How to assign char array as user define string object
STRING s1 = “FOOBAR” Here STRING is a user defined class. how to assign a constant char array...
[2 replies] Last: SomeType SomeName = SomeExpression; //initialization -> constructor c... (by LB)
Writing a derived class from a given base class
C++ Programming Topic Using the following Counter class as your Base class, explain (and show) ho...
[3 replies] Last: Step 1. Give up our time to do people's homework for free. Step 2. ? ... (by MikeyBoy)
about delete keyword
Hello , I just wonder how I can delete a parameter in a function . As below ; int *buildTrail(in...
[4 replies] Last: std::vector<int> buildTrail(int antIndex, int start, double *pheromon... (by ne555)
c++ irc bot not working
im writing an irc bot in c++ on linux mint, and its not connecting right for some reason. anyways, h...
[8 replies] Last: @mutexe sorry for being ambiguous :P (by Lachlan Easton)
by Subo93
In labsht.txt I have save 1d222bb433gf445dfd448dfdfdf4 which I input using this program #includ...
[2 replies] Last: I don't want to try and read that... Sorry. Also this is the lounge so... (by SatsumaBenji)
Converting string to integer array in C++
For Example, it the entered string is: 0324152397 I want it to get stored in an array like- ......
[2 replies] Last: #include <iostream> #include <string> #include <vector> using names... (by Duoas)
bad_alloc exception even though memory available
Hi, I have code (C++ under Windows 7 using VS2010) that creates many objects on the heap, each with...
[4 replies] Last: bad_alloc doesn't necessarily mean running out of memory. More likely ... (by coder777)
Help prevent hackers on network game
Hi, This isn't really a c++ question but more of a network question for my online game. First of a...
[no replies]
Where's the problem in my simple code?
My compiler tells me there's an error in the 24th line: "invalid suffix on "x" on integer constant"....
[2 replies] Last: 5x is incorrect in this context, you need to specify multiplication op... (by anmol2701)
SFML beginner problem
I had a program like this #include <iostream> #include <SFML\Window.hpp> #include <SFML\Graphics.hp...
[no replies]
Can someone take a look at my code.. I am getting some crazy numbers
#include "pointType.h" #include "circleType.h" #include "cylinderType.h" #include <iostream> using...
[14 replies] Last: yeah i didnt want people to just copy it (by whoovian11)
this is my program,i just define the in ,haven't use it,but,after compiled,i execute the result, th...
[5 replies] Last: Ah, that makes sense. I forgot the semantics of peek . (by LB)
Dealing with Objects
The program is supposed to read a formatted .txt file and store the data into their respective Mem...
[6 replies] Last: Solved all my problems. Thanks once again for all your help. Keep do... (by dman951753)
Help me write my program!
I need help writing this, it is due very soon and I'm very confused! An image is represented ...
[3 replies] Last: thank you! (by d4irtY2O)
Pages: 1234... 59
  Archived months: [feb2014]

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