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. her...
[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 m...
[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 t...
[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 ...
[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 strid...
[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=="unl...
[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 tomorr...
[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 ...
[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 ...
[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++)...
[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>...
[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 (DO...
[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. Whe...
[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: ...
[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 comm...
[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...
[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 de...
[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/5t...
[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...
[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.