Beginners - April 2011 (Page 28)

by tonnot
Map and '... discard qualifiers'... very strange problem.
 
I have a map<int<map<int,char> > variable. It is declared at the private section of my .h file : map<unsigned int,std::map<unsigned int,char> > map__typ...
[3 replies] Last: If you do so at least two things can happen: 1. The map gets filled w... (by coder777)
Linking/namespace error
 
I am having this error message: pserver.o: In function `tempSpace::nextPrime(int)': pserver.cpp:(.text+0x0): multiple definition of `tempSpace::nextPrime(...
[4 replies] Last: That won't work if the header will be included in multiple source file... (by Bazzy)
Need help with player turns
 
I'm having trouble changing players from X to O. I've tried many combinations but I'm at a loss. ROWS and COLS are constants equal to 3. Basically my problem is...
[6 replies] Last: Ahhh, let me post all the code I have so far, the do/while in main is ... (by Brianzor)
I don't know what this error means...
 
I am so close to finishing my program but I don't know what this error means or how to fix it. numbersystem.cpp:142: error: invalid conversion from ‘int’...
[3 replies] Last: yeah i think the function return value got problem. as for the solutio... (by Toshitaka)
Comparing image pixels and using mod
 
Hello. I'm working on an assignment where I have to read a "test.gif" image and output a photonegative of that image. After that, I need to add row mod 7 to the...
[4 replies] Last: Line 17: vert.getPixel -> vert.getPixel(row, col) Line 18: ver... (by coder777)
Recursion
 
Hi freinds, this is my code for simple recursion program to calculate factorial. wheneve i return the different value for eg, 1.for return 1, the ans will b...
[12 replies] Last: Hi, Grey Wolf thanks for ans. My doubt is clear.. Thanks to all for... (by bally28)
makin it look pretty
 
Hey I just have a quick question. I've posted a few times now but don't ever seem to get replies and I figure it's because when I post a code i just copy and p...
[1 reply] : Enclose the code with [co de] / [/c ode] tags. The "source code" ico... (by Athar)
Class project
 
Hi, i started using c++ a couple of months ago, and in my class we are on our final project, which i have been working on for quite some time. I am still a bit ...
[6 replies] Last: ok, thanks for the help (by Cryingwolf85)
Matrix - Add, Subtract, Multiply
 
Hi everyone. I am trying to create a matrix. I'm trying to write a matrix program that the user will input the matrices and the program will add, subtract, and...
[no replies]
Simple program
 
Does anyone out there know how i could make a general shutdown/hibernate/sleep etc. program to shutdown or put my computer to sleep when i want. I am running w...
[5 replies] Last: PwrProf library has setsuspendstate http://msdn.microsoft.com/en-us/l... (by ultifinitus)
by ghoti1
Arrays and strings
 
Hello All! I'm a beginner at this C++ thing, and I'm kinda at a loss. I'm doing this school project to to write a program that will read a string entered by t...
[3 replies] Last: Please use tags and indent your code... I'm not reading it otherwise... (by packetpirate)
Stuck on a real tough problem
 
free
[3 replies] Last: First of all, please use [ CODE ] tags... second, instead of this ridi... (by packetpirate)
Sum of Digits C-String help.
 
So i need to add a sum of digits from 1 to 1000. for example: if u add the digits in 468 you get 4+6+8 = 18 and the squared and cube of the digit = 18 also. i h...
[1 reply] : First of all, there is no need to convert to a string. Second you coul... (by Browni3141)
Text based RPG, need help plz
 
hey guys, im working on a small text based RPG in C++. What im trying to do is have the user prompted with a question, like "Which direction would you like to t...
[14 replies] Last: yeah well in my CS class last week we went over the difference so i fe... (by ascii)
two-dimensional array
 
I'm trying to create a two-dimensional array whose size is based on user input, then the array is filled with random numbers depending on how big the user wants...
[1 reply] : Because of this little number: cout << array << endl; you are tell... (by Computergeek01)
Switch state interactive menu
 
I am attempting at making an interactive menu using arrow keys for a game I also attempting to create. I have already figured out how to "detect" arrow keys wit...
[3 replies] Last: SDL = http://www.libsdl.org/ SFML = http://www.sfml-dev.org/ The a... (by Computergeek01)
Someone understand
 
In my previous post someone suggest me this. (my question is how to use pointer to print string backwards. " Declare your char variable and initialise it t...
[8 replies] Last: I was drunk when I wrote that code! lol. Sorry. This: Now that you h... (by Lynx876)
Desk checking confusion!
 
Everything in this assignment is to be submitted online. According to http://www.ehow.com/facts_5941523_desk-checking_.html, desk checking is a table that inclu...
[9 replies] Last: @firedraco cheers, that what i think they mean to. They just want to... (by hakkenadlay)
by ogward
sorted doubly-linked list
 
Hi there! I've been trying to make this doubly-linked list and so far I've made an add() and an destructor. I first started with making an add function singly...
[6 replies] Last: my list is a "sorted doubly-linked list" so items are sorted in a asce... (by ogward)
Such a Noob Question about Macros
 
Hi, As the title of the topic says, I can't figure out this basic concept of macro inclusion. I'm writing a small static lib, that has the following in the h...
[5 replies] Last: I don't know what you mean by typedef header (a header with commonly s... (by filipe)
April 2011 Pages: 1... 2627282930... 55
  Archived months: [mar2011] [may2011]

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