Beginners - June 2013 (Page 17)

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...
[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...
[3 replies] Last: Thank you. I guess I was taking exception-being-thrown for granted. (by Marcos Modenesi)
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(); ...
[1 reply] : new_balance seems to be calculate by call , so simply have the functi... (by MikeyBoy)
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...
[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...
[8 replies] Last: C++ has two ways of passing function arguments: by value (which is the... (by nkendra)
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...
[1 reply] : i found the problem I used x twice in the loop so it reset x (by dhilchie)
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...
[2 replies] Last: ok i'll try that thanks (by chikaibeneme)
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...
[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...
[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 ...
[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...
[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...
[no replies]
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;...
[3 replies] Last: thanks (by Edward01)
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...
[4 replies] Last: It's Ok guys all working fine thank you (by yyoni69)
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...
[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...
[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...
[6 replies] Last: Have a go at reading chapter 5 in this book - it may help you a bit. ... (by TheIdeasMan)
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...
[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...
[4 replies] Last: Oh! I didn't realize JLBorges was declaring StringToInt first for that... (by nonpareilpearl)
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. ...
[9 replies] Last: Wow thanks i really appreciate all your help it worked :) (by chikaibeneme)
June 2013 Pages: 1... 1516171819... 49
  Archived months: [may2013] [jul2013]

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