Beginners - October 2012 (Page 68)

Help with system command
 
Hi, I'm trying to test my skills by making a dos script to mess with my friends, but its not working. Here is my code: First attempt: http://pastebin.com/3j...
[7 replies] Last: but the reason i even made this thread was to see if we can incorporat... (by ryan7136)
Exercises with loops
 
Yet another newbie hoping for a little bit of help. Despite reading a lot of theory about for and while loops, i realised that all this theory doesn't help me ...
[4 replies] Last: Right tool for the right job. Trying to learn how to use loops by app... (by Disch)
by Morfen
Is there a better way to type this code?
 
Hello! /// OBS \\\ I'm new in both forum and C++ coding.. so I am looking for a better solution on this line of code! I think you can understand wha...
[1 reply] : dx += 2; dy += 2; dx -= 2; dy -= 2; (by TheJJJunk)
Why Doesn't the Counter Count?
 
So I'm having issues with the switch. It loops fine and stops when I put in the sentinel value of -1, but when it writes it has 0's for everything...why? H...
[3 replies] Last: @lasombrra May I ask what book you are using, and what page the examp... (by whitenite1)
by EZX
do..while cycle problem
 
Task:Make a program which can show the money left owed to the user while the user inputs the money owed total and the amount he can pay each month. After each m...
[8 replies] Last: maculhet, it DOES! Thanks alot! (by EZX)
Problem with getting variables to work in other code
 
Hello im kind of new with class' and im wondering how i can get the data to work in other parts of my program, i have some few errors where i define it and it ...
[5 replies] Last: Can you explain me and yourself what does this function return? void... (by vlad from moscow)
Can somebody help me fix the issue from getting data from the class to be used in the program?
 
Can somebody help me fix the issue from getting data from the class to be used in the program? Part 1 of code (whats needed to understand) #include <iostream>...
[6 replies] Last: _ No encapsulation (all those getters/setters) _ You don't understand ... (by ne555)
Reading from files
 
I'm writing a program to read from a blacklist and a whitelist of names and determine if the person is allowed to have access. However, when it reads from the f...
[1 reply] : You just needed to change the conditions of your while loops #includ... (by TheJJJunk)
by jademe
Test 2nd column in txt file
 
Hello, I have a small program where I need some help please... I have a txt file: ]title(text) ]g 30 ]Test1 5000 ]Test2 <<---------- Test the 2nd column...
[1 reply] : You're going to need to re-word, re-display, and re-phrase this if you... (by TheJJJunk)
by Sins
variable sized object may not be initialized
 
I'm trying to let the user choose between three functions for the program to run, but when I compile I get the error" variable-sized object `addnumber' may not ...
[3 replies] Last: I should think the simplest way would be not to use array storage at a... (by cire)
Exiting While loop
 
I'm working on code for a program and am stuck trying to cleanly get out of my loop. Here's the code: I'm trying to figure out a way out of the loop with out ...
[5 replies] Last: You could change line 20 to if ( ++hit == 9 ) break; Of cours... (by cire)
Aligning with arrays.
 
My code reads data of a text file. I am suppose to have do the calculations and have it save to an output file with proper alignment ( left justified, center an...
[1 reply] : http://www.cplusplus.com/reference/iostream/manipulators/ You're look... (by cire)
by Ch1156
How do they update games?
 
This is a little off topic but its not at the same time. I was wondering how they update games, like make patches for them and source code changes when the fina...
[6 replies] Last: As i am an networking guy i know how they do it basically they make an... (by closed account ozUkoG1T)
Problem with coding
 
#include "ShippingContainer.h" #include "ManualShippingContainer.h" #include "RFIDShippingContainer.h" int main(){ RFIDShippingContainer theRFIDShippi...
[11 replies] Last: senior?@@ (by BasicNewbie)
size of structure
 
#include<stdio.h> #include<stdlib.h> #include<conio.h> struct NODE { int info; float next; char p; }; int main() { p...
[5 replies] Last: The compiler tries to make the best use of the hardware. I don't think... (by Peter87)
by rey9
cubic formula
 
i am trying to make a program that will compute the roots(real and complex number) of a cubic equation. can anyone help me to develope this code: #include<ios...
[no replies]
by Zavoky
Exception Handling
 
Hi, I just recently read about handling exceptions and I can't get it to work ship_setup is an array, 'moves' is an int whose value is the number of values in ...
[1 reply] : Is that a call to std::find? std::find does not throw exceptions. You ... (by Peter87)
Help me. do statement must have while problem
 
//Graduation Program #include <iostream.h> #include <conio.h> const char password = 'AV'; void main() { long double x,y; char pass, ar, ch; ...
[3 replies] Last: //Valedictory Address //Class Pledge { case 'J': { clrs... (by pain630)
How do I print this array?
 
Hi! I'm still quite new to c++ and I've found a problem with one of my projects. So I have this array void Interface::vecProd(){ Product *p; p=new Pro...
[1 reply] : You would add an accessor to the Product class that returns the name a... (by pogrady)
How would you write this program?
 
Im writing a program in class. You're suppose to write a program that prints out pet insurance fee Write a program that prints the insurance fee to pay for a...
[2 replies] Last: you ask what type of animal it is then ask if the animal is neutered ... (by sillymonkey)
October 2012 Pages: 1... 6667686970... 84
  Archived months: [sep2012] [nov2012]

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