Beginners - July 2009 (Page 2)

Meaning of an error
 
Hi, I am reading deitel and associates' how to program in C/C++... I followed the code that was written on one of the chapters.. I typed them myself to be acqua...
[3 replies] Last: Thanks for the fast replies.. i think I get it now :D (by jinxcube)
default mode parameters for open member functions
 
On http://www.cplusplus.com/doc/tutorial/files/ it says: ----------------------------- Each one of the open() member functions of the classes ofstream, ifst...
[7 replies] Last: I wonder how the compiler could recognize the two overloads when passi... (by Bazzy)
by MiaZas
Vector printed in columns
 
I have a vector filled with 52 elements and I want to print them into 3 columns. How would I do that? I mean, I can print them with some loops and have spaces i...
[3 replies] Last: It's actually not really that hard. Loop through and just use setw ... (by Tevsky)
Object creation inside swtich statements
 
Is it not possible to create an object inside a case of a switch statement? I tried and got the error: error C2360: initialization of 'account' is skipped b...
[8 replies] Last: MyObj* obj = 0; switch(foo) { case bar: obj = new MyObj( st... (by Disch)
creating a tree pattern using looping
 
I am having trouble trying to create this the way my professor wants. this is what is required from us: Write a complete program that prints out a “tree” o...
[3 replies] Last: Ok well i just made this program (only using the two conditions from t... (by mcleano)
Printing one digit integers with two digits
 
Hi there, I am trying to write a program in which I need to get printed some integer numbers. This is an easy task, but one point is I need integers less tha...
[4 replies] Last: Aye aye captain! (by mcleano)
How to disregard code.
 
Hi guys, this will sound rather silly im sure but I want to know how do I disregard large chunks of code when i don't need it? I don't want to delete the code j...
[6 replies] Last: The industry standard way is to use R0mai 's method. C and C++ pro... (by Duthomhas)
First question in a while
 
Aight, so a friend asked me to write an organizer program with the vector class. #include <fstream> #include <iostream> #include <limits> #include <strin...
[9 replies] Last: Debugging segfaults is typically pretty easy. What have you learned b... (by kempofighter)
Create button at runtime
 
This may seem a little bit fundamental but I am relatively new to C++ and cannot find the answer anywhere so far. I need to create a new button on a form whe...
[2 replies] Last: Thanks for the help, it was really useful! :-) (by danieljabailey)
string and answers...
 
hey guys ive been reading the pdf tutorial and i checked the "if and else" and i wanted to know if i can do this: string mystring = "are you okay"; cout <<...
[3 replies] Last: ohh okay i wanted to know only thx for the answer... the then was for... (by shoryuken123)
read input string
 
I hv an assignment to translate words enter by user. I have done some code and it is work to translate single letter enter by user... e.g: the user enter "s...
[2 replies] Last: It really work....ok the code is as below #include <iostream> #... (by yusnita)
Need this C++ program
 
Hello Guys, I am In need of your help,I need to make a program that can store information you give it and search the information you gave it. When enterin...
[1 reply] : You can create a class with all the info you need as members, then sto... (by Bazzy)
finding the elements in an array of void pointers
 
Hello guys, how can I figure out the types of elements in an array of void pointers ? Because I guess I have to cast them, and in order to cast them I need ...
[12 replies] Last: Thank you guys. I figured it out. :) Best regards (by cppuser)
Error when overloading operator<< for a template
 
Hi everyone, I'm writing a template Matrix and I want to overload operator<< so that users can write cout << myMatrix; in the future. It is a friend ope...
[9 replies] Last: Thanks that makes it clear :) (by wmheric)
Hiding Console Window In Runtime
 
I am working on a project in which there is a login module. This login module is a separate application whereas rest of the program is also divided into differe...
[16 replies] Last: Yes exactly - what? (by Mythios)
by Nelo87
Password always accepted.
 
I have to make a program that asks for someone to make up a password. The password should at least contain: * 6 characters. * 1 uppercase letter. * 1 lo...
[4 replies] Last: I believe the string1.length and other functions are in the next chapt... (by Nelo87)
by burner
errors with volume and area calculator
 
I'm having problems with another calculator I'm writing. I'm trying to have it so that if a user types a and hits enter, it will then run the function to calcu...
[5 replies] Last: okay, thanks. I know one says prism and the other says rectangle, cus... (by burner)
by chria
Reading an integer
 
Hi, I have a problem with reading an integer from a user. What I do now is using this bit of code to read an input: int intInput while(!(cin >> intI...
[4 replies] Last: Here's something to blow your mind. :-] The template stuff you can ... (by Duthomhas)
Nontype template parameter
 
Hi guys, why doesn't this code compile? template <class T, size_t N> void array_init(T parm ) { /*...*/ } but this one does: templat...
[8 replies] Last: you can not pass a array to a function, no matter it is a NORMAL funct... (by fetag)
Compiler and Debug close w/o reason or error message
 
Hi guys :D So, I'm writing a simple blackjack card game program, and it's been going pretty well up until I started using vectors. I need them because the size...
[3 replies] Last: Thanks a ton for the stuff in the first post, it helped a lot! I don'... (by roflwaffle)
July 2009 Pages: 1234... 20
  Archived months: [jun2009] [aug2009]

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