General C++ Programming - April 2012 (Page 31)

Need simple source code
 
hello guys, i will need 10 simple source code so i can done reverse engineering on it, in order to learn and try to write out the flow chart and identify th...
[2 replies] Last: TQ! (by hankydorky)
is this better?
 
so i have been told multiple times that "using MD arrays are bad". so i decided to finally start using 1d arrays instead, so i was wondering if i did it correct...
[12 replies] Last: Okay yeah if the array is going to be dynamically sized and passed to ... (by Disch)
Random Map Genorator
 
Hello, I need some help making an random map genorator. All I need it to do is genorate trees, mountins, biomes, ect. It will also genorate ores and caves un...
[3 replies] Last: Well I was thinking more of a dwarf fortress style map. (by aimmmmmmmmm)
BitBlt Help Please.
 
OK, so I have spent hours trying to figure this out. I have been trying to implement BitBlt too animate a .bmp for a simple game. I am trying to use a sprite sh...
[no replies]
by mkb84
having trouble with function using array as formal parameter
 
Before i begin with my problem anyone who is just going to post a link to the array or functions beginners section please do not reply in this post I am tryi...
[3 replies] Last: Simple. Now booklist, in that function, is a book pointer. An array i... (by S G H)
threads start for class methods: Why i need both Class&object's addresses?
 
If i want to thread a method class rather than a function I need to pass as arguments both the method class address and my object's address. BUT not the object...
[2 replies] Last: Thank you. Just for a spherical view : Is there any other area where ... (by imakaia)
BST Number route
 
Hey guys, for my project i had to make a BST that prints the route of a number. for example if i have 1,3,6,2,5,8,9 and i want it to show me the route it passes...
[1 reply] : Are you sure your tree is built? I don't immediately see a reason why ... (by Gaminic)
infile? getline? missing?
 
Hi i've been working on this code. it works, but there is major problem. first, it didnt print first line from the file(.txt) citizen of abc john paul 199...
[1 reply] : int main() { Book book ; std::ifstream infile; std::... (by vin)
Priority queue vs standard queue
 
My professor stated that a Priority Queue ADT cannot be implemented by wrapping around a Queue ADT, nor vice-versa. Why is that?
[5 replies] Last: > My professor stated that a Priority Queue ADT cannot be implemented ... (by JLBorges)
by Opcode
Reading Numbers From File: String Of Space-delimited Numbers
 
In C++, if getline reads a line containing space-delimited numbers (e.g., 85 95 56 12), how would I pick out each number to stick into an array? Or should I use...
[no replies]
by jms24
Ifstream help!
 
I'm new to cplusplus.com, and I am only in computer science 2, so i am still pretty new at all this. I have a project due for my class that requires me to creat...
[1 reply] : Please edit your post using code tags for the code, most people will j... (by Need4Sleep)
Iterator vs unsigned for iterating over vector?
 
Hey all. Just a quick question: What is considered the best way (efficient, safe, etc) to iterator over a vector. Should you use an unsigned int and compare i...
[16 replies] Last: True, but I didn't think any compilers were that are that smart. (by Duthomhas)
Help with classes,arrays, text.
 
Hello to everyone reading this. I have a project due within a week and I'm having some difficulty reading from text files. I have a class named Book and within ...
[3 replies] Last: Thanks Need4Sleep and BlackSheep, but I still have a problem. I haven'... (by Dondominicano)
Pseudocode
 
-It should write guess of the secret number to standard output. -It should ask the user if the secret number is higher, lower, or if you guessed correctly. -I...
[4 replies] Last: Pseudocode is an informal mixture of the language used and ordinary la... (by BHX)
What should I do to work on an OS?
 
I started programming to design an OS, and have seen the projects I have been doing to have drifted away from what I am doing. Can someone help me get geared to...
[1 reply] : Never done it myself, but there are communities for that and sites gea... (by BHX)
class type comparison operator overloading
 
I'm trying to overload the comparison operator for a stock class I have created, but whenever I try to compile it gives me an error that says "request for membe...
[3 replies] Last: thanks for your help. I finally got it to work by using date == other... (by savan12986)
Number guessing game
 
I am a student studying computer science and I have this as first assignment, the computer as to make guesses for the secret number. Hopefully someone can help ...
[4 replies] Last: You're a comp sci student and can't do that? That is one of the easies... (by BHX)
by nick92
positive number
 
hi how can I 10 positive number ,and when I put 1 a negative number to stop the program?
[3 replies] Last: Close. Remember, you want to continue while the number is not < 0. ... (by Duthomhas)
Comparing double with int variables
 
The idea here is to look up for some specific element inside an array using another array, a bit like this: counter1=0; check==false; for (i=counter2;i<5-...
[14 replies] Last: LOL, I just posted the link. When you said you didn't get anything out... (by Duthomhas)
Counting Occurrences of Numbers (1,2)
 
Hey guys, I am creating a program that creates a 20-block array and input random numbers. The program requires that the array be outputted as to look like thi...
[21 replies] Last: @Duoas - Duh@me. Of course, can't believe I missed that one! @crumbhe... (by MrHutch)
April 2012 Pages: 1... 2930313233... 49
  Archived months: [mar2012] [may2012]

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