
please wait
by SS Android
How to Read in Float, String, Float from file?
|
Hello! I am wondering how I would go about reading in values from a txt file, a float, then a string, then another float for each line. Delimited by commas.... |
Dec 5, 2013 at 8:28am
[1 reply] : use a stringstream. http://www.cplusplus.com/reference/sstream/strings... (by mutexe)
|
by kmartar
Student Programmer needs
|
I am working on a program that displays a table showing the fahrenheit temp and and the Calsius temp with a function called celsius. This is what I have and I a... |
Dec 5, 2013 at 8:19am
[16 replies] Last: That was it thank you. (by kmartar)
|
by enemy
why are these 2 functions generating the same array=
|
Hello! Please, how to achieve that each function generates ANOTHER 2dd array? Many thanks! #include<iostream> #include<stdlib.h> using namespace std... |
Dec 5, 2013 at 7:49am
[2 replies] Last: Works!!! MANY THANKS!!! (by enemy)
|
by Chubby
how to calculate only decimal
|
For example, If I enter like 2.75, I only want to get the .75 * 60. So I would have 2.45. I do this because I have homework that like this number. |
Dec 5, 2013 at 7:47am
[4 replies] Last: You do realize that this is a C++/C forum, and not an Objective-C foru... (by yulingo)
|
by Joshcannon
Array to Vector
|
How would I go about changing this program of arrays into one with vectors? /* -------------------------------------------------------- This progra... |
Dec 5, 2013 at 6:39am
[1 reply] : since you are using strings, it is appropiate to use std::string rat... (by nvrmnd)
|
by juvelover
Using typedef
|
Hi all. just want to know for what and why we use "typedef" ? i just doing some homework and I found it in example below we have one struct named " Student" ... |
Dec 5, 2013 at 6:18am
[1 reply] : typedef is used to define an alias for an already existing type , i... (by nvrmnd)
|
by chocolatepig
Sorting an array of strings from a txt file. (1,2)
|
Hey for my code I need it to sort an array of strings in alphabetical order. The strings are stored in a text file and can be loaded to be written in. I cannot ... |
Dec 5, 2013 at 5:51am
[20 replies] Last: Hi there thanks for the reply. I am not too sure what you changed but ... (by chocolatepig)
|
by Hydropulse17
Ask user for seed?
|
This code uses the date and time as a seed. I'd like to know how to ask the user for a random seed. I thought it'd be as simple as replacing (time(0)) with and ... |
Dec 5, 2013 at 5:07am
[2 replies] Last: Ahh! That works, thanks a bundle. (by Hydropulse17)
|
by heebleworp
Memory management question
|
The code I'm asking about is from a user-defined class called String. I want to be sure I'm not creating a memory leak. String& String::operator+(const St... |
Dec 5, 2013 at 4:20am
[2 replies] Last: first of all, operator+ is supposed to return a value, not a referenc... (by heebleworp)
|
by nfordhk
C++ GUI with Two Forms
|
Hi, I am writing my C++ GUI program in Visual Studio 2013. I had a program running with one form that performed all the functions. I went ahead and added ano... |
Dec 5, 2013 at 3:35am
[no replies]
|
by sunni
Help on the final parts of my calculator
|
Hello all! You probably remember me from the last week or so. I have another question for those of whom might be interested. I've finished my calculator f... |
Dec 5, 2013 at 3:04am
[9 replies] Last: Ah, well this is my final. LOL. I thank you all for helping me. I'm g... (by sunni)
|
by ericjets
Presenting your Program
|
Hey Guys , Its the end of my CIS 5 class ! For the final project we have to make tic tac toe and another game/app of our choice . ALSO , we have to make a prese... |
Dec 5, 2013 at 3:02am
[2 replies] Last: Thank you ! this really helped !! (by ericjets)
|
by KvltKitty
overloaded operator question
|
Okay so I have a pretty simple question. I'm just trying to figure out what exactly this one variable is in an example we were given to help us understand over... |
Dec 5, 2013 at 2:52am
[no replies]
|
Calculator Menu |
I made a calculator with the following code: #include <cstdlib> #include <iostream> using namespace std; int addition(int num1, int num2) { ... |
Dec 5, 2013 at 2:02am
[no replies]
|
by aminiz01
starting C++ typing
|
Write your question here. Dear Mr/Mrs How are you there? How do used typing visual studio 2010 ? I started typing "Hello World" and the next step... |
Dec 5, 2013 at 1:53am
[no replies]
|
by SimonXM
Check Writer C++ Issue!
|
// Chapter 12-- Assignment 14: Check Writer // This program can convert a dollar and cents amount given in // numerical form to a word description of the ... |
Dec 5, 2013 at 1:27am
[10 replies] Last: i'm doing the same program, the part i don't get is how to put the dec... (by sr41790)
|
by blackice
Loop issue?
|
So I have this assignment that requires me to do the following things: 1. Take a roman numeral input as a cstring. 2. Convert the roman numeral to all upperc... |
Dec 5, 2013 at 1:25am
[no replies]
|
by iQChange
Caotic errors
|
For example, I've this code: #include <iostream> class TipoMoeda { public: public: struct real { double valor; ... |
Dec 5, 2013 at 1:20am
[2 replies] Last: Thanks, and I'll use while loop. Where do I use this cin.ignore? Thank... (by iQChange)
|
by KvltKitty
Multiple files (two .cpp one .h)
|
Hello all, So I am having some major problems with using multiple files. I am using Visual C++ 2010 Express and cannot figure out for the life of me how to ... |
Dec 5, 2013 at 1:19am
[3 replies] Last: Right click a project filter and go to 'Add->New Item' to add a new fi... (by closed account N36fSL3A)
|
by iQChange
Where's the error in this simple code?
|
Hello. I've this simple code, but I don't know how fix these errors. #include <iostream> class TipoMoeda { public: struct real { ... |
Dec 5, 2013 at 1:18am
[1 reply] : Sorry, solved. #include <iostream> class TipoMoeda { public: ... (by iQChange)
|