Beginners - April 2010 (Page 17)

How to learn C++ language in easy way
 
I'm back again guys! Can anyone suggest or give some tips how to start C++ programming? Like where do I start, what knowledge I'll be using aside from the...
[4 replies] Last: The learning of a language is only as easy or as hard as you make it. ... (by Albatross)
by TNine
Build not updating or run-time error?
 
I am a very beginner C++ programmer working on my first big program. It is a menu program/calorie counter hybrid, and i added in the calorie counter when all t...
[7 replies] Last: Thanks guys, but i have identified it as a definite compiler error. ... (by TNine)
iterator not dereferencable error
 
for ( fileVector_t::iterator i = filev.begin(); i != filev.end(); ++i ){ cout << "Extension: " << i->extension_ << "\n " << "Size: " << i->size_ << endl; ...
[2 replies] Last: that makes so much sense. That's what I was trying to say but for the ... (by workman845)
Where do I find out how to interface with a DBMS?
 
I have a problem where I know so little about the subject I cannot ask the question properly --but here I go. Where do I find out how to interface with a DBMS(...
[no replies]
by oman
read two words by one string...How?
 
How i can read two strings like one string? this is the file id hours gpa major department college 1111 130 2.00 Biol Biolo...
[5 replies] Last: It appears to me that your teacher is asking you to determine somethin... (by Duthomhas)
an example of parallelizable program.
 
hi! I have to take to my teacher a program in c++ parallelized with opennmp. I an quite a noob and every program I think can't be parallelized. If someone can...
[no replies]
Can I read a file like this into an Array?
 
This is the txt file we were given. Barney Jones 95 83 92 85 87 85 29 Sandra King 99 97 92 91 92 95 32 Josh Harding 0 0 0 0 31 37 30 Can I read strings ...
[3 replies] Last: I think I understand what you want to do. The short answer is no, you ... (by m4ster r0shi)
by jbl09
"for" loop must never run
 
hello i need help with my program. i have to write a program that allows user to input a base and an exponent. i have the program already done, but one of the ...
[2 replies] Last: Post the code--specifically, the for loop. (by moorecm)
by louisa
Racing game
 
Hi i am very new to C++ and i am trying to convert a pong game into a racing game. Im having a few issues like i want to have a spilt screen and the two racers/...
[2 replies] Last: //after 30s of inactivity quit game if ((SDL_GetTicks()-iTicksLast... (by louisa)
Arithmetic Question
 
Hi all, I know this is kinda of a dumb question but I was hoping someone could help me on this. I know math and I know C++ evaluates from left to right us...
[6 replies] Last: lol AngelHoof. Live and learn is definitely a rule we all have to l... (by wolfcry)
Implementing general timers
 
can some one give me some advice on how to implement a timer..
[5 replies] Last: Yeah. ctime doesn't work. I think it's just something funny about the ... (by keikiwai)
Text game
 
string sytnaxengine(string syntax) { if (syntax == "north","n") {syntax = "gon";} else if (syntax == "south","s") {syntax = "gos";} else if (syntax == "...
[6 replies] Last: lol yay it finally works and yes the output is correct (by mythbusterma)
We had better put the member function in/out of the class body?
 
I found that: as long as we put the member function's definition in the class body, there won't be any "multi-definition" problem when the header file is includ...
[6 replies] Last: oh, I see, Thank you so much! (by northfly)
Avoid header multi inclusion guard
 
there are facilities to guard the header file to be included several times like this: #ifndef XXX_H_ #define XXX_H_ #endif so I guess if I put m...
[7 replies] Last: I see, thank you very much!!! (by northfly)
by Cn00b
soundex issues
 
I have a question as to how I can loop through my if statements and replace my array indexes with a variable (like i) and still output them to show the soundex ...
[3 replies] Last: Your if statements are incorrect -- a comma-separated expression lis... (by Duthomhas)
Construct with a literal array
 
Hi. I'm trying to initialise an array in a constructor. I know I can do it like the following: double* data; data = new double ; data = 1; data = 0; /...
[1 reply] : well, i'm not %100 sure but i guess {} are used only for initializatio... (by Dufresne)
How can I understand this static local variable?
 
the execution of the following code will generate numbers from 1 through 10, instead of a serial of 1, why? size_t count_calls() { static size_t ctr=...
[3 replies] Last: Thanks guys, may be there are some internal mechanism to prevent a sta... (by northfly)
by Okaya
Passing an array of unknown size to a function
 
Hello everyone, I am trying to pass an array to a function as a parameter. Usually, when I pass an array whose size is known to me, I do the folowing: ...
[5 replies] Last: Okaya could you please look at my question in the disscusion board and... (by nano90)
Output in Printf
 
Hi, Could anyone explain me following output in C. #include<stdio.h> int main() { char str ="Zingle Bell Zingle Bell"; printf("%.#s %2s ,str ,str)...
[5 replies] Last: Could anyone point me reason if it not wrong question. (by agoswami)
openmp
 
Hi I am new and I have one question that I need to know for my next exam. Why every program I parallelize with openmp takes a variable but however longer ti...
[5 replies] Last: I don't know what "parallel for reduction" does, but neither power() n... (by helios)
April 2010 Pages: 1... 1516171819... 35
  Archived months: [mar2010] [may2010]

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