• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Problems with class files with SFML
 
Im making a small game is SFML called skelton town. (not skeleton (its a inside refrence)) I have ma...
[1 reply] : Player::Player() { sf::RenderWindow Window; that `Window' vari... (by ne555)
getline skipping first line
 
text file is hello there void readFile(char , ifstream&); address records ; int main(){ ...
[5 replies] Last: ye may be...thanks btw (by csstudent123)
variable inside constructor
 
automatic variables are destroyed upon function exit what about variables created inside constructor...
[1 reply] : All variables declared in a constructor go out of scope when the const... (by helios)
by tmason
Speed of Basic Arrays Versus Vectors ...
 
Hello, A little exersize I did recently which essentially compares the speed of arrays versus vec...
[3 replies] Last: You aren't really measuring the time to create & destroy a vector vs. ... (by dhayden)
Read certain lines from a file
 
I want to read certain lines from a file. Let say if the line contains word "makes" , the line will...
[1 reply] : http://www.cplusplus.com/reference/string/string/find/ (by keskiverto)
by cGuru
Can You Recommend An IDE?
 
So, I have just started my college C++ course, and on my book companion website it recommends severa...
[6 replies] Last: I prefere Qt Creator. When I first saw it I fell in love with it (sorr... (by Zloi)
Solution
 
Anyone can give me a link the solution of object oriented programming with c++ by balaguruswamy and...
[1 reply] : http://www.cplusplus.com/forum/general/140852/ (by LB)
Differentiate a word/letter and number in a string
 
I have one string from user. Let say, "The deviceId is 2" ....but user also can give input like t...
[1 reply] : http://www.cplusplus.com/reference/cctype/ (by LB)
Shared pointer problem
 
Hi I made a vector of shared pointers and when I set the pointer to NULL it should delete the memory...
[3 replies] Last: If you choose to ignore what I am saying, I cannot help you. (by LB)
by judo11
How to dry run any c++ programs?
 
I've noticed that in order for us to understand any program is by dry running it using a pen and pap...
[8 replies] Last: you mean like an IDE? (by Homberto)
Better way of doing this?
 
I am wondering if their is a better way to do this void ItemHandler::addGroundItem(unsigned shor...
[5 replies] Last: Ah I found the bug for that problem I fixed the code void ItemHandl... (by danielmccarthy)
reading xml weird error
 
hello I am trying to read this xml file this readFile function does not give me right values. Only...
[8 replies] Last: Pls tell me what to do in taglessline function void readFile(char ... (by csstudent123)
Smart pointers in a vector
 
I am new to smart pointers and have a question. If you push a smart pointer onto a vector and the...
[1 reply] : Yes. (by Disch)
Boost memory mapped object
 
i've created dll and implemented shared memory that every connected process can use. My problem is t...
[3 replies] Last: Ah, yes. Sorry, I missed that the first time. static globals are tran... (by helios)
C++ count an array?
 
This is going to seem like a stupid question but how can I count the elements of a const array. Sure...
[2 replies] Last: Using sizeof with class member arrays does give the length. sizeof(arr... (by helios)
Singleton implementation
 
I'm playing with the idea of a singleton base class, but I'm having an issue with how to implement t...
[10 replies] Last: > but Singleton<T>::Construct() is called instead of Hello::Construct(... (by ne555)
by pluk
sdl memory leak!
 
hello! i have a memory leak in my game and i can't find the problem. here is my code(its a mess) :...
[2 replies] Last: My first question would be how you determined a memory leak exists. (by helios)
How would you go about creating an exact age calculator (1,2,3)
 
I've been wondering this, since there is so many things which needs to be taken care of. I created o...
[46 replies] Last: bool leapyear = checkLeapYear(year); bool checkLeapYear(unsigned c... (by giblit)
n queens problem solution
 
Hi, We want to share this code, with the purposal to help you write your own c++ n queens problem...
[no replies]
Pages: 123... 43
  Archived months: [jun2014]