General C++ Programming - May 2013 (Page 17)

Draw / Paintcomponent (Like in JAVA)
 
I've been programming for a long time in JAVA. The reason is because JAVA has the paintcomponent, where my code will end up drawing something. As a result, I u...
[1 reply] : SFML http://www.sfml-dev.org/ SDL http://www.libsdl.org/ (by MiiNiPaa)
Help with a zombie game
 
Hey I am having a problem when I am compiling my makefile. This is the error that I am having and cannot see what is wrong with my code. I am using multiple hea...
[18 replies] Last: Here is the actual question 2.2 Task 2 - Reading Zombies from File Im... (by lebronJ)
by Medino
Comment taking.
 
Hi there, I'm trying to write a c++ program in visual basic 6.0 that will take the comments from an arbitrary file (c or c++) and put in a text file. Now... I k...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/files/ http://www.cplusplus.com/... (by MiiNiPaa)
Getting segfault with pointer to pointer
 
Hi everybody. I'm trying to store an array of vectors using a double pointer as a 2D array, but after the first "vector" (column) has been filled, I get a segfa...
[2 replies] Last: Oh, thanks. This is embarassing. (by Wotan88)
hash_map vs unordered_map
 
hash_map is Visual C++ specific and unordered_map is from the standard. Both work the same storing everything in "buckets" based on hash values generated from...
[5 replies] Last: Alright thanks! So I should never use hash_map. (by Anmol444)
by n1xsan
Parsing command line parameters.
 
I have a school assignment: I have to make a c++ program, in which with an algorithm I have to code a text from a file and write it to another file. The input s...
[4 replies] Last: Thanks so much for the help! (by n1xsan)
by Jebus
Input with files Part 2
 
I was reading this earlier http://www.cplusplus.com/doc/tutorial/files/ and i was trying to figure out how to pick one of the words randomly from my text instea...
[4 replies] Last: Thanks alot! works fine (by Jebus)
How to install allegro on VC++ 2012
 
Hi everybody... I want to know how to install allegro on VC++ 2012. If somebody can help me or just a link, i'll be very happy. Thanks. Gadamatik
[no replies]
header file namespace
 
Can we put using namespace std; in a header file? Someone told me not to do it, but I don't know why... Thanks!
[2 replies] Last: Thanks! (by dekeenfrance)
Calling C++ from FORTRAN
 
I know it is possible to call C++ from FORTRAN (extern C) Basically, I need to access C++ class data from FORTRAN- when calling C++ from FORTRAN. Steve ...
[2 replies] Last: I would like to ask (especially Cubi who has lot of experience of expe... (by jerome12345)
Purpose of Multimap
 
I understand what a map is and all, but what purpose does multimap serve? How can you access a specific member if the keys are the same?
[8 replies] Last: So like maybe if your counting how many times a number appears in some... (by Anmol444)
NuLL root Binary Tree
 
Hello i got problem in binary tree code. below is my code. When i select pre, post or inorder, the .exe is not responding.. Since in my binary tree theres no ro...
[1 reply] : Solved.. And i have another problem.. When i entering the course for e... (by aquilina)
by Jebus
Defining a Member Function
 
Hello! I've started to learn object oriented c++ recently, im trying to figure out how to print out a command like cout<< does but with using classes and functi...
[2 replies] Last: Thanks alot! i knew i had to write something in the main, wasnt sure w... (by Jebus)
Communication between functions of class
 
Hi, I have a class as follows: class testa { public: testa_b(); ~testa_b(); testa_c(); } Then I have defined some variables in testa_b: testa::...
[3 replies] Last: Thanks. In case I have a lot of variables to define, I think it's bett... (by dekeenfrance)
Help with my exercise
 
I need help with this exercise, its very important for my final in two days. I have skipped alot of classes and im not sure what to do, if anyone can help me st...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/1/ Describe the research you ... (by MiiNiPaa)
Loop partly on variable names
 
Hi, I have some codes including a series of instructions like follows: ui.lineEdit_1->setText(QString::number(param )); ui.lineEdit_2->setText(QString...
[6 replies] Last: Thanks for your replies. Yes, I am doing gui with Qt but main code is ... (by dekeenfrance)
NCurses outputting vectors
 
The following code works perfectly with "normal" C++ #include <iostream> #include <vector> int main() { std::vector <std::string> hello { ...
[2 replies] Last: We don't need that vector. #include <iostream> #include <string> in... (by JLBorges)
Stringstream to clipboard with memcpy?
 
Hi. I'm trying to, as the title suggests, copy the contents of a stringstream to the clip board. Here's what I have: stringstream ss; ss << "Example st...
[6 replies] Last: Hmmm... I have found this Microsoft example which is using GEM_FIXED.... (by andywestken)
by h0404
Beginner help with generic dictionary
 
Hello, I am a programmer in Delphi, learning C++, I am stuck with the following code, i want to access Fcategorydictionary in the class functions, but i am hav...
[19 replies] Last: yes, you are right, it should be int main() the MSVS 2012 is a bit ... (by h0404)
parent and child objects
 
class a { // something something }; class b : public a { // something something }; main() { b myobj; } so from this code does "...
[4 replies] Last: Thanks for the answers (by tejashs)
May 2013 Pages: 1... 1516171819... 47
  Archived months: [apr2013] [jun2013]

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