General C++ Programming - April 2008 (Page 6)

Incorrect Answer
 
Hi would you kindly help me with the following program. i want this program to calculate the corr...
[2 replies] Last: if (numDaysPerWeek >= 0 && numDaysPerWeek >= 8) cout <<"Enter 0, 1, ... (by cppman)
My program doesnt like command line variables
 
I have a program that is supposed to take user input for the command line but my program isnt workin...
[11 replies] Last: Okay thankyou. (by eker676)
by jobuny
Verifty that a valid email address entered?
 
I'm working on a school project and it's driving me nuts. The program requires taht a user enteres t...
[6 replies] Last: Just for info: std::string has an implicit conversion constructor taki... (by DrDogg)
Dynamic Memory Allocation for Multi Dimensional array
 
I want to create a multi-dimensional array in runtime in as simple way as possible. so, i tried the ...
[2 replies] Last: thank you grey wolf. actually i posted it there... and later thought,... (by paragdhungana)
File Decryption Help
 
Hey I'm working on decrypting some files that were encrypted with basic encryption for a school ...
[1 reply] : 81, you say? 127 - 81 = 46, well within the boundaries for normal ASCI... (by rpgfan3233)
by yangyy
Help on incomplete type
 
I have two classes... for example, class a and class b. for class b, i have to write a overloading i...
[2 replies] Last: Is class|struct A defined? If not, you can do a quick thing here: ... (by rpgfan3233)
need help on exception handling
 
i have implemented a try...catch block in a C++ program. the compiler identifies 'try' and 'catch' ...
[12 replies] Last: satm2008: Returning int from main is not standard in C++. (See stan... (by DrDogg)
Obataining variable from other source
 
I have 3 c++ sources in my project, and am wondering how to obtain a globally declared array from an...
[1 reply] : Read up on the extern keyword. This extern keyword is used to spec... (by closed account z05DSL3A)
Please Help
 
i want this program at end to calculate the number of votes per each character and the totals, i am ...
[1 reply] : Just create variables to hold each total, then increment in the approp... (by firedraco)
Getting very confused
 
Hey guys, i've got a problem and the more i think about it the more i get confused. I have a program...
[1 reply] : Since you are dealing with a relativly small number of data items (40)... (by Faldrax)
quick timer question
 
Hey all I'm writing a simple app that will turn off my computer after a user-defined time has pas...
[1 reply] : If you are using MFC, then use normal settimer, if you are not using... (by guruplus)
by nezi
problem in calculating size of derived classes
 
class base { private : int b; }; class derived : public base { private : ...
[2 replies] Last: okay,thank you.I got it. (by nezi)
by nezi
constructor problem
 
Why is the order of calling constructors governed by the order of class declaration?
[3 replies] Last: Okay, It’s probably a bit of a flippant answer, but if you have to c... (by closed account z05DSL3A)
Help new in c++
 
Guys, I have the following problem: i ask the user (through the console) to enter a string. The leng...
[3 replies] Last: My bad, I thought I had followed the link to string string page from t... (by closed account z05DSL3A)
ERROR SEGMENTION FAULT..
 
#ifdef WIN32 #include <windows.h> #endif #include <iostream.h> #include <stdio.h> #include ...
[no replies]
Problem with string in struct
 
I have a simple program that should sort an array of structs. I'm using two compilers Visual Stud...
[no replies]
Graphics in c++
 
Hello to all , I've recently moved to c++ (actually I'm still nowhere but thats a different topic )...
[10 replies] Last: senatin, sorry it tool me long to reply, was out for a while, had t... (by jdstufu)
Square Root Question
 
Okay, I'm attempting to make a program that finds the square root of a target number. I know how to ...
[2 replies] Last: I agree with msram. You use numerical methods to make your computer so... (by jdstufu)
Defining new datatype
 
template <int N> struct A { unsigned a: N; }; How I can use union with this template s...
[no replies]
by yun4
[C++] getting multiple arguments
 
Hi, i'm creating a c++ program that needs to take in multiple arguments. the arguments are 2 doubles...
[no replies]
April 2008 Pages: 1... 45678... 11
  Archived months: [mar2008] [may2008]

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