Beginners - July 2012 (Page 51)

by UDBV
Something not sleep() but just as simple
 
Someone told me that code that contains "sleep()" can only run on Windows. Having a knowledge of C++...
[12 replies] Last: These functions don't really "sleep", they are looping-looping-loopin... (by UDBV)
by DrExd
Proof Reading Please?
 
First time attempting this problem. It takes a value and calculated prime numbers up to that ...
[5 replies] Last: Thank you all for your comments and tips. They are very helpful to a b... (by DrExd)
Unix tail command
 
My assignment is to mimic the Unix tail command. For those of you who do not know it, it prints out...
[4 replies] Last: Looks like we're up and running :). For those of you looking for the ... (by Lowest0ne)
Help with cin/getline
 
I'm working on an exercise in "Thinking in C++" dealing with Stack structures. The following main co...
[2 replies] Last: Ignore... that's a handy one. Thanks for the help LO. (by PadreDoom)
getline
 
can we use getline function throught loop to input multiple names..? my code in not working properl...
[1 reply] : Your problem is the mix of >> and getline(). See http://www.cplusplus... (by coder777)
Array of object
 
Let's say we have a class called Test... Test test ; Book I'm reading says that this wil...
[12 replies] Last: Hmm I'll have to look into what vector does in this situation. I've ... (by ResidentBiscuit)
Trouble Understanding Linked Files
 
I fear that I do not properly understand linking. When I use the following code I am unable to compi...
[2 replies] Last: This change did not seem to fix my problem. I now get more than just t... (by vckngs7)
function not within scope
 
I am having trouble figuring out why I am getting an out of scope error here. Here is the code. ...
[9 replies] Last: I made the declaration global just to see if the code would work. I wa... (by vckngs7)
any data type on array?
 
hey guys like my tittle above, i wanna ask you about any data type which may be used in the array, ...
[2 replies] Last: You may define arrays of any type except of arrays of void(s), referen... (by vlad from moscow)
What actually happens when you replace comparison with assignment
 
So it seems like a lot of beginners tend to replace the comparison operator with the assignment oper...
[12 replies] Last: @ResidentBiscuit What actually happens when you replace comparison ... (by vlad from moscow)
Prime Number function
 
Hi.I am new to this forum.I am developing a program which has a function that tells whether the valu...
[3 replies] Last: There some formula(method) to check whether a no is prime or not.I don... (by Akshit)
by pragu
What happens when we declare int main() ?
 
So what i understood was, by declaring int main() at the start of the program, the compiler instruct...
[5 replies] Last: From: http://en.wikipedia.org/wiki/Main_function_%28programming%29#C_a... (by ResidentBiscuit)
sting counting ?how??
 
Im trying to teach myself string but i cant get anything to display. how to you take a string an...
[3 replies] Last: Line 13 should be inside the loop, but it still doesnt do what you wan... (by Lowest0ne)
Unions? Why?
 
So I can kind of see where unions might have been used when computers had 1 MB ram, or less, but thi...
[9 replies] Last: 32 bytes of ram This is ridiculous haha. What's the ISA look like f... (by ResidentBiscuit)
OOP - Linking implementation and header
 
Hi guys, I started the OOP chapter yesterday, and I get most of what is happening. However, ther...
[2 replies] Last: Alright, thanks a lot for the information :) I'm glad to hear I didn... (by sfBlackfox)
by zoldri
hexadecimal calculator problem
 
hi, ive got a problem with a calculator ive been writing, ive managed to get user input separated in...
[15 replies] Last: Cool, that's a run time error fixed. (by TheIdeasMan)
How to set values of 2d arrays c++?
 
i am working on a game and it would be very helpful if i had a 2d array to store coords how do i set...
[2 replies] Last: Thanks I wasn't sure how to do it....of course you could go coords bu... (by supperpiccle)
by mekki
filename
 
hi, i do create a menue function that should generate separate .txt files for users. commands like ...
[3 replies] Last: great txh, cheers... (by mekki)
Moving a void to a .cpp file
 
I'm apologizing in advance for the long code. I'm trying to move a void to another file (for organi...
[4 replies] Last: When you declare an array the size must be known. here BRICKS is not k... (by Peter87)
Why wont nothrow work?
 
#include <new> using namespace std; int main () { int i,n; int * p; cout << "How many...
[3 replies] Last: 3000000000000 is probably more than int can store. Add some error chec... (by Peter87)
July 2012 Pages: 1... 495051525354
  Archived months: [jun2012] [aug2012]

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