Beginners - December 2009 (Page 4)

what am i doing wrong???
 
It's a simple program but what am I doing wrong here? #include <iostream> using namespace std; int main() { double pounds, kilograms; cout<<"pleas...
[3 replies] Last: cout<<"how tall is the tank?"<<; // add something after << or remove ... (by Bazzy)
by olvine
password
 
can any1 do me a favour??? do write me a code for displaying astericks while writing password in a string of name pass . using getch(); or any other other ...
[3 replies] Last: http://www.cplusplus.com/query/search.cgi?q=password (by Bazzy)
Windows in Turbo C++ 3.0
 
How to program win32 application under TC3. If required any library please tell me.
[6 replies] Last: Dev-C++ is outdated too (by Bazzy)
by Eug
set_cursor_pos ?? Keeps failing
 
Hello! I'm trying to do some graphics. I write : set_cursor_pos(10,10); But cursor doesn't think to move! clear_screen() function works properly, bu...
[2 replies] Last: It's msoftcon.h, msoftcon.cpp (by Eug)
Pointer Question
 
Hi Guys, I am really getting confused in pointer-to-pointer. Here is my question int sales = { {10,11,12,13}, {20,21,22,23}, {30,31,32,33} } ; i...
[17 replies] Last: Thanks a lot Disch. I really appreciate your help. Finally I underst... (by kevinchkin)
Templates
 
I have a few questions about templates. 1.If I declare operator<< as a friend in a generic class,how can I define it outside class?What should I write? i.e....
[1 reply] : 1) Since the function in your example seems to be totally unrelated to... (by Disch)
Is there a way to complete my averaging program, as I've started?
 
For average, I have it read number entries into the array, but how do I sum each value in the array to divide by num? /* Designed by: B.M. Date: 1...
[1 reply] : Line 69: The declaration of set is invalid. A size must be provided. ... (by helios)
Program problems with getline()
 
while(!myfile.eof()) {getline(myfile,line_read); if (name != line_read) { myfile << "\n"; myfile << name <<"\n"; } } Here is the code...
[2 replies] Last: You're trying to std::getline() from an output file stream. std::getli... (by helios)
Variables as text file names
 
I am sorry if this was previously addressed. I searched for it and couldn't find it. Is it possible to create a file with a variable as its name. For exampl...
[5 replies] Last: Thanks for the help. (by klq9386)
Game Design
 
Hey, Status: I am designing a game for a competition(Technology Student Association). I am currently learning the C++ language and plan on using O...
[2 replies] Last: REGULATIONS A. The game segment must be turned in on a DVD. B. T... (by ArcherSam)
by Kuzco
C++ training tasks
 
Hi there Do anyone know about a webpage or someting with tasks I can do to help learn C++. Maybe on classes, references and pointers. Or maybe someone could ...
[1 reply] : http://cplusplus.com/forum/articles/12974/ (by Disch)
Loading .STL Mesh Files
 
I am trying to find an example or some help in reading 3D .STL mesh files here is a sample of the file contents; facet normal 0.000000 -1.000000 0.000000 ...
[no replies]
overloading assignment operator
 
I need some explanation of why I can't do this: MMsg msg2 = msg1; in the following code and still have it give the same results as MMsg msg2; msg2 = msg...
[6 replies] Last: thank you Helios - solved! (by hansfordmc)
random numbers
 
I have two separate functions that I want to create random numbers (1-13) with and I want them to return different numbers. I can't figure out why both function...
[18 replies] Last: ouch! that wasnt a tomato! that was an empty beer can! lol :D (by BettyBoopTS)
by ARWA
nested while loop
 
hi,im studeing c++ know so; i have this question: i want to out put the positive divisors of the integer in decreasing order. I think that i should...
[6 replies] Last: the loop reversed: #include <iostream> using namespace std; ... (by BettyBoopTS)
by nnis13
Console program.How to prevent making infinite loops by alphabetic characters
 
I am currently making a console program and i want the user to give a number from 1-5.And i want to be able to check if he entered a value out of the range 1-5 ...
[2 replies] Last: OK thanks i will try it (by nnis13)
by ycai77
error: no match for 'operator='
 
I tried to compile the following code using g++. Could anyone help point out what is wrong here. Thanks a lot. Happy holidays. ==== code ==== #include <ios...
[11 replies] Last: Depends, like I said, on how you're going to allocate the object, and ... (by helios)
simple code keeps failing!!!
 
I know this is child's play as far as code but for some reason it doesn't want to succeed here it is # include <iostream> using namespace std; int main(...
[3 replies] Last: I just caught it I missed a cout<< stupid of me!!! (by jason007thomas)
by zzvsst
a problem about istream
 
hi, i'm reading the chapter on "standard IO library". And i copied below codes, with some little changes, to my IDE. #include<iostream> using namespace ...
[6 replies] Last: Thanks to Bazzy and btripp. I have tried what Bazzy posted. It works ... (by zzvsst)
What API do you use?
 
What API do you use and why? DirectX or openGL? Or any other API. I don't have a whole lot of knowledge of either, so I want to find out whats best before I ...
[6 replies] Last: I thing OpenGL is easier than DirectX, with DirectX you need a lot of ... (by Bazzy)
December 2009 Pages: 123456... 23
  Archived months: [nov2009] [jan2010]

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