
please wait
by gikiian
This program stops unexpectedly after reaching 'Person 57'. What is the reason?
|
#include<iostream> using namespace std; void main() { int array ; int i=0,j,c=0; for(i=0,j=1;i<100;i++,j++) { cout<<"No. of pancakes person "... |
Feb 5, 2011 at 4:53pm
[5 replies] Last: Once you start writing past the end of an array, your code enters the ... (by PanGalactic)
|
by chipp
pass by reference
|
i.e i have this: class test { int age; string name; public: test () { } test (int i, string n) : age (i), name (n) {} int age_caller () {... |
Feb 5, 2011 at 4:52pm
[7 replies] Last: If you want to pass more than one object, you should use vectors. ... (by Athar)
|
by pooshi
Character replacment in a string
|
I have a question about removing a character from a string and replacing it with something else. I am replacing all lower case singular a's with the string "one... |
Feb 5, 2011 at 4:50pm
[5 replies] Last: thanks for the help everyone. I got it. I'm sure its been a while s... (by pooshi)
|
using **Base to hold an array of Derived |
Hi, my first post here! Trying to learn C++ by myself, as a hobby. My question is: I know that converting a pointer **Derived to **Base does not work -- was ... |
Feb 5, 2011 at 4:40pm
[3 replies] Last: Thanks for the reply. A vector<Foo*> will do the job, was just cur... (by roger 2 71828183)
|
by Blessman11
inheritance private
|
is it possible to inherit private elements of the base class. I mean inheriting the private elements, (not private inheritance, were base class elements bec... |
Feb 5, 2011 at 4:12pm
[5 replies] Last: Best way is to inherit private then using the "using" declarative to s... (by CppSpartan)
|
by Squipix
How do I make a char be read as its ASCII value?
|
So, I'm trying to make a work-around on a particular problem I'm having, but in order to do so I will need to have the program be able to read user-inputted cha... |
Feb 5, 2011 at 3:43pm
[2 replies] Last: The user is to enter a series of character variables, such as "2+3", w... (by Squipix)
|
by mainframe639
Simplifying bubble Sort
|
I entered the values: 1 2 3 4 5 After that. the step-by-step output of the program shows: 2 1 3 4 5 3 1 2 4 5 4 1 2 3 5 5 1 2 3 4 1 5 2 3 4 1 2 5 3 4 1... |
Feb 5, 2011 at 2:54pm
[10 replies] Last: Tbh, if you write your program well then cin shouldn't be an error st... (by mainframe639)
|
by Moptop
Conversion to non-scalar type
|
I've been browsing around google for a good amount of time and can't grasp what is going on. I'm a noob in my 1st semester of c++ and this is an assignment for ... |
Feb 5, 2011 at 2:40pm
[3 replies] Last: http://en.wikipedia.org/wiki/Scalar_%28computing%29 There are many ... (by PanGalactic)
|
by yorktown22
Placing data from a file into a char array
|
Greetings and salutations, I have a file with multiple strings of characters. (i.e. "jamentunpi0") I want to store the letters in a char array and then sort th... |
Feb 5, 2011 at 2:21pm
[no replies]
|
by alecha
General problems
|
Hello everyone. I'm starting to program in C + + (i've studied c and c#) and I have several problems: - in a Windows Forms application, I need to let every m... |
Feb 5, 2011 at 1:01pm
[1 reply] : - in a Windows Forms application, I need to let every methods know a ... (by coder777)
|
by broot
binary search tree question
|
If i had a key-value pair, or STL map, how could I store these together in a binary search tree? For example, if I have name="doug" and phone number=xxxxxxxx... |
Feb 5, 2011 at 10:48am
[2 replies] Last: Here you are #include <iostream> #include <map> using names... (by rishabhagl)
|
Trying to get data from file into specific structure members |
So I need to get the data from the text file into each member of the struct. The text file format is: 3 200703270345 C74.54 200703270345 C74.54 20070327034... |
Feb 5, 2011 at 10:02am
[4 replies] Last: @crunkjuice210 "r" means file is open in read mode. See this http://w... (by rishabhagl)
|
by Helegurbann
My curser
|
#include <iostream> #include <conio.h> #include <stdio.h> #include <windows.h> using namespace std; int main(){ COORD curser; int ch; ch=getch(); ... |
Feb 5, 2011 at 9:29am
[3 replies] Last: prinf('\b') method is binding cursor in bow screen.I tried new metho... (by Helegurbann)
|
by arveen11
Number, Letters and Space Only allowed.
|
hey guys.. i just want your help.. because i am making a program that has only numbers, letters, and space should be allowed.. i dont know the syntax for the sp... |
Feb 5, 2011 at 9:11am
[no replies]
|
by GulHK
QT related interview questions
|
Hello everyone! Could anyone please guide me what type of QT related questions are asked in interviews. Any book that I should have a look at? or any questio... |
Feb 5, 2011 at 8:56am
[no replies]
|
by Kapiva
Stopping a character array from printing directly to the screen
|
I am currently taking a programming course (my first one) and we were assigned to create a program that translates a block of text from English to pig Latin. On... |
Feb 5, 2011 at 8:26am
[1 reply] : word = tolower( word ); Though only the first letter can be capit... (by hamsterman)
|
by Failspur
Please reccomend a good compiler?
|
I have been scowering the interwebs for awhile... searching for a good (free) compiler. I have tried MSVC, however they would find random and unexplainable erro... |
Feb 5, 2011 at 6:37am
[1 reply] : cout and cin aren't supposed to be captialized. You need to include <... (by firedraco)
|
How to use stringstream to output a polynomial? |
Basically, I have three variables a, b and c, such that ax^2+bx+c = 0, and I have to print out the polynomial correctly (a b and c can all be either negative or... |
Feb 5, 2011 at 3:55am
[7 replies] Last: Call the .str() operator before you return it. You are returning a str... (by Zhuge)
|
by Ice
Read console output
|
Hi im new to c++, i already scripted but just in pawn (for samp server) I need your help about reading text from console if its possible the way i want it S... |
Feb 5, 2011 at 2:05am
[1 reply] : You could redirect the output of the program $ ./A.bin | ./B.bin Th... (by ne555)
|
by xanimeangiex
ofstream example not working?
|
// basic file operations #include <iostream> #include <fstream> using namespace std; int main () { ofstream myfile; myfile.open ("example.txt"); ... |
Feb 5, 2011 at 1:45am
[2 replies] Last: http://xoax.net/comp/cpp/console/Lesson47.php check the vid (by Blessman11)
|