Beginners - October 2011 (Page 41)

:: Cannot do heritage in c++
 
Hi, i'm start learning c++ in my colleage, and i'm having a problem that i cannot resolve. The heritage does't seem to work, when i compile it appears base clas...
[8 replies] Last: Thanks a lot guys. This includes are still odd, but now it's working. ... (by zumbicap)
General C++ Projects
 
Hi all, I am not in touch with c and c++ from last year or so. Now i want to work on these language again. I want to make a project in c and c++ which can r...
[3 replies] Last: MIT's OCW course "Introduction to C++" is pretty good for refreshing t... (by Gaminic)
Using new and delete with pointers
 
Hi, I am trying to use new and delete with some pointers and I have a couple of questions. I have a lot of code, and I'd rather not post it just because it w...
[10 replies] Last: No, that's not what i meant. To move an item within the grid can be do... (by coder777)
Race Conditions in pthreads
 
I have a piece of multi threaded code which does some number crunching. At some point, one of the threads generates a certain data which must be shared with all...
[1 reply] : I have not had any experience doing this sort of thing, so don't count... (by TheMeerkat)
by aasaa
allocate char*
 
class Problem { char* _description; int _line; public: Problem(char* description, int line):_description(description), _line(line){} // shouldn't _d...
[4 replies] Last: Basically, your "I send string and the accepted value is char pointer ... (by sbonnalc)
by tonnot
Need help for string *my_array_of_strings
 
I have this private array; string *my_array_of_strings; On main I have ; my_array_of_strings = new string ; Ok, I pass this array to : get_d...
[3 replies] Last: mmmm I think that it was a problem with another array bad sized. So... (by tonnot)
Logical Date Check Program
 
Hi guys! I have to write a program inputs dates as a sequences of three integers, and checks to see if they are valid dates. I'm having trouble with Februa...
[3 replies] Last: Thanx guys for the support! I was taking a little break but I'll get o... (by mbentley1989)
by RyanV
My Code Feels A Little "Unpolished," Any Suggestions?
 
Howdy guys, I just had a project for my first year CompSci class where we had to design a program that would generate a list of random numbers and then calc...
[5 replies] Last: well dunno wat seed is but the following program seems to be shorter a... (by mj1709)
by Tatipu
Question about one of my assignments
 
I have an assignment where I need to find standard deviation and I guess I know the formula for that but for the required output from my instructor the outpu...
[7 replies] Last: well dunno wat seed is but the following program seems to be shorter a... (by mj1709)
by hikoch
a simple loop, but i need help
 
i want to write a loop that i dun want the command to be X, Rd larger than 10001, Rd smaller than 0, Cd larger than 10001, or Cd smaller than 0 while ( (...
[2 replies] Last: I am answering this assuming that you mean the loop will stop when E... (by Stephan)
by alend
Is there any Stray or Dangling Pointers in this program?
 
#include <cstdlib> #include <iostream> using namespace std; int array(int *x); int main(int argc, char** argv) { int x ; int y ; ...
[4 replies] Last: THX (by alend)
by boston
More payroll...
 
Hey guys, So I have more payroll to do. This one involves arrays. I'm going to reduce the quantity of variables involved, but I need parallel arrays to display...
[4 replies] Last: Bumpity bump... (by boston)
I need help. Error c2447
 
Hi I wrote this simple program to calculate tax and what not, been trying to figure out what is wrong with it. Fixed all of the errors except this one. Been try...
[7 replies] Last: No problem occur when I compile it code::blocks your code is error fre... (by Dinesh subedi)
by CIS
for loop iterator
 
Hi all! What is wrong with this loop that have to increment each element in the vector? vector<int>::iterator iter; for (iter=scores.begin(); iter!=scores....
[4 replies] Last: Yes, the idea was trying to modify the vector by adding one to each va... (by CIS)
Understanding the code
 
Hey, C++ community! I'm learning the basics of classes and came across this one piece of code in the example. I've made my version of it and tried to remove ...
[10 replies] Last: Okay, time to continue to learn C++ :V (by DavidScript)
by Nybble
Reading Dynamic Memory
 
Since no one answered my last question on that other thread, here it is: I want to read memory off my process, for example I have this global variable with the...
[2 replies] Last: lol is not masochism... I mean I'm reading the memory on MY OWN proces... (by Nybble)
by Reku
if-then syntax help.
 
There is somekind of syntax error going on with my nested if statments, the code compiles correctly but instead of outputing one of the choices i.e. enter 9...
[3 replies] Last: Yes it all makes sense, thank you for the information. I kind of figur... (by Reku)
Trouble using templates! Please help!
 
So I am trying to create a HashTable class and a HashEntry class that use templates. Currently I am working on the HashEntry. The .h file is as follow: #ifnde...
[3 replies] Last: Thanks so much @sbonnalc. @ThangDo thanks for the notice but if your ... (by Ronald Garay)
Fibonacci numbers c++
 
For my computer programming course I need to write a program that asks the user how many numbers to display and then displays that many Fibonacci numbers. The p...
[9 replies] Last: Hahaha, no-one ever gave me full answers for my homework assignments w... (by stridexr)
Which of the following identifiers are C++ reserved words, standard, other valid , or invalid identifiers?
 
Okay this is a question from my homework, and I'm a bit confused, especially with Standard identifiers and Other valid identifiers. I mean what's the difference...
[8 replies] Last: I tried using time as an identifier doing int time=4; then cout<<time... (by Athar)
October 2011 Pages: 1... 3940414243... 59
  Archived months: [sep2011] [nov2011]

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