Beginners - April 2013 (Page 18)

Confusing in inheritance
 
I do this excercise: Implement a sort function that takes a vector of pointers to an interface class, Comparable, that defines a method, compare(Comparable& o...
[4 replies] Last: i change as above and stuck in making compare function to write out na... (by kradragon94)
by kabuki
Structures help
 
In this program, I just want to input an employee's data and then have it show me the report. My question is what am I doing wrong here because I'm not getting ...
[8 replies] Last: Okay, I've just fixed it. I just changed all the operators to . operat... (by kabuki)
Array help
 
I have to make the program sort values. My professor told me easiest way would be to put the values in a array first. I am to assume there will be no more the 5...
[2 replies] Last: wow that was simple, thank you very much (by theco0kie)
small question
 
I am looking for a specific value in “from_node” edge struct, how do I find it…I need to traverse all edges of adjList, How do I access that? Thank you! ...
[1 reply] : Each adjList is of type list<Edge>, so you have to iterate over the... (by keskiverto)
by lmsmi1
SetConsoleFontEx()?
 
Can someone please give me an example of SetConsoleFontEx() please? I've got the first two parameters down ( GetStdHandle(STD_OUTPUT_HANDLE) & false ), but ca...
[4 replies] Last: I've not used this function myself. But presumably you need to define ... (by Chervil)
what graphics to use on Dev C++ 5.4.0
 
I'm trying to make a flowchart(programming flowchart) maker, i.e. the user draws a flowchart through this application. Previously i was using allegro 4.2.1 on D...
[no replies]
Can anyone help me with my arrays please?
 
I must use functions and arrays and I am having issues and cant get my code to run. I have even put it through codepad and I am not really understanding what I...
[5 replies] Last: Thank you for the help screen name will be used to give credit for the... (by ejhernandez381)
Hangman drawing problem
 
The hangman drawing in the code looks completely fine. But when the program is run in the console it looks awful and changes the drawing?! #include <iostrea...
[6 replies] Last: Your code has laid out the graphic using whitespace outside the string... (by Chervil)
Functions
 
Write a function named totamt() that uses four parameters named quarters, dimes, nickels, and pennies, which represent the number of each of these coins in a pi...
[5 replies] Last: For all those that helped thank you. Here is what I ended up with: ... (by ashonk226)
a project
 
hi body; please help me do my own homework . i must write a program that takes 2 Polynomial and do it with The four main operation (+ - * / ). thank u;
[1 reply] : Please note, that it is not a homework site. We won't do your homework... (by MiiNiPaa)
debugging
 
I can't get this to run for anything. Any ideas where I went wrong? #include <stdio.h> #include <iostream> #include <conio.h> #include <time.h> #in...
[3 replies] Last: I don't get an error. It runs, but does none of the calculations. It... (by aflangdon)
Counting characters
 
I'm currently trying to count the number of specific character a file has and output it out as data but my program counts the letters only up to the letter "s" ...
[6 replies] Last: It may help to note that the fourth parameter to std::accumulate (on l... (by keskiverto)
My first Allegro game
 
Hi guys so lately I've been working on a basic 2d shooter and I've run into a problem, my game starts up but doesn't do anything, and closes outputting The prog...
[14 replies] Last: bool Collision(float spaceship_x,float spaceship_y,float asteroid_x... (by Lazerah)
system("CLS") is too slow
 
First, a preamble; I don't care that System() is unsafe, and I don't want to implement some sort of graphics interface/layers/windows. I just want to use the co...
[6 replies] Last: Cool thanks :) (by ausairman)
Playfair Cipher
 
So im trying to create a 6 by 6 grid of a playfair cipher code. This is how it works...I enter a keyphrase and that keyphrase is put into a 6 by 6 grid ignoring...
[1 reply] : the problem is this: fc++; if (fc == 6) { fr++; // fr is increased, bu... (by coder777)
istream_iterator read text file.
 
How do you get an istream_iterator to read an entire text file word by word? Apparently its' continuously reading the first word in the sentence. #include...
[2 replies] Last: That was simpler than expected =p. Thanks Cubbi for that and the tip. (by Olysold)
How do I create a vector of new'd vector pointers
 
I've recently discovered that I can call the destructor for a vector of pointers using this: // call destructor of all pointers in this vector: std::for_...
[5 replies] Last: [quote=cire]My question is, why add 100 new'd elements to a vector? Wh... (by cire)
by suraya
fatal Error C1083
 
hey guys, i am writing this code and i got 8 errors i have no idea were did they come from but the first error is fatal error C1083 cannot opn program database ...
[4 replies] Last: thank you guys i will try that zhuge :) (by suraya)
while with a string? Help please.
 
Hello. My objective with this program is to get a name, and two test scores from the user. Then, get the average of the two scores and print the user's name wi...
[1 reply] : The loop condition is only checked at the beginning of the loop so it ... (by Peter87)
by ccwhat
can't reference have a type cast?
 
A simple question, just wanna make sure. int a = 10; double& b = a;
[1 reply] : It is possible, but be careful and know what you do. int a = 10; doubl... (by Peter87)
April 2013 Pages: 1... 1617181920... 83
  Archived months: [mar2013] [may2013]

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