Beginners - May 2011 (Page 5)

Transform applied to associative container
 
int main() { set<int > sset; sset.insert(5); transform(sset.begin(), sset.end(), sset.begin(), negate<int>() ); } Code snippet from C++ Stand...
[7 replies] Last: Might be STL terminology. (by helios)
pointers to custom class help
 
So I have a class and a question for manipulating this class with pointers.. class Rain : public AnotherClass { }; // now i try to make a pointer to an arr...
[6 replies] Last: Hey, can someone tell me why I wouldn't need the * in the (*p+j)->Set... (by brokenbot)
by qwesr
Visual 2010 Help
 
Ive been trying to install allegro for a while now and i came upon this- http://wiki.allegro.cc/index.php?title=Windows,_Visual_Studio_2010_and_Allegro_5 I...
[1 reply] : Are you using the #pragma directive? If so, that maybe why. You need... (by closed account zb0S216C)
Memory leak?
 
Will this code cause memory leak? vector<ClassA*> list; for(int i = 0; i < 5; ++i) { ClassA *a = new ClassA; list.push_back(a); } Is this ok ...
[7 replies] Last: None that I am aware of, so if C++0x can be used, vector<unique_ptr> i... (by Athar)
Run time error
 
I started rewriting one of my old programs with what I know now. The thing is Ive been getting this runtime error in my checkInventory() function, I have no clu...
[4 replies] Last: The member Items of instance itemsX , has an undefined size. On lin... (by closed account zb0S216C)
by qwesr
Visual 2010 Help
 
Ive been trying to install allegro for a while now and i came upon this- http://wiki.allegro.cc/index.php?title=Windows,_Visual_Studio_2010_and_Allegro_5 I fo...
[no replies]
Making my first game.
 
I want to try and make a game this summer. I just want to make a simple game, nothing fancy, but I don't really know where to start. I have a fairly good handle...
[15 replies] Last: If we were to get ourselves entangled with technicalities, then techni... (by Albatross)
by ivanho
Practice problem??
 
Hi everyone! I want to know where can I find practice problem for beginneers on Web
[6 replies] Last: Bump! (by ivanho)
A code portion I could not understand
 
#ifndef GLVIEWER_H #define GLVIEWER_H #include "globaldefinitions.h" #include <QGLWidget> #include <QList> #include <QPair> #include <QMatrix4x4> //!...
[1 reply] : it's a macro. The only way to know what it is is to look at the macro... (by Disch)
What's a segmentation fault?
 
What exactly is a segmentation fault? comprehensive would be nice... Also what's the best way to identify segmentation faults in your program?
[4 replies] Last: repeatable segfaults are usually not too difficult to debug (debugger... (by Moschops)
by Heron7
not seeing any print out ;first proj. CodeBlocks
 
Hello, I am trying the first exercise from a C++ book. The problem is that the examples are shown on a windows machine while I have especially installed Ubunt...
[no replies]
program running problem
 
i made a program in c++ and when i was trying to use it on other pc it says MSVCP100D.dll was not found what is problem? img :-http://www.elitepvpers...
[1 reply] : MSVCP100D.dll is a library that you have on one machine but not on the... (by Moschops)
Compare user input to infile data
 
I am having trouble trying to compare input from a user to data within an infile. My program is to create a cash register. When the user adds an item number t...
[no replies]
by Skagen
Three dimensional array of struct
 
Here is my struct: struct Tile { // Values int base; int object; }; Here is the function: int setup_map() { return 0; } Now I want ...
[1 reply] : http://www.cplusplus.com/forum/articles/17108/ The article discusses ... (by hamsterman)
Executables
 
chances for success in editing an executable. for the exe's i'm curious about i don't know what compiler was used, i did get one tool to dissemble it, so i fi...
[3 replies] Last: The easy answer to your question is that this tool doesn't exist. Dis... (by jeffbmartinez)
Can you please explain pointers?
 
why do we need pointers? please explain pointers some specific uses. -I am a learner
[9 replies] Last: thank you for all to reply..... I try to fully understand your expl... (by vasusachin24)
need help changing part of my code
 
closed
[1 reply] : closed (by mverwey)
Arrays and encryption.
 
Hey, Im new to C++ and decided to make a program that dissects user input into a 3xwhatever matrix and multiplies it by an encode matrix, thus make a coded mess...
[3 replies] Last: However, how would I access certain elements of the input? Umm...?... (by ModShop)
append or concatenate to a char*
 
hi guys, ^^ how can i append text or concatenate text in a const char *??? in this function, if i put "A Journey to the Center of the Earth", it will return...
[4 replies] Last: ok ^^ thanks. ill mark this as solved. (by Bot0016)
strings that accept spaces
 
I'm trying to create a program where you enter questions and somebody else tries to answer them. My problem is that when you enter a space, the program puts th...
[2 replies] Last: It worked. Thank you. You were exactly right. (by GRex2595)
May 2011 Pages: 1... 34567... 48
  Archived months: [apr2011] [jun2011]

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