Beginners - March 2011 (Page 51)

Why doesn't the output my string?
 
#include <iostream.h> using namespace std; double order; string choice1; double options(string option1, string option2, string option3) { cout << "1...
[8 replies] Last: [quote=hanst99]Order is a double, that's why. Actually, as Bazzy sai... (by filipe)
Universal Calculator (1,2)
 
I made a universal calculator that does just about anything from basic math to trigonometry. Any suggestions or constructive criticism would be nice. http:/...
[27 replies] Last: I like how your code got so much shorter. A few more things to polish... (by hamsterman)
Entry length of computer input (cin)?
 
Here I have an incomplete program. The instructor tells us (in her comments) that the number entered should be a 4-digit number (which I assume also includes an...
[3 replies] Last: Thank you very much Bazzy. I've decided though that maybe the addit... (by DivinFalcon)
by heidiK
Office task
 
Hello everyone. Could anyone please do a task for me? I have been struggling with it but no success. Please help me. This task has been assigned to me in off...
[3 replies] Last: What format are the specs in? If they're just text, and not too long, ... (by Moschops)
ambiguous operator=
 
I have an assignment that is basically "implement your own c-string class". The overloaded assignment operator is declared as: ourString & ourString::operato...
[3 replies] Last: Post all of your constructors, all of your assignment operators, and t... (by jsmith)
Problems installing SFML
 
Hi I am trying to install SFLM-1.6 onto Visual C++ 2010. However when I go to the Tools / Options menu, then to Projects and Solutions / VC++ Directories I kee...
[no replies]
how could I bind random iterator to functor by std::tr1::bind?
 
I saw some functor would define "typedef void result_type" what is this for? Besides, how could I bind random iterator to functor by std::tr1::bind? ...
[5 replies] Last: Thanks, I would give it a try (by stereoMatching)
Character Counting
 
So I have to finish a program as a project for my C++ class. I have to input a sentence and have the program count the number of words in the sentence and then ...
[1 reply] : A map<char,int> would help you in this task: http://www.cplusplus.com/... (by Bazzy)
by tonnot
Ambiguos overload for operator << ?
 
I have : stringstream<<"hello"; long pos= stringstream.tellp(); W_debug()<<pos; It works, but: W_debug()<<stringstream.tellp(); gives me t...
[3 replies] Last: tellp returns std::streampos: http://www.cplusplus.com/reference/iostr... (by Bazzy)
by GulHK
C# to C++
 
Hello All could anyone please covert the following C# code to C++. Thanks public static byte ReadFixedValue(int offsset, int length, Stream stream) ...
[no replies]
Don't Understand Why This Gets an Error
 
I have been working on this code for the past few days and I am to the point where I am ready to give up. I don't understand why this is not working. The build ...
[1 reply] : random_seat = rand() % (100 - i); , when i is 100 you get an intege... (by closed account z05DSL3A)
copy from one vector to another
 
hi I am trying to read text from text file and put it in a vector v1. then I copy text from v1 to another vector v2. my text file is in this format student...
[1 reply] : v1 = v2 should do it and then remove what you don't want (by coder777)
loop wont work with user input?
 
Hello and thanks for reading. Love this website! Im just getting back into programming, learned Pascal then C, back in the 80's. So Im going thru this sites ...
[3 replies] Last: Thank you for the replies. The extra cin.get() works!! Danny- I kn... (by Adalwulff)
Nevermind
 
_____________________
[12 replies] Last: FFFUUUUUUUUU :p (by closed account 4Gb4jE8b)
by iCPP
Need someone can write these 2 function
 
Write a recursive function that does the following. Given a number, add all the digits and display the sum. write a recursive function that raises 10 to the ...
[3 replies] Last: Nobody on this forum is going to do your homework for you. If you need... (by kultrva)
Cannot access protected member
 
I have a class I'm working on that deals with inheritance but I have a problem that is giving me a headache... I am trying to inherit members of the base class ...
[4 replies] Last: Thank you. That worked beautifully. (by kultrva)
by Sauve
postfix arithmetic expressions (reverse Polish notation)
 
I'm trying to write a C++ program that evaluates the postfix arithmetic expressions (or Reverse Polish notation). I need to design a stack ADT, then choose a co...
[2 replies] Last: Yes, I would like someone to write this for me. I don't intend to stud... (by Sauve)
C++ noobie, Instantiating objects outside of main()
 
Hello, I'm new to the community and pretty new to C++. Well, I learned some C++ in high school about 6 years ago, but nothing beyond the basics. Lately I decide...
[1 reply] : If you can, please put code tags on your code, it makes it tons easier... (by kernalSeiden)
inventory program
 
ok i am trying to make an inventory program with a max amount of spells, weapons, armor, and other items of 10. i want them all to be in the inventory and i wan...
[7 replies] Last: ooooohhhh i gets it now. THANX EVERYONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!... (by cainen172)
by tonnot
How to create my own stream buffer
 
I have spent all the day but I'm unable to create a stream buffer and 'play' with it. I want to have a i-o stream based on a known size buffer. Later I want t...
[12 replies] Last: Yes, the same way you do with normal streams. #include <iostream... (by Duthomhas)
March 2011 Pages: 1... 49505152
  Archived months: [feb2011] [apr2011]

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