Beginners - February 2013 (Page 31)

by LeroyW
Output in alphabetical order
 
Hello, I am trying to print out these names from a data file in alphabetical order with the scores attached to the names. Can someone be of some assistance and ...
[2 replies] Last: Yes, I have to read the data from two files. I will try your method. T... (by LeroyW)
by s1l3nt
Array Problem with Loops
 
I am working with arrays and so to help myself understand I think of a program I want to design using what I just learned, so here is what I want to do. I creat...
[4 replies] Last: you re welcome. any time :) (by mirec)
Fibonacci exercise.
 
Hello people. I'm looking for some advice on how to improve and tinker with a little exercise I did. //Develop a Fibonacci series and find the sum of all ev...
[4 replies] Last: Oh man that's a lot of stuff. Gonna keep me busy for a long while tryi... (by Olysold)
What is the definition of a function that takes as input the 3 numbers?
 
The function returns true if the 1st number to the power of the 2nd number equals the 3rd number; otherwise it returns false. (Assume that the 3 numbers are of ...
[1 reply] : Write out the logic in psuedocode so you can get it right in your head... (by sysopfb)
vectors
 
Just start learning vectors. can some one explain these to me in detail and if it is possible to code any real world example vector<double>::size_type i = 0 ...
[5 replies] Last: std::vector<> , std::list<> etc. are sequence containers. A sequen... (by JLBorges)
by flawed
Help with string array
 
I am trying to make my program detect a user inputed string from a list of strings stored in an array. Then respond to it in a certain way using an if statement...
[2 replies] Last: Thank you! That was simple.. -__-" (by flawed)
printing strings from a variable
 
#include <iostream> #include <string> #include <fstream> using namespace std; struct Database { string phone; string name; ...
[8 replies] Last: Thanks AbstractionAnon! (by InfinityCounter)
Singly Linked List error
 
Hi Guyz.. Im a beginner in C++ and I am having a bit of trouble with this code which is a HW... The purpose of this program is to read words from a file, store...
[2 replies] Last: Thank you alot... I've just edited it.. the r was really pointing to N... (by ShiekhAlTribe)
8 errors in a Simple Class program, Please Locate errors. and elaborate, thanks
 
//Write a program to input date and print on the screen by using Class #include <iostream.h> #include <conio.h> #include <stdlib.h> class edate() { ...
[3 replies] Last: Thanks.... Dear (by toseefasim)
Help with problem in C + +
 
Texts correctly and the problem in this message http://www12.0zz0.com/2013/02/17/17/504249919.png
[no replies]
by Pebble
->
 
I've got a line of code but not sure how part of it actually work's. for (auto i = text.begin(); i != text.end() && !i->empty(); ++i) How does the !i->emp...
[2 replies] Last: Thank's computerquip. (by Pebble)
Real Numbers
 
How do we do an algorithm to solve a group of real numbers in an equation?
[1 reply] : Same steps you would do solving the equation on paper. (by AbstractionAnon)
creating a display function
 
Hey there, I am working on this for an assignment and cannot figure out how to even get started to write the function for the following program. The code gi...
[3 replies] Last: Thanks for editing you post to add code tags. You haven't posted t... (by AbstractionAnon)
How to Write Short Clean Code?
 
I've run into a big problem. I was told to write a function, strrep(), which replaces a substring with another string. I made quite a few slower versions of th...
[7 replies] Last: In the code in this latest post, line 23 runs the potential of being o... (by Lowest0ne)
by T4l0n
resolve this please (beginner)
 
hello, i'm a beginner and i ve started learning c++, i wanted help with this (i can't get return calc into the main function) #include <iostream> #include ...
[4 replies] Last: @shivaji - And what do you suggest the OP place in his "calc.h" file? ... (by AbstractionAnon)
Reversing order of sentences (College Assignment)
 
We were instructed to use a pointer array to get input for short sentences and then reverse the order of those sentences. My program works really well for the f...
[2 replies] Last: There are quite a few problems with your code, but only 2 main ones. I... (by unoriginal)
Is there a way to detect garbage value?
 
Suppose I'm running a loop and the loop should continue unless I get a garbage value. So what will be the terminal condition. How can garbage value be checked ...
[13 replies] Last: Indeed, I've been asking " What is the garbage?" but maybe the better... (by Chervil)
Expected primary-expression error
 
I want my program to tell me the number of TIMES defined in class Dice: class Dice { public: static const int TIMES = 10; int roll...
[2 replies] Last: Thank you! I know about functions, classes etc. just forgot how it al... (by Hashimatsu)
do while
 
Can someone help me please? her is my problem i have to put a message FULL. I dont't know hoe to do this. I think i want to do while this can someone translate ...
[1 reply] : Please use code tags to post. It's very hard to read nestings the way ... (by unoriginal)
goto statment
 
many time it is more easy to do iteration or looping with goto statment. but research on internet always adviced me to donot use goto statment. can anyone tell ...
[11 replies] Last: Just 1 more thing ..... Speaking of implied goto's, someone quite a ... (by TheIdeasMan)
February 2013 Pages: 1... 2930313233... 67
  Archived months: [jan2013] [mar2013]

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