Beginners - March 2010 (Page 6)

inherit string class
 
Hi I'm doing an excercise in my c++ book, and I imediately got in trouble. So I'm supposed to make a class BCheckString that inherits the class string from ...
[4 replies] Last: (BTW, inheriting std::string is a really bad idea) (by jsmith)
Function/while loop not working as intended
 
We recently started functions in my C++ class and for fun I tried to modify a program I had made to calculate miles per gallon using a function. Here's my progr...
[2 replies] Last: Ok that makes sense. It works now. Thanks. (by freedomispopular)
by Tzarls
error: pointer to a function used in arithmetic
 
Hi. I´m new both in the forum and in the C++ world. I have some experience in Basic, can read and modify different kinds of scripts (like HTML, Javascript, Lin...
[2 replies] Last: Great, thanks! Problem solved and lesson learnt. (by Tzarls)
Identifying Side Effect
 
What is the side effect in the following function? int ExamPrep (int param1, int& param2) { if (param2 param1) return param2; else if (pa...
[3 replies] Last: param2 is passed by reference and line 3 does not do what may look to ... (by Bazzy)
Validating input with for loop
 
I was assigned to create a program prompts a user to input the height and radius of a fuel tank. The program will then calculate the time it takes for the tank ...
[2 replies] Last: This may help. http://www.cplusplus.com/forum/beginner/18258/ (by Duthomhas)
SDL
 
im having a problem loading a background image using SDL i have zero errors but when i run the program it crashes and everything is saved in my project file a...
[2 replies] Last: ok i was able to figure it out on my own the compiler didnt catch this... (by L E G I O N)
by Leydin
Exercise Problem and loop uncertainty
 
Hello. I'm going through a C++ book on my own and am having a hard time writing a program for this exercise: An integer is divisible by 9 if the sum of its dig...
[3 replies] Last: So I figured it out. Basically I needed to use a while loop to apply t... (by Leydin)
by zingy
conversion of structure to a class
 
Hi I am doing an assignment and I am supposed to do using classes. As I get really confused with C++ I am just stuck. Could you help me in changing the followin...
[3 replies] Last: thanks a lot... (by zingy)
Starting a new project
 
Win32 > Console Application > (Empty) What do I do to start writing code?
[13 replies] Last: You should build your project separately (i.e. don't try to run it). R... (by sammy34)
by ARWA
dosent continue the loop
 
hi every one im in my prog the compiler wont complet the loop or output the massege if the condition is true i tride many different stiles and testing techneqe...
[9 replies] Last: thanks every one ill figure it out which me luck!^__^ (by ARWA)
Getline
 
Hello, I'm having some problems with getline function. I'm using it because I'm trying to save 2 words in my string. Now the problem is, it doesn't work. get...
[9 replies] Last: I know, kempofighter, I just planned to advance in improving the progr... (by Disblader)
by tidbit
counting # of digits
 
Hello, I have been trying to count the number of digits in an integer. I know I am close, but I am not quite sure what I am doing wrong. Could someone please...
[3 replies] Last: mogha: so in other words the number zero has zero digits. (we av... (by jsmith)
Why Does This Compile But Have No Output?
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main() { bool Found; string str; ifstream file ("exam...
[4 replies] Last: Thanks for the response. I guess I'm somewhat confused on this process... (by sportsguy90)
C++ made easy?
 
My friend recommended me to not learn c++ until Microsoft release their advanced and easy method? He also told me that a lot of the current c++ function will be...
[8 replies] Last: My friend recommended me to not learn c++ until Microsoft release the... (by imi)
Programming a RTD
 
Hello everyone i have an assignment to prodram a resistant temperature detector but i seem to keep getting stuck on step two and beyond.Any help would be apprec...
[no replies]
excel
 
I need help with an excel problem here it is: On an Excel workbook sheet, solve the differential equation, dy/dt = sin(y)/cos(t) + 1 ...
[1 reply] : This has nothing to do with C++, so this doesn't belong in this forum ... (by tummychow)
Very confused, I have basics
 
I have received this from my instructor. I am aware of how to create a function, but I'm not exactly sure what they are asking. I am also unsure on how to set u...
[1 reply] : Hi littlemissb, If you're not clear on the assignment it would be muc... (by JivanAmara)
Can't stop endless loop...
 
Hello, I have this problem and I can't stop it looping only 'A'...it won't print 'A' through 'Z'? #include<iostream> #include<string> using namespace...
[7 replies] Last: No, it's a while loop! You need to go read the tutorial on control str... (by tummychow)
system("ipconfig>output.txt")
 
ok so im trying to make a program to read the output from a command using system() and i chose ipconfig as the command. to make it output to a file i used simpl...
[2 replies] Last: i use output.txt afterwards with ifstream. there is no error code, whe... (by PeteyPii)
Substring function
 
I'm really confused on this part of an assignment for my C++ class. Can anyone help? Here it is: Write a program that finds a substring inside a string. Main ...
[3 replies] Last: I believe there's a function to do that. (At least, if you use std::st... (by tummychow)
March 2010 Pages: 1... 45678... 34
  Archived months: [feb2010] [apr2010]

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