
please wait
by TruYadoo
Best Alternative to system() with example?
|
I was wondering what the BEST alternative is to start an application. I'm using system() for the moment but I've read all over that system functions are ill-ad... |
Feb 18, 2012 at 7:17pm
[9 replies] Last: @ Null, The top Windows 7 worked. (by TruYadoo)
|
by rozick1
Initialising unique variables in a while loop?
|
Hi, I have an if statement nested in a while loop. Everytime the if statement is true I need to store a variable which can be used after the while loop is fi... |
Feb 18, 2012 at 7:12pm
[1 reply] : vector<int> variableStore; while (somecondition) { // generate som... (by Moschops)
|
by GRex2595
str.replace()
|
I'm trying to make code that writes code based on a two text files and user input, but I'm having issues with one line of it. I'm trying to replace a certain s... |
Feb 18, 2012 at 7:09pm
[7 replies] Last: These are not the droids you are searching for. (by cire)
|
by programmer95
Basic Loop Help
|
Hi, I need help with the programming of a basic loop while loop that keeps repeating until the user has entered either "N" or "Y". This is what I have go... |
Feb 18, 2012 at 6:46pm
[4 replies] Last: You could just invert the logic. do{ // Stuff while ( chr != 'y' ... (by ciphermagi)
|
by CJC0117
Question about Tutorial
|
I have a question about some code from the "Exceptions" tutorial on this site under the "standard exceptions" section. Here's a link: http://cplusplus.com/do... |
Feb 18, 2012 at 6:17pm
[2 replies] Last: Okay, thanks. Makes sense now. (by CJC0117)
|
by subjugater
why the result of the follow code is zero?
|
Shouldn't it be 23? Thanks! // trying to compute the division of two integers in c++ #include<iostream> using namespace std; int main(){ int i =... |
Feb 18, 2012 at 5:54pm
[4 replies] Last: LOL. Sorry, I am just a daft prick. (by subjugater)
|
by pepper
using structures and unions
|
how should a structure be used in other functions? how should a prolem like this be solved? Consider the abstract data type, aStudent, described as: struct a... |
Feb 18, 2012 at 4:57pm
[1 reply] : The same way as classes... Class == Struct == Union, except: Classes ... (by LB)
|
by sheckoo90
problem using cin inside DWORD Thread
|
hello guys this is my first post am trying to take input from console using cin from a thread when i enter the characters and press enter the program crash... |
Feb 18, 2012 at 4:48pm
[1 reply] : Maybe you forgot to allocate statename ? Also, I don't think it's a g... (by Null)
|
by jwroblewski
Sieve of Eratosthenes
|
Hello there. I have this in General C++, but I feel like this section gets more attention. So please pardon my repost. Im working on a euler project problem. I'... |
Feb 18, 2012 at 3:13pm
[3 replies] Last: Thanks much. I have investigated the unsigned long long, but its seems... (by jwroblewski)
|
by s0u1k33p3r
conversion from ' ' to non-scalar type ' ' request
|
I'm currently getting 21 C:\Users\Endre\Documents\CISC 3110\Chapter 7\hw#3\Bank.cpp conversion from `const Account*' to non-scalar type `Account' requested as... |
Feb 18, 2012 at 3:10pm
[2 replies] Last: I managed to solve the issue by myself but just to answer your questio... (by s0u1k33p3r)
|
by Jesus805
Understanding Pointer sizes
|
http://pw1.netcom.com/~tjensen/ptr/ch2x.htm "Also we have learned that on different systems the size of a pointer can vary. As it turns out it is also possible ... |
Feb 18, 2012 at 2:37pm
[6 replies] Last: There are four categories of pointers; each may have a different size.... (by JLBorges)
|
by galiwocky
Bubble Sorting program not working properly
|
I created a program that performs a bubble sort in ascending order to 10 integers. It prints what happens after each pass and shows which values at the end of ... |
Feb 18, 2012 at 2:26pm
[1 reply] : How interesting, I just tried your problem and got this output: Ente... (by Stewbond)
|
by kyky365
a C++ program with a function named FindMax that has two parameters
|
Task: Write a C++ program with a function named FindMax that has two parameters, one in type constant pointer to constant double array (i.e. const double* con... |
Feb 18, 2012 at 12:48pm
[5 replies] Last: thanks Pravesh Koirala & therockon7throw!!!! these are new code but I... (by kyky365)
|
by lare26
SFML Shape::Line Problem
|
I am trying to draw a line from Sprite to Sprite2. The program seems to draw from only the starting position of Sprite. When I move Sprite the line still comes ... |
Feb 18, 2012 at 10:37am
[1 reply] : Oops. I guess I should have used GetPosition() rather than GetCenter()... (by lare26)
|
function return |
When calling a function that has a return type, is it necessary to use the return type? Suppose the function modifies certain values and the return may or may n... |
Feb 18, 2012 at 10:27am
[no replies]
|
What is wrong with this program |
#include <cstdlib> #include <iostream> #include <string> using namespace std; int main() { string x; cout << "What's your husbands name? "; ... |
Feb 18, 2012 at 9:33am
[3 replies] Last: where did you learned from? this page is a good reading for you... ht... (by chipp)
|
by Bikeinator
Input causing infinite loop..
|
Program asks for a 1 - 3 input. And it supposed to display an error for anything else including letters etc. do { cout << "Option: "<< endl; cin >> option; ... |
Feb 18, 2012 at 8:51am
[5 replies] Last: Try using if-else. do { cout cin >> option; if (1) do that else if... (by TruYadoo)
|
by codrgi
would this list be safe?
|
the code- Iter1 = mList.begin(); do { if(*Iter1 == m_bAge) { //do code mList.erase(m_bAge) } Iter1++; } while(Iter1 != mList.end()) i'm not sure if it w... |
Feb 18, 2012 at 8:04am
[1 reply] : Not really because when you erase an element any iterators pointing to... (by Galik)
|
by jham92
high card
|
I am creating a program that asks the user to enter cards and then i need to tell them which on is the highest any help pr advice would be great thanks |
Feb 18, 2012 at 7:30am
[1 reply] : http://www.cplusplus.com/forum/beginner/1/ Sticky at the top of the f... (by cire)
|
error expected primary-expression before 'else' |
I still cannot figure out what I am doing wrong. someone commented on it earlier and I did what they said but I am still getting an error. PLEASE CAN ANYONE HEL... |
Feb 18, 2012 at 5:07am
[4 replies] Last: wow I see it now. THANKS GUYS!!! now the only problem I have is the to... (by Joshua Spears)
|