Beginners - January 2013 (Page 9)

char pointers
 
I am writing a program that calls the memory address of different variable types. I am having troubl...
[3 replies] Last: Thanks for the help and the info provided has helped me better underst... (by arcticman452)
Tips for this program?
 
This isn't asking for any certain instruction or anything. I can compile this program fine as it is ...
[1 reply] : Rather than using if every time you can use, if(choice == 1) { } el... (by HiteshVaghani1)
string concatenation, the hard way
 
Greetings people of cplusplus.com, I am working on a task wherein I am required to create my own str...
[2 replies] Last: Thank you very much, this is exactly what I needed... not sure why it ... (by quagnar)
Program with multiple choices
 
Im currently working on a basic program that gives you 6 choices to choose from and you choose by in...
[4 replies] Last: Alright i'll try out the switch statement in a little 'exercise' progr... (by Xerogravity)
by stJohn
Firing a projectile straight to the target
 
Just a simple question regarding physics and maths in firing of projectiles. I've created this firi...
[9 replies] Last: Normalize the position if the object, which will give you a vector as... (by pogrady)
HELP Random Number Generator help
 
I just really need to know how to make a function in which a random number is given, until it is sto...
[6 replies] Last: It sill does not work. This is what have so far... #include <iostream... (by SoulHero)
Reading from a text file.
 
The idea of this application is to read words stored in a text file. For example, I have a text f...
[2 replies] Last: thank you (by Widget360)
Forward declaration of class
 
How would I go about forward declaring this class so i can use it in and cpp file? test.cpp #incl...
[2 replies] Last: Ok I understand what i was doing wrong. I looked at another one of you... (by closed account D1AqM4Gy)
by Ch1156
My program is acting strange all of the sudden
 
Ok so i was making some minor improvements to my text encryptor program and for some reason when i s...
[16 replies] Last: That's because of L'Ѝ' which is two characters: U+00D0 and the un... (by Cubbi)
help with C-strings
 
#include <iostream> #include <cstring> #include <cctype> using std::cin; using std::cout; us...
[no replies]
Problem with "getline"
 
Hey, or better good night! I have a problem in a very tiny programm, which should just ask questi...
[1 reply] : cin >> iAlter; [...] getline( cin, sSchule ); You didn't consume th... (by Cubbi)
by clodi
Contact Management Tool question
 
Hello, I'm just about to write a Contact Management Tool program for me, myself and I. It's basical...
[4 replies] Last: thank you very much mate. Actually, I have been working on "ChiliTomat... (by clodi)
by Phazon
Why is this condition true?
 
short id = 1; std::vector<short>::const_iterator i = ign.begin(); if ((ign.size() > 0) && (*i...
[2 replies] Last: Ah, thanks for the help. (by Phazon)
Airline Reservation System
 
I am new to C++ and am required to build an airline reservation system (seems to be a common assignm...
[10 replies] Last: Having trouble writing the delete function. Comments explain what I'd ... (by programming girl)
by User1
Need help with Error
 
I need to make a program that takes user input and check for errors after all the data has been ente...
[4 replies] Last: Thank you very much, you have pointed me in the right direction. Che... (by User1)
enter not returning line?!
 
ok so now the only thing I need to know how to do is that if the return is hit and no entry is made ...
[no replies]
by mobat
Looping Iterator problem
 
I have code which looks like this: void Gear::equipArmor(Armor* &armor) { bool found = fals...
[2 replies] Last: Your problem is that you're using an integer for something an unsigned... (by Nexius)
Program to calculate failure loads of rc columns
 
Hi all, I am not new to c++. I took a module on computing 3 yrs ago. However, due to the lack on pr...
[9 replies] Last: Hi Pogrady, sorry for the overdue reply. Thanks for your explanation.... (by yamehyameh)
by tpinon
string length validation?
 
I'm writing a payroll program. One of the entries is an Employee ID# that should be 6 characters lon...
[5 replies] Last: I changed it to a string array and it seems to work now. Thanks Chervi... (by tpinon)
setprecision not working
 
After data has been read in from a file, I have to set the balance to have 2 numbers after the decim...
[3 replies] Last: It is a double. I'll just look over it and try a few things. I'll repo... (by sunnyxm)
January 2013 Pages: 1... 7891011... 52
  Archived months: [dec2012] [feb2013]

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