Beginners - June 2011 (Page 26)

Read any kind of input
 
Hi folks! I'm learning C++ on my own using tutorials here and there. I have a question about input. Say I want to get input from the user but I don't know wha...
[7 replies] Last: Another way is to take the input string into a 'instringstream' . and... (by manasij7479)
power
 
i Have a problem with using and declaring power for example (squared radius) how can i go about it?
[6 replies] Last: In general terms, the more modern ones such as cmath , cstring and ... (by Moschops)
by adabo
Console closing, seemingly ignoring cin.get()
 
Hello, On line 14, I expected the console to stay open long enough for the user to press a key while displaing some text. When I run this (using Visual Studio ...
[7 replies] Last: Just to throw in my two cents. Whatever you decide to use, make it int... (by Computergeek01)
catching cheaters on assignments
 
I've been learning the basics of programming as a course needed for school. There's a rumor going around that the profs know when your cheating if you copy/past...
[8 replies] Last: @lordmat LOL (by anonymous23323124)
Implementation of the proposed data structure
 
Today all I do not think competition would be good too, what do you expect to be there all the generosity made ​​this post back up their fears or re-use dig...
[3 replies] Last: I understand they want us to help them not to fail the class because i... (by Computergeek01)
Black screen upon loading new map
 
Hey forum, I have a small problem with my map loading function. The initial map loads perfectly fine, but when I load the second it shows a black screen where ...
[4 replies] Last: I already debugged it all and it all seemed good :S EDIT: found out... (by xander333)
Is there a better algorithm for *this problem ?
 
The problem is to find the no. of 3x3 matrices of no.s..the rows being perfect squares....like: 121 256 169 whose transpose is same as the original.. The solut...
[no replies]
by snakec
object oriented programming question c++
 
Hello I'm new to object oriented programming. I read serval tutorial over the Internet but there is no clear explanation of my question. Can anybody give me...
[4 replies] Last: [quote=vehshiCoder]ans 4: If the state of object can be changed it is ... (by Mathhead200)
by Prudok
Strange
 
Hello. I have got a strange error in my programm. It's compiling well, and runs too. But when it must to perform 'cin >> where;' , it simply doesn't do that, an...
[5 replies] Last: cin.sync(); works ! Thank you L B, and anyway thank you all for tryi... (by Prudok)
Copy Ctor and assignment operator
 
#include <iostream> class base{ int i; int *pointer; // const int constint; public: base(int ii)//: constint(ii) { pointer = new int(ii); } ~base() ...
[3 replies] Last: Thanks Philip and fun2code... (by ankushnandan)
Review: Interest Earned
 
Hello, I'm having a problem running this program. The problem occurs when I have to enter the values for the code to run. /*Assuming there are no deposits ot...
[3 replies] Last: Better a simple fix you just overlooked, I always say. Glad to be able... (by Zhuge)
Strings
 
I need help separating a file into strings. The data looks like this: abe lincoln, 35.2, 10.75 george bush, 40, 20.50 b clinton, 50, 20 john adams, 45, 1...
[3 replies] Last: hmm... ...what did you put in the second argument for split() - a nul... (by kfmfe04)
how to make an array arbitrarily large?
 
I know that in order to initialize an array you must do something like: string myArray ; But what if I don't know how big the array is going to need to be...
[2 replies] Last: when you read the the tutorial mentioned by Zhuge in the past reply th... (by david91)
by motin
Compound Assignment Statement.
 
hello, i m new in c++ Help me to understand about Compound Assignment Statement thanks
[5 replies] Last: u can visit this link for better help http://techyv.com/questions/com... (by hosler mark)
What book should i use to learn C++
 
Hi, i want to learn C++ and i have some knowledge of it. I am wondering what book i should use to learn C++ "Sam's teach yourself C++ in one hour a day", "Think...
[2 replies] Last: I suggest either "The C++ Programming Language" or the "C++ Primer" as... (by Athar)
Completely New NEED help (1,2)
 
Hello, I would like to learn C++ but have No idea where to start. What is a good tutorial to watch? What should i download? All i have right now is Microsoft Vi...
[20 replies] Last: Several awful ways: std::cin.get(); system("Pause"); Ma... (by Danny Toledo)
by Mike1
Messagebox on program exit
 
Hello. I've been doing C++ for a week or 2 now and I'm trying to have a messagebox appear when the "X" button on the title bar is clicked. In notepad, when y...
[4 replies] Last: Xander, I'm just wondering how I could have a messagebox appear when t... (by Mike1)
by xcure
initializing class member variable during declaration
 
Been through 8 chapters and this following statement isnt clear::: "initializing class member variable during declaration is not permitted" ok great, bu...
[3 replies] Last: You can't do that because you have to let the person using your class ... (by LB)
How do i save? Please Help
 
I have just made a basic program that calculates the square root of a number, i was wondering how i could save it so i could send to to my friend so he can try ...
[6 replies] Last: hahaha - Moschops - that's one crazy guess! I was thinking that perha... (by kfmfe04)
how insert,edit,delete linked list into structure?
 
hi all in my program,I have an structue of students with fields name,family,st_no,course,... and in this structue I must have a linked list for his lessons ...
[1 reply] : At first you can use std::list<Type> If you have to create your own li... (by XanderMax)
June 2011 Pages: 1... 2425262728... 41
  Archived months: [may2011] [jul2011]

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