Beginners - August 2010 (Page 25)

looping problem!
 
someone help me check my code.. #include <iostream> #include <cmath> using namespace std; double get_score(double,double,double,double,double); double ...
[1 reply] : Whats the problem? And could you please put your code in code tags lo ... (by mcleano)
by cope73
Yes/No User Choice
 
Hello, I am attempting to allow the user to enter a choice of y (yes) or n (no) for a specific question in a program. However, upon compilation the program fai...
[10 replies] Last: To the cout vs printf question: [quote=Parashift com FAQ] [15.1] Why... (by RyanCaywood)
by kaduuk
Usefullness of arrays
 
Hey guys, As I'm yet a real beginner in c++ I was reading through the tutorial on this site. I got to the chapter about arrays and I'm finally getting what e...
[4 replies] Last: ok, thank you! I think I get it :) (by kaduuk)
by haheha
How to solve this kind of errors..
 
Error 1 error LNK2019: unresolved external symbol _GCLSRAPI_Serial_Close referenced in function _ucDownloadFirmware ISP_GPX_Process.obj Error 2 error LNK2019:...
[9 replies] Last: Warning 1 warning C4819: The file contains a character that cannot be ... (by hahehah3)
How long did it take you guys to learn all of C++
 
My problem is I think Im rushing it. Like I get all the concepts and everything, (I haven't mastered them, but I understand them). Im learning classes right now...
[19 replies] Last: [quote=filipe]Herb Schildt? From my experience, it's best to stay away... (by outcome)
Setting up my very first program.
 
I'm trying to teach myself c++. I have Visual Studio 2010 Ultimate. Out of all the tutorials I have looked into, not a single one tells me how I should set it u...
[4 replies] Last: Just to be clear: Setup a Win32 Console Application, not a Win32. ... (by AngelHoof)
Is there a way to return an array from a function?
 
Ok... So here is a sample function... char* func() { arr = "Hello world!"; return arr; } Is that possible? If not, please tell me how t...
[16 replies] Last: array packed into structure, C-style #include <stdio.h> #includ... (by outcome)
Prime numbers
 
How this code actually works int i, j; for(i=2; i<16; i++) { for(j=2; j<=(i/j); j++) //confused if(!(i%j)) break ; if(j>(i/j)) cout<<i<<" / "...
[6 replies] Last: Can you include actual numbers, it'd be easier to comprehend; e.g. fro... (by constantx)
Functions driving me crazy
 
Hey guys, iam assigned a program that has to read in 3 values (sides of triangles) at a time and find the area. The values have to be read from a file, they are...
[1 reply] : //void readData(ifstream &, double, double, double); void readDa... (by ne555)
Ok, I'm getting crazy.
 
I've tried everything I could think off, yet my problem stays. I'm trying to make Dungeon Crawl (beginner exercise) and I think I'm almost done, but for some r...
[7 replies] Last: I found a fix, thanks for your help all :) (by xander333)
'result' not declared in this scope
 
Am using 'Code Blocks' 10.05 on a windows 7 pc to follow the cplusplus language tutorial. Entered the second project 'operating with variables' exactly as writt...
[4 replies] Last: Thank you! I can't believe I missed it! (by gmanandge)
by wtr
switch a word
 
So the thing is you have to put in a name, like "wtr". Then you have to check what's the length of the word. Now we have to switch the other word, so ne...
[9 replies] Last: That snippet is meant to do just that. It assumes word has been read, ... (by filipe)
What is this "int *argc" and "char *argv[]" in arguments of main()?
 
I had a chance to look at the codes of some (small-time) professional software, written in C++. In almost all the main() functions there are these two paramete...
[4 replies] Last: Wow! Coooool! Thanks... :) (by madmaxsantana)
by invic9
Pascal Triangle in Square
 
hmm..i got some trouble on this code which i failed to make an output like tis : 1 0 0 0 0 1 1 0 0 0 1 2 1 0 0 1 3 3 1 0 1 4 6 4 1 Pascal triangle in...
[3 replies] Last: Your missing the console applications entry point which can either be ... (by binarybob350)
map::count
 
If the map is like std::map<int, std::string> myMap myMap ="ab" myMap ="bb" myMap ="ba" I have to check if a string is present in the map or not my...
[6 replies] Last: I've recently become an advocate of boost::multi_index_container. It ... (by moorecm)
Which IDE? [Windows Vista 64-bit]
 
Ok... I'm not sure if I should ask the question here... I have been Googling the terms "C++ IDE on Windows Vista" and I found some pretty good threads on the to...
[5 replies] Last: I just had a glance at C::B and I though it was just like Dev-C++. I ... (by blackcoder41)
How to handle boost::iostreams::gzip_decompressor() exceptions?
 
Hey all! I'm trying to add a exception handling code in this function I made: void DecompressLogFile ( std::string source, std::string filename ) ...
[3 replies] Last: Well you can simply catch the exception like this: void Decompre... (by Galik)
DUDES, NEED CORRECTION HERE.. PLEASE
 
can u please correct this code i made? its supposed to push,pop,makeempty,empty and print, depending on the choice of the user.. u'll get the idea.. here's the...
[1 reply] : Quite a few issues here: 1) Please enclose your code in block so t... (by spaggy)
Need advice with sorting arrays
 
Okay, so i am trying to make this program which allows a user to input numbers in a random order, and then the program must put the numbers in order! Here is w...
[1 reply] : Howdy. First of all I don't see a need to use dynamic allocation for t... (by Duncan)
why dosn't this work?
 
im trying my own experiment with my C++ program. acording to what i just learned in my C++ book for dummys.. this should work yet dosen't. the code is in the li...
[3 replies] Last: Yes there is. cout << tom<< " " << dick << " " <<harry << endl; ... (by xander333)
August 2010 Pages: 1... 232425262728
  Archived months: [jul2010] [sep2010]

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