Beginners - April 2012 (Page 11)

error: undefined reference
 
Not sure what I'm doing wrong. Here is the error message: main.cpp:32: undefined reference to `FindPath::FindPath(Graph&, std::basic_string<char, std::char_tr...
[no replies]
A challenging bit of code for you (1,2)
 
So i was given an assignment with some unusual parameters. My teacher likes to add difficult objectives to make the code longer (really just to be evil) and thi...
[20 replies] Last: Well. I understand the output he wants. But what about the prompts? Wh... (by Vlykarye)
lottery application
 
I need to compose a program that simulates a lottery. the program should have an array of 5 integers named lottery and should generate a random number in the ra...
[4 replies] Last: georgep, the numbers are to randomly generated. (by dsustudent59)
by myoni
identifier "poly1" is undefined error
 
why I'm getting error message : identifier "poly1" is undefined in line: cout<<(poly1==poly2); why and how to repair it ? this is my code: #includ...
[4 replies] Last: thanx (by myoni)
help plz
 
plz i want to understand this code i want comment for each line plz void clearscreen() { HANDLE hOut; COORD Position; hOut = GetStdHandle(S...
[3 replies] Last: another question plz how can i handle mouse in snake game Is this p... (by mohamedsaid)
cards
 
im making a program which simulates poker. i need a way to evaluate if the player has a flush, straight flush, or 4 of a kind. i am just wondering if there is a...
[no replies]
Need help with RPG, calling functions
 
What I have so far is two rooms, A and B and each room has it's own function.. how am I supposed to make it so the rooms can be called amongst eachother so the ...
[5 replies] Last: remember the sleep function should also be remade. (by ui uiho)
Using ifstream and Functions
 
I am doing an assignment and we are writing a function that needs to pass the ifstream by reference. However, I am not sure how to declare that. In short [pse...
[2 replies] Last: Thank you. (by badkaykay)
Pointers - > taking the address
 
Hi all, I have a doubt regarding a particular usage in pointer. In all the books i have seen the below mentioned usage *(&x) ---> gives the value at...
[2 replies] Last: As Athar said, if x is a pointer, both give the same result. However,... (by doug4)
Load files
 
Ok, I have a load and save system set up for a small console based game I'm making to learn more about c++. So far, I have figured out how to write to a file an...
[2 replies] Last: OK thank you so much! I'll try that later(: (by opiop65)
getting not declared in this scope error
 
im getting this error on compile:: nScores not declared in this scope please help me!! //average- averages a set of scores entered // by user using a a...
[1 reply] : try remove the "int" in line: for (ncount=0;int nScores >=0;ncou... (by Script Coder)
Hard time with functions
 
This is for extra credit, please do not give me the code. If you can just point me in the right direction, tell me where to look, etc. I am writing a program ...
[10 replies] Last: Thank you. :) Have a final in two weeks. I got this to work yesterday... (by badkaykay)
SDL--Why wont the surfaces apply!?!
 
Hi So im working on my final project for my intro to C++ class. Im trying to impliment the A* pathfinding algorithm. The first thing i need to do(and am tryin...
[6 replies] Last: wow nevermind i just fixed it. smh...soo simple. Im so bad at making t... (by zertech)
programming interview and abstract intelligence tests
 
why would employers use abstract intelligence tests ?
[1 reply] : To help them judge a candidate's abstract intelligence. Intelligence i... (by Moschops)
by jody
array of pointers to derived class
 
Hi I have a class called 'base', and a derived class called 'sub'. What i can do: sub s; base b = s; base *p = new sub What i can't do is assi...
[4 replies] Last: Good catch, ne555. I totally missed that. (by Disch)
class average problem
 
I have an assignment due soon and need help with it i dont want the work done for me but just some guidance here is the assignment. write a program that read...
[no replies]
Simple word counter
 
Hi! I've taken part the text into 1 word per line, but I can't figure out how to printf every word only once and then add (%d) in the end to show how many re...
[no replies]
Array same as Pointer
 
I am making a 2D grid console class, and came across a problem, is: int array ; the same as: int **array; if being declared in a header fil...
[2 replies] Last: No. The first doesn't even compile. (by Peter87)
Reading the next line
 
I have a nearly completely functional bit of code, with one roadblock due to my lack of experience. This code is supposed to read from a file and tell what the ...
[no replies]
Linked Lists Question Tres
 
TL;DR NODES WITH MORE THAN JUST ONE VAR + POINTER TO NEXT NODE? So right now I've learned that linked lists consist of nodes that interconnect each to anot...
[3 replies] Last: This. Is. Awesome. (by incremental)
April 2012 Pages: 1... 910111213... 66
  Archived months: [mar2012] [may2012]

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