Beginners - September 2008 (Page 4)

How can I use map !?
 
Hi. I just started to write a program with MAP and PAIR but I had some problems with it. I wanted to keep some pairs and wanted to later find them in O(lgn) so...
[1 reply] : What's the key type in mapx? (by helios)
by sfx81
simple string reverse problem
 
Hi I wrote a small string reverse program. But it is not doing what its supposed to do... this code works fine char str = {"I am doing reverse string"};...
[2 replies] Last: int i = 0; char str = {"I am doing reverse string"}; int len = strl... (by psarathbr)
by jrock
overloaded function not working
 
#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; int bill(int); double bill(double); int main() { // declare ...
[1 reply] : In line 33 you get the user's choice but you do not act upon it. Ther... (by int main)
by kaisin
need assistance! timer starts without button click
 
what i want to do: button click, timer will enable, images will appear what i get: images starts to appear when i run the program without button click h...
[no replies]
Repeating
 
Hello peoples, I'm making a little project for my Grade 10 programming class and I need help with repeating a part. else if (choice1 == 2){ cout ...
[2 replies] Last: Aaaah, thank you! This was confuzing me for a while (by Waffleflavouredbacon)
Won't compile need criticism.
 
#include <iostream> #include <cmath> using namespace std; const int MaxString = 32; typedef char StringType ; int main() { const int Ma...
[2 replies] Last: Why you are defining const int MaxString and a typedef twice? An if s... (by firedraco)
by dyajz
Having problems with writing the code..
 
The program is to determine if the year the user enter is a leap year. If the year is 1582 or before and divisible by 4 it is a leap year..if it is after 1582 a...
[1 reply] : Your assumptions of leap year might be wrong for the, divisible by 4, ... (by xabnu)
by p3aul
valdating user input from Edit box
 
Hi! I need to make sure a number, floating point or integer, I don't care, is entered into an edit box. No alphabetic characters or punctuation. I know that t...
[1 reply] : There should be a TMaskEdit control you can use. If not you will have ... (by Duthomhas)
by Pookie
New to C++ Basic Program need guidance
 
Basically for this assignment we needed to make a program that would solve quadratic equations using the quadratic formula. I got most of the program down bu...
[1 reply] : You will need to do one of two things: 1) Split your cin into thr... (by jsmith)
MySQL++ Setup
 
I'm trying to use MySql++ in Xcode. I'm not 100% sure how this works but it seems I need to install the myclientlib file so I can use the mysql header in the C...
[no replies]
Problem with floats (new to programming)
 
Hey first post. I have to write a program that takes a food bill and does 15% gratuity and rounds UP ! I am using floating point numbers and cant figure out ho...
[5 replies] Last: Hint: multiply by 100, do some calculations, then divide by 100. (by jsmith)
calculation of age
 
Hi I need to calculate the age of the user from the date of birth input by him.I have been searching the net for programs that work but to no avail, could some...
[1 reply] : We won't solve your homework problem for you, but we will help you if ... (by jsmith)
Trouble in programming...
 
Hi, I'm a beginner of studying C++, and now I'm facing a problem. I have an off-class practice which let me write a program to show the way of input of a ...
[3 replies] Last: In windows you can set the cursor in the console with the function Set... (by jmc)
by Wawski
Writing an array to a BMP file
 
First of all, being new to this forum I would like to say hello to everyone :) now my problem; I'm trying to write the contents of an array to a BMP file. I...
[8 replies] Last: Even if you couldn't make it work, make sure you understand the concep... (by helios)
homework problem need assistance with while loop
 
I'm taking a programming class this semester and I need help with my homework below. I'm studying electrical engineering, but i have to take this class. Your ...
[1 reply] : This is all i have....not sure where to go from here HOMEWORK #... (by jcorral79)
Object Oriented Design Question
 
Anyone know good reference of Object Oriented Design in C++? I'm looking for the basic concept, tips, 'the way of' designing an Object. Currently I'm a litt...
[3 replies] Last: are you looking for a book on C++ design parttens ? well I am a new... (by sanzilla)
troblem getting program to run correctly
 
so heres my program, it is supposed to take the inputs and see if they are within the given ranges, if they are then they are supposed to tally a vote to see if...
[12 replies] Last: You can use an if clause for errors occurred or something like that or... (by jmc)
null references
 
hi all , Using the visual C++ 6.0 I have wrote a simple console program. This is the code. #include <iostream> using namespace std ; class Employee...
[4 replies] Last: coolz ! you ppl are really great guys man . I going to love C++ beca... (by sanzilla)
array
 
hi, guys, anyone who can help me make a program using one dimentional array program which should ask 5 letters and display the letters in alphabetical orders. ...
[1 reply] : http://www.cplusplus.com/forum/beginner/1/ (by helios)
Possible to delete selected portions of fstream file content?
 
Hi all, I'd like to ask a question on the use of fstream. Let's say that I've opened a binary file for reading using fstream. Is it possible for me to del...
[2 replies] Last: If you mean moving bytes in the file itself around, it's possible, but... (by helios)
September 2008 Pages: 123456... 16
  Archived months: [aug2008] [oct2008]

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