Beginners - October 2012 (Page 27)

linked list
 
problem : http://www.codechef.com/problems/LUCKYSTR/ code: http://www.codechef.com/problems/LUCKYSTR/ the code is running for every test case i tried. B...
[no replies]
want to learn c++
 
i was wondering if anyone had links to a free compiler and up to date one aswell as tuts . as i wanna learn
[4 replies] Last: thank you both for the information (by coldasice)
by Yoda
Hello, New to C++ Need advice + About me
 
Hello, First lets start on my first topic. I am new and know nothing of .... well very little about programming. (I took an online class that EPICALLY F...
[8 replies] Last: @Yoda If anyone would like to help me along the way please get at me... (by vlad from moscow)
error: expected ',' or ';' before 'int'
 
i'm new to c++. need help. i got this error... error: expected ',' or ';' before 'int' error: 'n' was not declared in this scope error: 'i' ...
[5 replies] Last: thanks :) (by meisalady)
Looping back C++
 
Hey so I'm making a little text based gladiator game and I'm trying to make it so that it asks you if you want to roll the dice again and if you do it should lo...
[19 replies] Last: you'd break from all the loops because you've done what you needed; n... (by TheIdeasMan)
All text file into one string
 
Hello. I have a question concerning using getline to get all of the text's content into one string. I've written a text file outside the program and when I wa...
[3 replies] Last: #include <iterator> ifstream text_input("test_text.txt"); string ... (by closed account DSLq5Di1)
runtime error
 
i m confused why is following code giving runtime error!! plz help me out #include<stdio.h> int main() { int n,m,t,i,a,b,j,p,q; scanf("%d",&t);...
[3 replies] Last: Divide by zero exception in this line, when m == 0: while(n%m!=0) ... (by Chervil)
c++
 
#include <iostream> #include <cstring> using namespace std; int main () { bool x1; bool x2; int size1; int size2; size1=100; ...
[1 reply] : cin>>arrway1[ size1 ]; index out of bounds (by johnbob)
Problem with for and std::map.
 
Hello, I am kind of new in c++ and I am trying to make use of a map. pointer_count is the name of my map. A sample of my code is: for (Map_Type::iterator it...
[5 replies] Last: I did it another way, but thank you very much. (by zanklob)
std::string memory.
 
Is there any way to create an std::string inside a class but store it outside of the class (but not in the heap). So even if the object that created the string ...
[7 replies] Last: Thank you very much for your help! (by zanklob)
Making a Calendar in C++
 
Any ideas of how I can have a calendar for all 12 months print for any year? The user inputs the year and the day of the week for January 1st of that year. (Sun...
[3 replies] Last: http://zanasi.chem.unisa.it/download/C.pdf If you check this out, t... (by TheIdeasMan)
Max & Min
 
I am having a problem finding the max and min in my program. The program ask the user to input grades and enter a negative number in order to stop inputting gra...
[7 replies] Last: Yeah, this forum is really helpful especially if you are like me and m... (by ek192010)
help Me Guys!!
 
Hello Friends, I have done Graduation last Year .Now, i am planning to do Post Graduation. But I am confused about where to take admission for PG, In Abroad...
[no replies]
Standard Deviation
 
How exactly do you use this formula? sdx = sqrt((sumx2 - (sumx * sumx)/n)/(n-1) I was told to use that formula in my program but I don't understand how i...
[2 replies] Last: #include <iostream> using namespace std; void Display_Menu(); int ... (by ek192010)
Efficient solution to a problem?
 
This problem was on yesterdays Croatian Open Competition in Informatics: Let us begin with a positive integer N and find the smallest positive integer which do...
[6 replies] Last: Yes, that's correct. It wasn't at all clear that that's what you meant... (by helios)
Image help
 
Hey guys! Beginner of Programming here :P I have a question with images is it possible to upload a image? like cout << image? Let's say there was this ...
[3 replies] Last: Yaa there are so many library available in market...here are some grea... (by HiteshVaghani1)
One integer instead of two
 
How can I change it so that I input only one integer instead of two? #include <iostream> using namespace std; int main() { int n; int y; int i; ...
[6 replies] Last: How can I make it so that after inputting an integer not within the ra... (by dice980)
Variable problem
 
So I have a variable called curPlayerHealth and another called maxPlayerHealth . So I need the curPlayerHealth to be set to maxPlayerHealth , ONLY ONCE. ...
[9 replies] Last: Lol (by pogrady)
This function in my text
 
Hey there was a function in my text which read like this; Suppose this is the input a=5, b=10, c=15 void find(int a, int& b, int& c) { int temp;...
[2 replies] Last: Call that function with different numbers and you'll have a better ide... (by Lowest0ne)
by khal
Dynamic Issue
 
Hi, I am getting an "aborted(core dumped)" when I include the destructor. Could someone help understand what is wrong? const int Size = 100; class test { ...
[3 replies] Last: Okay, I see I ran the code in the codeblocks compiler and it worked wi... (by khal)
October 2012 Pages: 1... 2526272829... 84
  Archived months: [sep2012] [nov2012]

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