Beginners - May 2011 (Page 35)

by ammama
Findfirstfile
 
Hello. I'm trying to understand the working of findfirstfile and findnextfile. But, I'm unable to link to a proper site that explains right from scratch. Can ...
[1 reply] : If you want a reference, see msdn. If you want an example, here's one... (by hamsterman)
by mwmnj
Matrix operator overloading program question
 
How would I copy an array that is made in a constructor into external arrays outside of the class and then use those copies for operator overloading? I am tr...
[1 reply] : Use proper indentation. if (0 > rangeIn && rangeIn > 20) This wil... (by hamsterman)
Trouble with if/else using strings
 
Hi, first post here. I'm a relative noobie when it comes to c++ but I've been learning for a few months now and decided to make a game. So, the problem I'm havi...
[1 reply] : bm == "Left" || "left" should be bm == "Left" || bm == "left" (sam... (by hamsterman)
how would i randomize a string
 
int junbleString (string str) { int length = str.length(); for(int i = 0; i < length; i++) { str = str[rand() % (sizeof (str) - 1)]; } }...
[2 replies] Last: this question seems to come up on a daily basis - maybe someone should... (by kfmfe04)
what am i doing wrong
 
void jumbleString (string str) { int length = str.length(); int j, k; for(int i = 0; i < length; i++) { i = rand() % length; j = rand(...
[2 replies] Last: i wanted to create a function where i would enter a string and it woul... (by pkee123)
static objects
 
Why do we need static objects. I have never used but was wondering if there is any scenarios where we need them?thanks.
[6 replies] Last: Thanks! I kind of assumed that because namespaces weren't part of C bu... (by ModShop)
Help with this problem regarding loopings
 
Make a program that willl generate n number of items of this sequence given the value of n from keyboard input. The program prints the items of the sequence and...
[1 reply] : what code have you written so far? this seems pretty straightforward,... (by ascii)
brief const question
 
Hey, could someone give me a brief explanation of what exactly const protects here? class Bacon { public: Bacon(int a) : amount(a) {} int tellAmount() c...
[3 replies] Last: By specifying a member function as const, you are essentially promisin... (by Branflakes91093)
Text Based Calculator Help
 
Hello, Ive been working on this basic text based calculator as a exercise and ive run into a couple errors and cannot figure out what is wrong. Heres the source...
[3 replies] Last: i made one like this a few weeks back if you need some help, or want m... (by ascii)
Help with simple BMI calc
 
Hello, I am very new to c++ i started a couple days ago, today I tried to make a BMI calculator and cannot get the formula to work. The Calculator is text base....
[5 replies] Last: theres no need for the variable to be short. once again, i reccommend... (by ascii)
hello there im new here, and im planning to create an exe compiler, can you tell me how to...
 
hello there im new here, and im planning to create an exe compiler, can you tell me how to... this is my first topic... is there any tutorial/example on maki...
[11 replies] Last: Does that have the tutorial on making an exe compiler in it? The... (by king214)
What did I do wrong?
 
my compiler is bloodshed c++. I keep getting this error on my program. I want to know how can I fix it. Thanks [Linker error] undefined reference to `get...
[3 replies] Last: Which mistake did you make? Have you actually written code for the fun... (by Moschops)
by firix
text processing.
 
Hi, I want to write an''ideal''class for general text processing. What it has facilities should it? How do I write this ?
[10 replies] Last: stereoMatching: If you insist to do it by C++, you could consider ... (by firix)
by kjata
Problem with inputing data into arrays and displaying
 
Hello, I'm new to learning C++ and was doing well until we hit Arrays. My homework is to retrieve data from a file and then add and display part of the data fr...
[no replies]
need guidance on how to finish program
 
Instructions: --For each day, tell which balloon (identify it by time released) traveled the greatest distance on that day (7 values printed). Identify the day...
[no replies]
need help with switch
 
What im trying to make is a Compound/Simple Interest Calculator and i want the user to be able to chose which one they want (a compound calc or a simple calc). ...
[3 replies] Last: cplusplus.com helps those who help themselves, to steal a quote from s... (by closed account 3hM2Nwbp)
Need to read paycode from txt file then display salary
 
I am trying to write C++ code to get the salary amount associated with the payCode. The #include 's that I am using are <iostream>, <string>, and <fstream>. I...
[no replies]
Behind the scenes of passing pointers as parameters
 
I've recently used this kind of notation to state that the function takes a pointer as a parameter. void write(string* &word) but I don't quite understand...
[4 replies] Last: T& is is just T*const with nicer syntax. (by hamsterman)
Header file library
 
Can anyone please give me a site where I can download a set of common C++ header files. I tried using google but couldn't really find anything. I apologize in a...
[1 reply] : http://www.boost.org/ (by closed account 3hM2Nwbp)
No matching function for template function
 
I am trying to make a template function to calculate the median of a vector, but this: template <class RandIt, class T> T median(RandIt beg, RandIt end) {...
[no replies]
May 2011 Pages: 1... 3334353637... 48
  Archived months: [apr2011] [jun2011]

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