Beginners (Page 118)

Why segmentation fault (core dump)?
 
I've written the following code for http://uva.onlinejudge.org/external/114/11466.html When i giv...
[1 reply] : Segmentation fault is a memory error which means you've gone beyond th... (by Keene)
While Statement inputs the last input
 
Alright, so this is pretty self explanatory, but the while statement in my program is using the last...
[2 replies] Last: THANK YOU SO MUCH! I would have never found that! (by Zephrman)
reading from a file into a struct
 
I am trying to read some data into a struct from a file, but I keep getting an error for infile >> ...
[4 replies] Last: Something strikes as odd in this code fragment: infile >> whInvento... (by megatron 0)
Timers related question
 
Hello everyone. Quite straightforward: which function can I use to make a program count (in secon...
[2 replies] Last: Thank you very much for trying, but I already knew of sleep function a... (by Metronom)
Starting a program from C++
 
Hello How do I start a program from C++? It's a Python script by the way. It should be working o...
[1 reply] : On Windows: http://msdn.microsoft.com/en-us/library/windows/desktop/bb... (by MiiNiPaa)
comprehension problem using c string arrays
 
Hello everybody, I'm new in c++ and don't know much about using pointers. What I actually know i...
[9 replies] Last: are pointers the same thing as arrays and arrays are pointers?? No. ... (by MiiNiPaa)
C++ primer exercise 2.4.2
 
Please help ? Exercise 2.27 - Which of the following initializations are legal? Explain why. a) ...
[no replies]
assigning variables to an array of objects?
 
I have tried a couple different ways of assigning variables to this array. When I do it this way I g...
[3 replies] Last: Thank you! (by adam0421)
by NOD32
I need help passing values by reference (functions)
 
I absolutely suck at functions. I know that you need to declare a function, code for it outside main...
[5 replies] Last: gibllit: You are right, of course - I have been out of the C/C++ mode... (by PCrumley48)
Time input to int
 
Hello, I just recently started taking a C++ class so I apologize if this question is too obvious f...
[2 replies] Last: Awesome, thank you. I had a feeling it had to be done with a string, ... (by druid84)
by davez
finishing the atm
 
i have some problem concerning the withdraw part how can i prompt the user that the withdrawn amoun...
[2 replies] Last: nevermind i was already able to solve it (by davez)
Blog for newbs
 
Hi, I've been writing a blog called Adventures of a Wannabe Programmer, and would love to have any f...
[no replies]
Visibility of globally defined Vectors in Subfunctions
 
Can anyone see the mistake? I am generating a vector<vector<bool> > in an global namespace. Subfunc...
[3 replies] Last: //Accessing data bool access_vector(int x, int y) { /// first=pat... (by anup30)
Difference between Capacity and Size of an Array
 
Hello I just wanted yo know the differece between the capacity and the size of an array. Here is ...
[8 replies] Last: capacity to hold N Foos reserve(N) reserves for N+i elements //i>=0... (by anup30)
by msrt92
parameter constructor
 
output is not corrector its something like this Name:___________Azzz Natinality:_______Azzz ...
[4 replies] Last: All of these three constructors are meant to initialize their respecti... (by msrt92)
passing a char array to struct char
 
I cant seem to copy a char array to a struct variable.. struct name { char first_name ; ...
[2 replies] Last: #include <iostream> #include <cstring> // did you forget it? using na... (by anup30)
by hhhr
matrix
 
Im having trouble with getting this function to work. It is supposed to return true if 3 elements in...
[4 replies] Last: did this work for you? because it always returns true (by hhhr)
whats illegal
 
please help me whats illegal in c++
[4 replies] Last: if(illegal==bad) result = twoyearchildscode; else result= not... (by anup30)
by davez
Expand array
 
is it possible to add new elements to a array?without using vector?
[3 replies] Last: int *pt = new int ; // ... delete pt; int *pt = new int ; //actual... (by anup30)
by davez
editing elements of 2d array
 
is it possible to edit the contents of a 2d array? how
[11 replies] Last: im already able to do those exercises (by davez)
Pages: 1... 116117118119120... 123
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.