Beginners - June 2012 (Page 16)

Controlling a group of objects using STL
 
Hello everybody, I'm new here. I recently learned to use lists as I needed to control a bunch of objects by iterating through them. I came to the solution m...
[3 replies] Last: Thanks for the quick reply @Athar and @Cubbi I'll see if I manage to ... (by shadowSpectrum)
by Zara
QuickSort implementation
 
Hi guys please would you help me figure out why this code is crashig it says "Unhandled exception at 0x012e1569 in QuickS.exe: 0xC00000FD: Stack overflow." ...
[6 replies] Last: Ooh I see why it's there now. Seems like there would be a better way t... (by ResidentBiscuit)
#include <vector>
 
Dear all, I am reading the textbooks by Walter Savitch on the chapters of Standard Template Library. In most of the cases Savitch will write something like u...
[5 replies] Last: Thank you guys I think I start to get the gist of it... (by boscomanilow128)
expected identifer before 'unem'
 
Hello, i get an error when trying to compile C++ source file where some headers are included. The error as written is expected identifier before 'enum' . The ...
[8 replies] Last: I didn't use the right compiler - had to change from GNU GCC Compiler ... (by difenbahij)
input in string do not take spaces at input time
 
#include<iostream> #include<string> #include <stdlib.h> using namespace std; //.......................Protypes........................... void vi...
[1 reply] : Use std::getline instead of std::cin when reading strings that can... (by Catfish2)
can any one solve this question its C++ plz
 
Implement a Stack class to store the integers (maximum 50) with its usual push and pop functionality. Provide the following constructors: default and parameteri...
[3 replies] Last: #include <cstddef> class Stack { private: std::size_t size; ... (by Catfish2)
by harel
DoubleEndList iterator
 
Hi, in the header file: DoubleEndList.h line 44;46;48 : When I move the mouse on "p" then apeared: <unknown> List<T>::p And when I pass the mouse on "next...
[no replies]
by skarla
rand().
 
#include<iostream> #include<time.h> #include<cstdlib> #include<string> using namespace std; int main() { string name; int SumOfCards; in...
[3 replies] Last: #include<iostream> #include<time.h> #include<cstdlib> #include<string... (by skarla)
by nAd
calculating the bill of a customer according to the amount spent on shopping (1,2)
 
kindly i want an idea coding of this program within 2 days.... write a program for calculating the bill of a customer according to the amount spent on shoppi...
[32 replies] Last: dear NwN, i have uploaded another problem description. please guide me... (by nAd)
by nAd
calculating location somewhere on the map
 
Problem Statement: Location Calculation You are required to write a program for calculating location somewhere on the map. There are two parameters ...
[no replies]
by sanu
STORING IN NEW ARRAY
 
Lets Say I have the line of "7/10/2008 04:54 PM: 4.2334;3.6547" which contains date and time until the first ';', and two double values separated by ';' and a...
[1 reply] : char first_array ; char i =0; for(i=0; first_array != ';' i++) { }... (by jorz)
by mk620t
Help with simple assignmnet
 
I'm trying to complete this assignment from my c++ class. I can't figure out how to set up the columns or where to start really. Your help is greatly apprecia...
[12 replies] Last: Hi, You may find something useful in my code, have a look. Mike ... (by toomanystars)
typecasting
 
Hello everybody, I have an array that I calculated the sum of 10 integer elements in an array, and now I am finding the average, but it has to be of float ty...
[2 replies] Last: An alternative method is to divide by 10.0 which makes your division b... (by Volatile Pulse)
by uhh
Cleaning up my output
 
I know how to get the numbers to move but nothing else. I am try to do it with setw but I cannot figure out how to do it. My code for the output: cout...
[1 reply] : cout << border << endl; cout << "\t\t\tQuadratic Formula" << endl; co... (by Volatile Pulse)
Plethora of build errrors
 
So, I was in the process of making a test for some target acquiring, and I got hit with a fair amount of build errors. Header #ifndef ENEMYLIST_H #define...
[8 replies] Last: I was trying to be fancy. I now realize that it just complicated thing... (by ResidentBiscuit)
by ibnu
read data from text file
 
i use matlab to get the data.....after that i write the data in text file.......now i want read the data one by one and process the data using c++? the text fi...
[9 replies] Last: I want to take data from "test.text" one by one and put the data in th... (by ibnu)
by sanu
read character..
 
Hi everybody!! Is there any ways to read the lines and store their characters separately Lets Say I have the line of "7/10/2008 04:54 PM: 4.2334;3.6547" w...
[4 replies] Last: thanks chipp..... (by sanu)
by skwh
Arrays and Classes
 
So i'm fooling around with classes, fstream, and arrays. I'm (strangely) used to Javascript, where an Array is a pre-determined datatype, and all you would have...
[7 replies] Last: nevermind, the errors were unrelated. I've fixed it, thanks for everyo... (by skwh)
Help reversing the order of the output
 
I need help reversing the order of the output from the this code. The code gets a list from a .txt file of food brands then out puts how many instances the bran...
[1 reply] : use rbegin() and rend() (reverse iterators) ? (by georgewashere)
Should I or not?
 
Should I start making a game after learning C++ as a beginner video game programmer? or Learn both of them during the same time? I did started out small by crea...
[8 replies] Last: ok I'll note those 4 as the top 4 important things I'll focus on. (by DetectiveRawr)
June 2012 Pages: 1... 1415161718... 51
  Archived months: [may2012] [jul2012]

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