Beginners - April 2011 (Page 32)

Question about Insertion Sort
 
Queue::QueueNode* Queue::getPointer(int nodeNo) { QueueNode *cur = frontPtr; for(int i = 1; i < nodeNo; i++) cur=cur->next...
[4 replies] Last: i tink the problem is exist inside the if(prev->priority < p) { Queu... (by Nic3Guy)
by mta
Operator Overloading Prefix Postfix ++
 
Hi Guys: What I am trying to achieve is to create a postfix and prefix overloaded ++ function that increments monthnumber and set name to the name of the nex...
[3 replies] Last: Haha ;) No problem (by Acr)
Need help with creating C++ 2D array for Battleship game
 
I got assigned to create a 1 player battleship program, and I have just started reading guides on how to program. All of the guides I have read hasnt given me a...
[5 replies] Last: You can also use the for-loop and instead of printing it out, set the ... (by Acr)
Problem with my code
 
Hey guys .. I have posted my code below.. Im having a small problem when it comes to running the code and getting an answer. there are 5 employees that i pa...
[11 replies] Last: Which line number is this on ? i couldnt find that. And no worries th... (by theonealone)
by DrCake
School assignment
 
Hi all, Could you please help me with a school assingment? we need te rewrite all chars to pointers, and i cant figure it out. Here is the start program: ...
[2 replies] Last: A pointer (char * p1) can basically be seen as a variable pointing to ... (by Acr)
long long array max size
 
hello, what is long long array's max size in c? I need to know this for my concurrency project. regards, Angela
[1 reply] : long long is 19/20 digits max http://en.wikipedia.org/wiki/Integer_%28... (by matsom)
Need help with *argv and while loops
 
hey guys, im writing a little text based RPG game in C++, just to work on my programming skills, and to learn the language, since some many other languages are ...
[3 replies] Last: If you're going to use std::string (not String) you can use the == op... (by lnk2019)
Typedefs and Constness
 
I have some confusion about pointers,typedefs and const. I have a function which takes a const charptr and prints that value. But when I try to compile I get so...
[2 replies] Last: Oh! Thats not very intuitive :( Thank you very much by the way. (by ZephyrTR)
if/else/else if statements
 
hi everybody, new to the forums, so if this isn't the place to be asking this sort of question i will gladly delete this. i'm in computer science 1 in school, a...
[9 replies] Last: next time i need to post code, i'll remember to use the code tags and ... (by closed account 98qGz8AR)
Constructor using a filename
 
Hello, This is my first time trying C++ and I'm having problems with my syntax and getting my program to compile. Basically, I'm just trying to read in a file ...
[1 reply] : C++ is case sensitive. Also it looks like there are more problems with... (by TheNoobie)
Bubblesort causing runtime error while sorting a dynamically allocated multidimensional character array
 
This is a homework problem, but I am completely stumped as to what is causing this error. I have tried searching for a solution online but it is difficult to re...
[no replies]
getline() / cin.getline()
 
I am writing a program (just for "funziez") that takes multiple types of data in one line and stores it all in an array, for example if the user entered "agt bd...
[4 replies] Last: The call to cin.getline( char* str, streamsize count ) will only rea... (by Alrededor)
Spell Checker Program Bug
 
Hello all, I have this program where I need to read in a letter or short paragraph and then spell check it with a dictionary file (a small one first for testing...
[5 replies] Last: For what it's worth, and for the sake of completeness, I figured this ... (by Spindrift11)
How to use code tags-need precise way to use it
 
People keep telling me to use code tags and what not but im not quite sure how to use it, where it says format: i got to the first option and get a ( ) I put ...
[3 replies] Last: finally haha thanks for that (by NYCrealist123)
by candme
share data among objects in a class
 
Let's say I have a class called myClass that will have a variable called commonData. Objects myOjectA and myOjectB are from myClass. When I assign / update ...
[2 replies] Last: That was it. Appreciated! (by candme)
structs and arrays and functions
 
Hello everyone I hope all is well, im having some problems that im hoping someone can help me with im beginning c++ and I am working on a problem that wants me ...
[3 replies] Last: Wow thanks for the fast reply and you guys are life savers i can final... (by adamk8875)
by ascii
questions involving inheritance
 
i have a few questions involving what and what isnt inherited from base classes. this basically just pertains to access modifiers. lets say i have a class...
[1 reply] : derived_class can still access public and protected members of base_cl... (by Disch)
Sorting a 2D array
 
Hi, I'm working on a problem that asks to create a set of cards in a 2D array, shuffle it then sort it. I have done everything except the sorting part, because...
[5 replies] Last: You have no class for a card? So you have: string Deck with ea... (by Intrexa)
Need help with tic tac toe game, please help.
 
I'm having some odd problems with this program. There's an odd smiley face thingy appearing on the board as well as the get_status function is not working prope...
[2 replies] Last: well, thats not really the problem, allow me to explain a bit further.... (by nocturnum)
by slash
while loop
 
Hey so i've started programming like 2 weeks ago when i started reading a book about it, and since i've learned some of the basics. So i tryed to make a program...
[3 replies] Last: It may be a pain to rewrite it, but you could make this more efficient... (by Lynx876)
April 2011 Pages: 1... 3031323334... 55
  Archived months: [mar2011] [may2011]

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