Beginners - August 2009 (Page 13)

by Shane
how can i make a calc that can solve a problem with infinite digits?
 
I started learning c++ and made a calculator thats very simple but as you can see in the code below, you can only solve problems with 2 numbers and I wanted to ...
[4 replies] Last: Er, S leep () [notice the capital 'S'] is a <windows.h> function. ... (by Duthomhas)
Please check my program. Due in 3 hrs
 
Please help me check if I've done everything correctly. Any help will be greatly appreciated. #include<iostream> #include<string> #include<iomanip> #in...
[5 replies] Last: Any suggestions on what I should do to correct these mistakes? (by kobbryant)
Nested For Each Loop and Nest For loop with std::list
 
I am starting to use the standard template library. I can write the nested for loop working on an array as shown below. a) When using a list<double> struc...
[3 replies] Last: Hi Bazzy, Just went through your post in detail. The nested for on ... (by LasCondes)
very basic c++ syntax question
 
I am working my way through the tutorials on this site and have a question pertaining to this example: #include <iostream> using namespace std; int main ()...
[1 reply] : You seem to have added a comma in there. That just prints a string ... (by Chewbob)
toupper the vowels to lower consonant hlp!
 
#include <iostream.h> #include <ctype.h> int main() { char *p; int i; char str ; cout<<"input a tring: "; cin.get(str,80); p = str...
[2 replies] Last: You can reduce the switch: switch(str ) { case 'a': ... (by Bazzy)
by Shane
How do i make a calculator that lets you run the program again when finished?
 
How can i make it so when it is finished being used, it gives you the option to be used again? codes: #include <cstdlib> #include <iostream> #include <w...
[6 replies] Last: sure thing, after all this is C++ forum :) There are many people here ... (by johnkravetzki)
questions about void and its parameters
 
hi. i'm a total newbie in C++. so far, till now i'm confused about the function of void and its parameter. can somebody teach me how does it actually function??
[10 replies] Last: oo i see~~~~~ now i got it~~~~~~ thanks ya~~~~~jsmith~~~~~ (by loveless)
Temperature function
 
I am posting an update to a previous post. I have gotten this far but I cannot for the life of me get the right code in to allow me to prompt the user for the s...
[2 replies] Last: I prefer to do it this way, I just need help or advice on what I shoul... (by shankman2k9)
Question about pointer casting (Conceptual)
 
I have been reading a bit about pointers casting on google but I find a lot of articles about the syntax and how to safely cast classes and objects. But I can't...
[1 reply] : However, since I am not getting "right" answers from my parse code in... (by Disch)
by DCC1
Set Active Window using Console
 
Hello, I have a simple console application that I wish to set as the active window if a certain condition is not met. I have seen complex examples of how to...
[3 replies] Last: Just found something that might be useful (certainly is to me) on the ... (by DCC1)
by Mslam
Returning a multidimensional array from a function
 
Hello, how are you? I am a beginner c++ programmer and I am having trouble returning a multidimensional array from a function. I know I have to use a pointer...
[2 replies] Last: This article should help you understand. It contains an explicit exam... (by kempofighter)
print first 50 spaces of each line of the file
 
Hello, I'm trying to complete a problem that asks to print out the first 50 spaces of each line. I can print out the whole file, but I don't know how to print ...
[5 replies] Last: int main () { string inputBuffer; ifstream fin; fi... (by kempofighter)
nested if problems
 
i'm nw with this subject so can anyone please help me to write a program that accepts three numbers as input, then sorts the three numbers and displays them in ...
[7 replies] Last: thank you Bazzy :) (by aihcezs144)
using string in <iostream> and <string>
 
A rather simple question, but is... #include <iostream> int main () { std::string a("Hello world!"); std::cout << a << std::endl; return ...
[2 replies] Last: Ahh, so it's compiler specific? I just assumed iostream was the same f... (by closed account Ly59GNh0)
by Kanner
bitwise shifting
 
The bitwise commands of x>>= ?? x<<= ?? The number which follows (??) is how many positions to shift? Thank you for any comments on this matter.
[2 replies] Last: Thank You (by Kanner)
a program to match string in a given document
 
#include <FSTREAM.H> #include <IOSTREAM.H> #include <STRING.H> #include <STRING.H> #include <STDLIB.H> //for exit int main(int argc,char *argv ) { ...
[1 reply] : Have up tried to debug it yourself? If you don't have a debugger, you... (by kbw)
by Duncan
char pointers
 
Hey all. I know about arrays and pointers, but I've never understood what's really going on here (or why it works...): #include <iostream> using namespac...
[9 replies] Last: ok, after much thinking I believe I've finally made the conceptual lea... (by Duncan)
array (1,2)
 
I am having a problem with an assignment, I have got a file and then once saved I need to work out the Sum of the data, the biggest number, smallest and average...
[25 replies] Last: Thanks for all your help :) It's working now. :) (by Ledzepp4eva)
by arash
Why int* pt=0 compiles ?
 
I wonder why assinging a pointer to zero like : int* pt=0; printf("%p",pt); works and does not generate errors. We are assinging memory address 0x00...
[2 replies] Last: Zero is a special value for pointers, it doesn't represent a real memo... (by Bazzy)
by MPerry
Returning derived via base pointer
 
Hello all. Ive been having a problem. I have a base class A and two derived classes B and C. I have a pointer to B, which I'll call E, that I want to store eith...
[3 replies] Last: It seems you've found a solution, but I might suggest a rethinking of ... (by Duncan)
August 2009 Pages: 1... 1112131415... 17
  Archived months: [jul2009] [sep2009]

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