Beginners - October 2013 (Page 15)

Fastest way to split a string
 
Hey, what is the fastest way to split a string with a delimiter into a vector/array with C/C++ and STL? The only limitation is that I don't want to use boost...
[7 replies] Last: Hi there, [quote=Registred]What a pitty that there is no STL rope. ... (by closed account o3hC5Di1)
using vector objects for calculational formulas
 
I am working on a homework problem that I cant figure out. I have been working on it for 4 days now. The question is worded: Write a program that reads the...
[10 replies] Last: It's a shame that your teacher didn't help you in a way that you actua... (by closed account o3hC5Di1)
Help with game
 
I need help with my while statement my stage1 function. When I enter 1 or 2 it still goes through the while loop. ...
[1 reply] : It should be and(&&) not or (||). (by giblit)
GOTO
 
I know that using the GOTO statement has been made to be a coding 'taboo,' but why? And what is so bad about using it multiple times? I mean, it seems helpful. ...
[10 replies] Last: A few more data points, using MSVC++ with /Ox Enter a value to compu... (by cire)
Try to exit program
 
I would like to exit program with characters too instead of numbers other than '1', How? int choice; cin>>choice; if(choice==1) { cout<<"number is one"<<endl; ...
[1 reply] : Make choice a char. char choice; cin>>choice; if(choice=='1') { ... (by abhishekm71)
Where to start?! (Beginner)
 
Hi all! Over the years (off and on) I've tried to learn C++ but haven't got very far. I've read a few books but always seem to hit a wall, as if Ive missed...
[5 replies] Last: Hey! You can't drop this one after you start until you have finished d... (by arkad)
Help! Simple computational program??
 
Hey all-- So I am trying to write a very basic program in Arduino(which pretty much uses C++), but I am brand new to programming and have no idea what I'm do...
[3 replies] Last: I like your solution. It's much simpler than mine. Some misplaced brac... (by closed account D80DSL3A)
Alphabetizing names using specific directives
 
C++ (using dev C++) I am not allowed to use the directives other than #include <iostream> <cmath> <iomanip> and <string> My class is having trouble with an assi...
[1 reply] : I think http://en.wikipedia.org/wiki/Bubble_sort would be of great ass... (by Ispil)
by lgbrf
Finding the Value of a Char
 
Could someone explain the correct method for seeing if a char is equal to a certain letter/number, this method comes up with an error. I think the relevant line...
[4 replies] Last: 'A' 'B' 'C' are literals of type char. "A" "B" "C" are literal stri... (by lgbrf)
General Comprehension Question Here
 
I just picked up C++ Primer Plus so please don't slaughter me over my complete lack of general understanding of how systems work. My goal this year was to write...
[3 replies] Last: Perhaps it would be better if you explain what kind of program you are... (by rodiongork)
instream,outstream trouble, don't know how to multiply different wages by different amounts.
 
My code is outputting some long negative number (error number I guess) and I don't know why. I looked at my code and the examples in my book and I can't find wh...
[2 replies] Last: thanks completely missed that. (by jackelinblack)
Need Help with HW
 
I got this homework in my computer science class I can't seem to get it can someone give me an idea how this will look please! "Write a C++ program to display...
[3 replies] Last: { int A = 10; int B = 20; long double degree; double c=0; cout <... (by TJBELTRan)
by thepox
Average Function in Array
 
4. Write a third function that will determine the average value in the array. You will create this function from scratch, including the function definition and...
[5 replies] Last: I gave more or less an identical answer in a previous thread: http://w... (by Chervil)
Asking user to select a file and outputting the results
 
Need help on one tiny problem. I have asked the user regarding which file they want. If they press a, b, or c. How do contruct a code in such a way that it open...
[11 replies] Last: can you show your updated code ? (by nvrmnd)
windows.h alternative in xcode
 
Hello everybody. I am working on project in X Code. I am supposed to fix the already written code and make it work. They included windows.h library, and I ...
[4 replies] Last: I may be wrong but mac and linux are bot *NIX systems right? So what N... (by wh33lybrdy)
How to do "Ticking Bomb" program?
 
I am creating a text based game, so I want to do one tiny system. How it would work: When you get Jailed you must wait X seconds. So the screen would show yo...
[1 reply] : Hi there, It depends on which platform you are using, but look into t... (by closed account o3hC5Di1)
by thepox
taking avg of array
 
Write your question here. #include <iostream> #include <cmath> using namespace std; int FillFunction(double ); void PrintArray(const double , int...
[2 replies] Last: Function findAverage() , there's no need to pass returnvalue as an ... (by Chervil)
Writing & Running a c++ program with Microsoft Visual studio 2010
 
don't understand how to use Microsoft Visual studio 2010 to write a program (c++ program)
[4 replies] Last: No problem (by feminadio)
converter help
 
please i need to know if this code will work well for conversion of Celsius to Fahrenheit>...................please i need immediate help please note this code ...
[5 replies] Last: The function does a specific task, it converts Celsius to Fahrenheit. ... (by Chervil)
need some help
 
I am not a c++ programmer, normally i write in vb. But I have a need to imbed some c++ code in a SISS package. I does a simple process, It finds an @ in eac...
[1 reply] : Hi there, I don't know VB, but I'll have a go at literally translatin... (by closed account o3hC5Di1)
October 2013 Pages: 1... 1314151617... 86
  Archived months: [sep2013] [nov2013]

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