General C++ Programming - September 2013 (Page 9)

Need help with implementation , header and driver
 
Write a C++ console program in three parts. Header file, driver file and implementation file. here is my code but i dont know what is implementation , header...
[2 replies] Last: In this case I take "driver" to mean a test driver ; a test driver ap... (by andywestken)
by yhu420
while() conditions
 
Hi everyone, Today I spotted an error in my code and, unfortunately my IDE doesn't have any debug mode (actually it just doesn't work) so I'm referring to YOU ...
[14 replies] Last: I have seen in ugly code many times: if(condition) ; else stat... (by LB)
by rosan
it is solved... :)
 
i cant solve a problem... anyone please help me to do this: Create a LIFO queue, send this queue to a function WHICH IS NOT A MEMBER OF ANY CLASS, display all...
[14 replies] Last: First of all, a LIFO would be considered a stack, not a queue. In the... (by doug4)
Program won't process completely
 
Hi, I have a program that is supposed to process dummy inventory data and print results to the screen. No matter what I try, I cant seem to get the progra...
[2 replies] Last: Thank you! I was just logging on to say I figured it out. Curly brace... (by jdwdrums)
Programming
 
NEED HELP PLEASE. I am stuck? 1. Ask for runner first and last name? 2. Ask for first minute strides=190 3. Last minute stride=207 4. Ask for total running ...
[3 replies] Last: Thanks everyone for your help. I wi try one more time later but really... (by evan1991)
cin.ignore and getline are not working properly
 
int main() { string command ; cin>>command; if((command=="UNLOCK")||(command=="unlock")) { cout<<"~"<<endl; cout<<"UNLOCKED"<<endl;...
[no replies]
Private virtual
 
When should virtual functions be public, protected, or private?
[1 reply] : This article explains everything: http://www.gotw.ca/publications/mill... (by LB)
by phlowt
ASAP Please help me :(
 
I'm stuck, I cant find anything that's wrong.maybe im just sleepy and I have to give this in tomorrow morning! which is 8 hours away. so anybody please..help ...
[3 replies] Last: We can't help you since we don't have the compiler error. Or can we? ... (by yhu420)
class ship
 
im stuck and my program won't responed keep saying " In function `int main(int, char**)': " " no matching function for call to `Ship::Ship(const char , int)'...
[7 replies] Last: You can't name your constructor "records" like you did above. A constr... (by tipaye)
critter is dead
 
i tired what i know still couldn't figure out , i have to modify the program if the critter is dead can't do anything. i did a little modification in the talk w...
[2 replies] Last: Well here's a simple way to test if the Critter is still alive or dead... (by Uk Marine)
Can anyone help me convert this code into a nested while loop? i'm having trouble and I need to get this done by tomorrow :I
 
#include <iostream> void main () { int b=5; for(int i=1;i<=b;i++) { for(int l=1;l<=i;l++) { cout<<b; b--; } cout<<endl;...
[1 reply] : ALWAYS use int main(). You also need to use either: using std::co... (by Mats)
Direction moving (sine and cosine)
 
Hello! I have this basic code: #include <iostream> #include <stdlib.h> #include <iomanip> #include <fstream> #include <cmath> #include <glut.h> ...
[3 replies] Last: It looks like you are rotating the camera to give the appearance of th... (by CoderGuy254444)
HOW TO SHUFFLE A WORD?
 
HOW TO SHUFFLE A WORD COMING FROM A FILE? FILE *DOCU; DOCU = fopen ("file.txt", "r"); if (DOCU == 0) { printf ("\nFailed to open!\n"); exit (1); } ...
[4 replies] Last: coz no one answering my question.. That's not true. You got answer... (by MikeyBoy)
Arrays
 
I have declared an array and set values to it . for eg: arr =1,arr =12 etc.say for 5 elements. When i print the arr , i get 1 and when i print 0 , i get the v...
[1 reply] : since the array operator leads to addition it is commutative (by coder777)
Creating a half triangle using nested loops?
 
Can anyone help me/give me hints/tips? the output should be something like: 5 ...
[2 replies] Last: Looks like you meant the output should be: 5 54 543 5432 54321 In wh... (by ajh32)
Help with Pointers
 
Hi all, so i am having trouble with pointers. Our assignment is to fill in the places where the comments are to make it work and i did some areas but the rest i...
[4 replies] Last: Apologies everyone, point taken. (by tipaye)
Need Help :(
 
I created a program for a classs and i need help with the last piece, i have no idea how to make the lower case letters = the uppercase letter for a while state...
[3 replies] Last: A cleaner way: } while (toUpper(p1) != 'P' && toupper(p1) != 'R' && ... (by MikeyBoy)
What should i learn now.
 
Sorry if you think this is spam but i am not sure wear to put this qestion if you tell me i will delete the othre. Write your question here. Hi people i just...
[1 reply] : The best way to learn is to do. Think of a project you can do, and tr... (by MikeyBoy)
Binary ACSII Text Converter - Help
 
So basically I have an array of hex numbers representing a binary number. Each binary number is 1/5th layer of the over all font. For example... the letter A...
[1 reply] : string input; cin >> input; for (unsigned i=0;i<input.length();i+... (by tath)
data type problems.
 
So i made my first dll as my first real program in C. However I am a bit confused as to what part of my code does. I hadn't seen it anywhere or in any tutorials...
[2 replies] Last: Hmm.. seems like I was correct, data conversion and what not. Also tha... (by FatalSleep)
September 2013 Pages: 1... 7891011... 36
  Archived months: [aug2013] [oct2013]

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