Beginners (Page 3)

Prim's algorithm and binary heap
 
How does prim's algorithm use a binary heap if using an adjacency matrix?
[no replies]
Listing contents of a file
 
Hello guys I am not sure how hard or easy this is because if I am being honest I have no idea how to...
[2 replies] Last: Thank you @mutexe (by cory244)
Code works but I do not know why. Array problem
 
I had to write a code that took ten numbers from the user, put them in an array. The program would t...
[2 replies] Last: That makes sense. Just wish I had a firmer grasp on general programmin... (by luke6386)
Adjacency Matrix
 
Hi, I have an input file with string names of vertices to make a graph (adjacency matrix). How can I...
[6 replies] Last: Well, replace int with std::string. (by Duoas)
Help me with this program
 
This is what I have to do: Write and test a program that collects the total monthly rainfall for a...
[3 replies] Last: Thank you so much guys! I really appreciate it! (by JayJay007)
by paligq
Generating random numbers
 
I keep getting invalid operands to binary expression ('double' and 'double'). I tried to solve it m...
[3 replies] Last: Thank you guys both for your help it helped me solve it. (by paligq)
Can't seem to understand this array.
 
I need to create a function call convertToDecimal. This will then take an int array { 3, 2, 4 } and ...
[3 replies] Last: Just a hint for(int i=0;i<5:i++){ num=pow(10,(i-1)) } Now you... (by giblit)
undefined reference error in class
 
I'm trying to take the program slow aka building it slow so this is what I have so far. I receive an...
[1 reply] : Update to code, realized I missing constructors. Now the issue lies in... (by akrutke)
arrays in battleship game. help.
 
I can't for the life of me figure out these damn multi-dimensional arrays. I can't figure out what I...
[1 reply] : I'm really wondering if this code will compile. You should declare you... (by tcs)
by Juicej
Can't Get My Bullets to move
 
the bullet sprite only remain in the area i set it when i run my program... i've tried a few differe...
[11 replies] Last: i got something working that is crude. if you want a proper working e... (by rafae11)
expected type-specifier and cannot convert ‘int*’ in initialization
 
I have a large amount of code, so I have tried to only include the relevant parts of the code here ...
[2 replies] Last: The actual ASp.h includes the T_B_P_N, but when I wrote the OP, I Forg... (by larry burns)
Comparing 2 Character Arrays
 
Hi, this is my first post here so I hope I include everything I need to. The purpose of this progr...
[3 replies] Last: Wow, thank you both so much. That was such an easy solution I just cou... (by helenkr)
What purpose does a class access specification have?
 
I have a program that has a "derived" class that inherits the public members of a "base" class. But ...
[1 reply] : See http://www.tutorialspoint.com/cplusplus/cpp_inheritance.htm clas... (by keskiverto)
Vector subscript out of range error
 
Why am i getting this error message. for (int i = 0; i < a.size(); i++){ if (a == y) ...
[1 reply] : What if that is preceeded by: int y { 42 }; vector<int> a { y }; ---... (by keskiverto)
Locate substring question
 
Hi guys! I'm trying to write a little program that would do these tasks in order: Ex: ************...
[5 replies] Last: The find function takes the position you want to start searching fro... (by LB)
Create a file containing the following car numbers, number of miles driven, and number of gallons of gas used by each car
 
I am having a trouble with this question when it comes to loop a) Create a file containing the fo...
[5 replies] Last: For average miles per gallon you just divide miles/gallon. For the tot... (by danghotties)
by bs319
tic tac toe game, check is board is full and is position is taken
 
I have a beginner tic tac toe program to write. For this assignment we do not need to know who the w...
[3 replies] Last: Can you repost your code? (by PCrumley48)
Delete more than one record from .txt file
 
So i get the concept of how to do this but i'm just not doing it right. I have to ask the user if t...
[2 replies] Last: Ahh, i see. But i cant put it == to Student(id, firstName, lastName,... (by ezmesori)
getline function
 
I'm having issues using the getline function to read words from an input file into a string. I will ...
[2 replies] Last: Thank you, I tried to establish a string array like this, and I'm gett... (by JoJodoggy1)
finding least and greatest number
 
Okay so I haven't started writing the code yet but can I please have a hint on how to write a progra...
[2 replies] Last: An indirect hint: http://www.cplusplus.com/reference/algorithm/minmax_... (by keskiverto)
Pages: 12345... 119
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.