Beginners - March 2012 (Page 63)

Turbo c help!
 
So i have a new problem: Daytime Calls: 1. American Region P50.00 every 3 minutes 2. Asian Region P30.00 every 2 minutes 3. African Region ...
[5 replies] Last: already solved =) I used else if statement. No need switch =) (by clampzy)
by KBC
If else control structure
 
Can someone plz explain me the if else control structure. and also i've got a program to print the largest from given 3 no.s
[2 replies] Last: This comes directly from http://cplusplus.com/doc/tutorial/control/ : ... (by Stewbond)
by gian20
Need Help w/ VC6 Code
 
Hello, I am creating a program that will read all lines in a file until EOF and when I enter the code that will terminate the program names in a file it shows a...
[2 replies] Last: i dont know what youre talking about? yes, i am using MS VC6 Standard ... (by gian20)
by Barkin
YYYYMMDD format MM / DD / YYYY
 
Prompt the user to enter a date in the YYYYMMDD format. Example: 10 March 2010 is 20100310. Read the user input into a variable. Print an error messag...
[6 replies] Last: Lots and lots are wrong with your code. long int longdate = 2012030... (by codingshark)
by won212
NEED HELP IN PIG LATIN!
 
Hi, I was just playing around with Pig Latin & I came across this codes somewhere. I was trying to debug it, there was no error but I got weird error like this....
[2 replies] Last: So in line 13 should print word not piglatin? printf("Pig Latin: %s\... (by vin)
by hwuy
Milk shape reader
 
hey homies, i been trying to make a reader for milkshape 3d the graphics program. the software exports text files which the reader would read. I i were to make ...
[4 replies] Last: ok but how do you select the line. like if i wanted line 4 how would ... (by vin)
Portable code:blocks?
 
Is there a portable version of code:blocks that will run on both 32 and 64 bit windows 7 systems from usb drive???
[no replies]
Need help fixing Game Of Life Problem
 
Here is my code: #include <iostream> #include <string> #include <fstream> using namespace std; //Global Variables const int ROWS = 12; const int C...
[8 replies] Last: Thanks. (by shywolf91)
Loop Problems
 
Having trouble making this while statement work. It should end the loop when I enter Z but instead it keeps looping. Any suggestions? Thanks. #include <io...
[3 replies] Last: Thanks so much. I forgot about that and now it is working. (by Algar32)
by skwh
Error: expression must be a modifiable lvalue
 
I'm quite inexperienced with C++, and hoping that someone who is more experienced can help me. I'm trying to make a basic command-line program that converts te...
[2 replies] Last: Thanks. I'm used to Java and JavaScript, where there is no difference... (by skwh)
constructor problems
 
i have some homework and need some help with it so i thank you in advanced. i have two structs apartment and building. apartments are identified with floor and...
[1 reply] : I'm not sure what your question is exactley but why not create an arra... (by Stewbond)
"Voting machine" in C++ using Geany [Linux]
 
Hello, people! I need help with only one thing I need for this program to work perfectly. The "voting machine" can input all the votes (apparently) and the loo...
[6 replies] Last: I'll study for loops more and modify the code. Thanks a lot! (by Rodrigo Sieja)
can anyone explain this simple code to me
 
// static members in classes #include <iostream> using namespace std; class CDummy { public: static int n; CDummy () { n++; }; ~CDummy () { n--; }; }; ...
[2 replies] Last: the constructors (CDummy () { n++; }) increment the static variable i... (by AARGH)
Encountering a linker error with my constructor.
 
Hey there, I'm working through Stroustrup's book on learning programming, and one of his exercises is to build a class that will output the arc shape. My prob...
[9 replies] Last: Thanks, LB, you've been most helpful. (by kelbirk)
goto or function
 
which is more stable? using goto or using function?
[2 replies] Last: Using functions and loops correctly will give your program a real stru... (by Stewbond)
Byte Limit Problem
 
Hi, I was working on a project, and I exceeded the byte limit (65,536 bytes), and I'm hardly done! I used lots of if and elseif statements, so I'm wondering if...
[4 replies] Last: Ok, I'll get codeblocks and unduplicate my code. And my compiler is bl... (by westbrook)
by Kuzco
Address-of operator on method
 
Hi there! I'm making this class for handling sprites in DX10, and it hold this static ID3DX10Sprite * spriteObject, which I need to initialize with the functio...
[1 reply] : > Hiding data is a good thing, right? Not necessarily. If it hides im... (by JLBorges)
Efficient way to input a line of float values
 
I am trying to solve this problem: Closer A kid has been working on an assignment in his math subject the entire night. His task is to find the mean (...
[1 reply] : use getline() and stringstream. Example: #include <iostream> #includ... (by Null)
Operator Overloading : Return by Reference
 
For some of the binary operators, if we wish to have chained functionality we return the object to support it.Below is one such example: ostream& operator<<...
[5 replies] Last: In the example you've shown, the main difference is simply that you ge... (by Bench82)
by atjm88
Call Function
 
#include <iostream> #include <conio> int main() { cout<<swap_values(int &v1, int &v2); getch(); return 0; } void swap_values(int &v1, int &v2)...
[4 replies] Last: Thanks Stewbond...the program works fine...but a question here...what'... (by atjm88)
March 2012 Pages: 1... 6162636465... 71
  Archived months: [feb2012] [apr2012]

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