
please wait
by jambo0606
Sieve of Eratosthenes finding every number to be prime?
|
I've been trying to make a Sieve of Eratosthenes following the pseudocode off Wikipedia, yet something is going wrong with the execution and it's saying every n... |
Jun 20, 2013 at 3:49pm
[11 replies] Last: The compiler is unable to place such a big array as bool A ; in the ... (by vlad from moscow)
|
basic exception handling |
I'm trying to understand exception handling, and I'm testing this simple code: #include <iostream> #include <vector> #include <stdexcept> using names... |
Jun 20, 2013 at 3:18pm
[3 replies] Last: Thank you. I guess I was taking exception-being-thrown for granted. (by Marcos Modenesi)
|
by huasam ooi
sharing balance
|
hello, i m a newbie in c++..i nid u all to help me..how to share the new_balance with void call() and void sms()? #include<stdio.h> void sms(); void call(); ... |
Jun 20, 2013 at 3:08pm
[1 reply] : new_balance seems to be calculate by call , so simply have the functi... (by MikeyBoy)
|
by dhilchie
Math not working properly compared to wolfram
|
I have my code doing some math and i have done it by hand, with wolfram, and excel excel didn't match any of the calcs therefore i gave up with that but my hand... |
Jun 20, 2013 at 3:00pm
[2 replies] Last: THANK YOU SOOOOOOOOOO MUUCCCHHHH !!!!! I will try this after my lunch... (by dhilchie)
|
by anzhit
Pancake Gluton Problem
|
I was attempting the pancake glutton problem http://www.cplusplus.com/forum/articles/12974/ the last part where we need to sort the people. After lots of thinki... |
Jun 20, 2013 at 2:27pm
[8 replies] Last: C++ has two ways of passing function arguments: by value (which is the... (by nkendra)
|
by dhilchie
For loop not looping all the way
|
This code is a snippet of a larger code and i get no error when i compile it. I hav declared all my variables elsewhere. All the cout's are from me trying to fi... |
Jun 20, 2013 at 1:52pm
[1 reply] : i found the problem I used x twice in the loop so it reset x (by dhilchie)
|
by chikaibeneme
Multidimensional Arrays
|
I would like to store all the even numbers from 1 to 100 in an multidimensional array and then find the average of them. This is what i have. #include <iost... |
Jun 20, 2013 at 1:03pm
[2 replies] Last: ok i'll try that thanks (by chikaibeneme)
|
by a967Bytes
CMD commands in compiler and in system()
|
Hello what I am doing here is trying to make a simple program that fixes the damage caused by hidden files virus if you know it, it simply change the attributes... |
Jun 20, 2013 at 12:18pm
[5 replies] Last: I see, thanks. (by a967Bytes)
|
Auto entry |
I am working on a program that has the user type one character. How can I get the program to automatically accept the character? Also how can I set the mouse to... |
Jun 20, 2013 at 12:16pm
[5 replies] Last: Well, that's not going to work. You need to learn how to call thos... (by AbstractionAnon)
|
Problem in files |
Hi Guys! hope you will be fine... I have a little bit problem in my program, I made a file to store my program, I declare 3 variables int idNumber; string ... |
Jun 20, 2013 at 11:47am
[15 replies] Last: If you enter the data all on a single line, like this: 1 junaid khan ... (by Chervil)
|
by nasrul
please help me...
|
hello everyone this is my coding. why when i want to put the name of the movie with spacing it become error.. #include <iostream> #include <cstdlib> u... |
Jun 20, 2013 at 11:29am
[3 replies] Last: Instead of cin>>name; try getline(cin, name); But be careful of an... (by Chervil)
|
Boost Subgraph Implementation and exporting using Graphml |
I am using boost 1.53.0, I have implemented a small demo using boost for subgraph. I need to export the subgraph information in the graphml file, while exporti... |
Jun 20, 2013 at 10:27am
[no replies]
|
by Edward01
A question about pointers?
|
What is the difference between these two codes? int *ptr = new int; int x(7); cout<<"x:"<<x<<endl;//output 7; *ptr = x; cout<<"&ptr: "<<&ptr<<endl;... |
Jun 20, 2013 at 10:09am
[3 replies] Last: thanks (by Edward01)
|
by yyoni69
Pointer to vector of vectors
|
Hi I'm trying to write a code that have vector and this vector holds another vectors and i cant find out how to push vectors into this "array" of vectors my cod... |
Jun 20, 2013 at 8:37am
[4 replies] Last: It's Ok guys all working fine thank you (by yyoni69)
|
by senorita
Getting Error in ML Module Class source
|
error C2955: 'ml::NCSliceWiseIntensityArtifacts' : use of class template requires template argument list argument list for class template for 'ml::NCSliceW... |
Jun 20, 2013 at 8:02am
[no replies]
|
by Vigii
How do they create a software??
|
Hi, I'm a newbie to C++ and coding world. I just want to share you all with my question. 1) Will every software requires a c++ or any coding program to... |
Jun 20, 2013 at 7:23am
[4 replies] Last: Thank you lot for helping me to find a solution for my problem. I thi... (by Vigii)
|
Pointers and Arrays |
Can someone comment out line by line the below code? I can't understand what is happening. // more pointers #include <iostream> using namespace s... |
Jun 20, 2013 at 5:37am
[6 replies] Last: Have a go at reading chapter 5 in this book - it may help you a bit. ... (by TheIdeasMan)
|
by johnny45634
How do I read this
|
Hi guys, I am a new C++ student. I am having trouble to understand the following code which is from the lecture note: (205 * c > d / 1.6) Than... |
Jun 20, 2013 at 4:58am
[3 replies] Last: aha... Thanks heaps. (by johnny45634)
|
Help with stringstream |
I have been having difficulty using stringstream in a loop. Upon investigation, I have found that stringstream is apparently not intended to be used in loops, s... |
Jun 20, 2013 at 4:15am
[4 replies] Last: Oh! I didn't realize JLBorges was declaring StringToInt first for that... (by nonpareilpearl)
|
by chikaibeneme
summ of the first 20 odd numbers from 1 to 100
|
I am trying to store and find the sum of the first 20 odd numbers from 0 to 100 but each time i run the program i get a black screen. Thanks for your time. ... |
Jun 20, 2013 at 2:42am
[9 replies] Last: Wow thanks i really appreciate all your help it worked :) (by chikaibeneme)
|