General C++ Programming - November 2013 (Page 39)

need help on this program
 
Read the input file of data ( employees.txt) and store them in arrays. This company can have up to 55 employees i need to do these following in these progr...
[9 replies] Last: but give me error it o make one change (by GokuK97)
c++ in Xcode
 
Hey guys I am beginning to program in c++, i am using xcode as an IDE (i am a mac user) and I know how to set up a project, but when I debug my project it says ...
[1 reply] : You need to set a breakpoint on the first line of your code and then s... (by ajh32)
by Ceset
getting the pixel value
 
hi i use SDL2. and i was testing some functions i took from some internet and some unwanted results happened. the code Pixel *GetPixel(SDL_Surface *surface, ...
[3 replies] Last: yes ne555 thx. as you said it does not know how to print a pixel sth i... (by Ceset)
by j2013
command line
 
Hi, anyone know how to use to program this? Write a C++ program that reads from the command line the names of 4 players and their scores for an on-line game....
[5 replies] Last: Sorry, not using this method. Have to be command line, argc, argv ... (by ajh32)
How to use a bool function to get my results for acceleration?
 
I have finally figured out how to get my data from the file and output, but now I am having trouble with my acceleration function. Right now, I have the acceler...
[3 replies] Last: How do I then assign the necessary storage space for my a_array?and y... (by MikeyBoy)
3 number sorting?
 
Can someone check my code to see if it works. I can't get it to output anything.. (it does compile) I'm not sure that my swap is working properly. Thanks! ...
[6 replies] Last: Your code seems fine to me. As per helios "There's at least one cont... (by narutopk1985)
for not working how it should
 
well, i don't know why this is happening, but for some reason the for don't stop after the condition is true and keeps going like 3 or more times before ending,...
[1 reply] : Are you sure the value of id is what you think it is? Also, are you... (by MikeyBoy)
Help me
 
I have to write a menu driven program which will maintain a list of car models, their price, name of the manufacturer, engine capacity etc., as a doubly linke...
[1 reply] : plz help me to Implement the above programme with the required algori... (by Catfish4)
Inaccessible error in inherited function
 
THis is my small program i am getting error CPP 46: 'result::putdata()'is not accessible #include<iostream.h> #include<conio.h> ...
[1 reply] : result::putdata() is private . Make it public .... (by Stewbond)
NEED HELP ON PROGRAM
 
Create a class called DollarsCents for performing arithmetic with money. A driver program is given to you to test your class. Use integer variables to represe...
[8 replies] Last: I'm sorry to hear that you have to take this course for a requirement,... (by xismn)
Help create this program!
 
This is my first year taking a C++ class and I don't quite really understand a lot of whats going on. My teacher told us that we need to create a student databa...
[no replies]
hard code to solve
 
hey can anyone solve this problem ive been thinking about it for days but cant find a solution. Project Description You are given a certain number of matches ...
[14 replies] Last: booradley sorry that 2^62. guys please ive been thinking of a way to ... (by jliusuwan)
Help with Car Class
 
Please help me Im having trouble with this Program! I am to write a class named Car with the following members: int year string make int speed A construc...
[1 reply] : #include <iostream> #include <string> using namespace std; class Car... (by JLBorges)
Help on code!
 
Im supposed to create an to array of eight Circle objects initialized with the radii which is in the program. Also I must use bubble sort to arrange the objects...
[1 reply] : The error are pretty self-explanatory. You didn't define any members f... (by helios)
how good is my debugging "library"
 
so i wrote the debugging part of my library and i was just wondering any improvements i could make to it? #include <iostream> #include <string> #include <...
[9 replies] Last: i incorrectly remembered what i asked him. for some reason i thought i... (by closed account Dy7SLyTq)
Functions doing a word_search
 
I am writing a program that determines how many times a word is repeated in a file without a main function. I almost have it correct but it doesn't exit after ...
[2 replies] Last: I am new to C++ and im trying to write this function without userinput... (by jarmstrong21)
Using a loop to read in data from a file?
 
My function is only reading the first line of numbers even though I have the loop to keep returning to it in main(). How do I have it read from the file until ...
[8 replies] Last: Can anyone tell me why all the grades from the file are being applied... (by vin)
Getting Char to Equal a Char
 
Hello. In my program, I need to enter a char and if it is equal to a certain letter, I need the program to do a certain thing. For example: char a ; cout <...
[2 replies] Last: if (a== 'y' || a=='Y'){ } (by wwwiii)
by CroCo
UDP protocol in a conditional statement?
 
I'm facing a serious problem with udp protocol. I have Master & Slave devices.I did implement the class as the follow pseudo code states In Master side while ...
[3 replies] Last: 1. What do you mean by "slow down the process"? 2. And how do you kn... (by histrungalot)
highest value in the array problem
 
I don't know why im getting that error can anyone help #include <iostream> #include <iomanip> using namespace std; int main () { int const SIZE= 12; ...
[2 replies] Last: Ok that fixed But then then i get this error Run-Time Check Failure... (by ygetach4)
November 2013 Pages: 1... 3738394041... 46
  Archived months: [oct2013] [dec2013]

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