Beginners - June 2013 (Page 28)

Square root of an integer variable
 
Hi there; While I was attempting Project Euler Problem Number three, I encountered a problem. I have an int value, and I want to try and square root this, howe...
[2 replies] Last: Or you could use this form for (int ii=2, mm=(int)sqrt((double)numb... (by andywestken)
by mrm40
linked list, class, struct
 
Hi, i guess i've implemented a linked list using c++. i post my code here, if you see anything that could improve this code and perform it better, please tell...
[no replies]
Absolute beginner. Help please.
 
I am just beginning and was doing the "Hello World" project. I have even copy and pasted the example from the tutorial, but everytime I try to compile, I get an...
[7 replies] Last: Alright, thank you for the link (by katcon42)
Beginner mad libs problem and im lost
 
Write your question here. Ive been provided with a skeleton code and must fill the rest out. /* * madlibs.cpp This program prompts the user to type words...
[7 replies] Last: Try also using fixed. My guess is you are entering something like 5.0... (by kevinkjt2000)
Nested If Else Shows Different Output
 
Hello everyone, I was working on a coding tutorial based on a question. Question: 1. User is asked to enter any number. 2. If user key in number '5', a messa...
[3 replies] Last: Thanks. the problem is solved:) (by passionrain)
by achiah
Backwards Scoring Fun
 
Hello everyone! I am currently making a scoring system project. It's not like the easy ones where you do something and get a point for that. It's the other way,...
[7 replies] Last: Thanks for all the input guys! (lol input) I'll see if I make some pro... (by achiah)
plx somebody help me with this code
 
:P
[5 replies] Last: This should fix your code: #include <iostream> using namespace std; ... (by Smarty)
by dody
frequent user input
 
im very2 new to c++..how to get the frequent user input to set a personality test program help me how to use array #include<iostream> using namesp...
[2 replies] Last: sorry for that language.. oh..thank you for that info.. by the way i... (by dody)
The actual use of C++ after learning
 
How can we apply the knowledge that has been learned?Can you all make a game or an app?Will you face something like not knowing how to code to bring out a thing...
[2 replies] Last: @Incognito20 Will you face something like not knowing how to code to ... (by vlad from moscow)
Classes private functions
 
I want to be able to use my object of hero class to call the private function getAttack() from characters and generate a specific value just for that object. Ho...
[8 replies] Last: Ohhh! ok i got it now. Thanks guys! I thought that by returning a valu... (by damian519)
n!/k!(n-k)!
 
hi i get this message in .net : Error 1 error C2540: non-constant expression as array bound \documents\visual studio 2010\projects\test3\test3\test3.cpp 18 1...
[4 replies] Last: it's generally a bad code habit for a c++ beginner declare a 2 dimensi... (by LaboPie)
error: incompatible types in assignment
 
**Edit I have now changed the way i am approaching this problem see second post I am gett this error "vbays.cpp:74: error: incompatible types in assignment o...
[4 replies] Last: ok I understand now thanks for the clarification (by dhilchie)
Array Length exceeded?
 
Hi all, I am new to C++ and I have a doubt. int scores ; scores = 23; cout << scores << endl; Shouldn't the above code be generating...
[4 replies] Last: Oh, I get it now. Thank you all :) (by Himansh)
by suki
The variable 'F' is being used without being initialized.help!?
 
The variable 'F' is being used without being initialized.help!? this is the program i am trying to write. it has no aparant problem except the error stated...
[3 replies] Last: The variable k is not initialised? (by Chervil)
Downloading files / accessing files online
 
Hi! I'm creating a bit of software that uses information that updates from time to time. The information is on an API. I can recover the information from the X...
[2 replies] Last: Thanks! aha, the libcurl API had example docs. (by Jonas Wingren)
by Blank
areas of rectangles
 
i just finished this problem but i feel the code could be better improved and simplified. can anybody help me out? this program finds which of the two rectangle...
[7 replies] Last: The ability to resist being a smart ass eludes me int length,length... (by closed account NyhkoG1T)
create histogram
 
I can create histogram of data in range 0 to 180. but i want to create histogram in range 0 to 89 and 90 to 180. So my histogram x-axis should be like this 90...
[12 replies] Last: No, my array size would be same 180 but .. array range should not be 0... (by tina123)
Population Estimation
 
Hi! I'm writing a program that's supposed to estimate the population (originally 26 000) of a town, in which there are 0.7 % of the total population born ever...
[5 replies] Last: Goran, putting cin.get(); twice at the end of the code is the simple... (by Donnie)
Need some analysis of Linked List
 
hello dears i need some analysis about linked list algorithms..i need it soon as possible because my presentation is coming.... 1-Big O Notation. 2-Time Compl...
[3 replies] Last: http://www.csee.umbc.edu/courses/undergraduate/202/spring07/Lectures/C... (by tath)
Arrays result/output wrong
 
Write your question here. hey guy i am adding arrays when user give input from keyboard,d but the result is different from what i give input... Please sort it ...
[3 replies] Last: The array isn't adding anything useful here, the program can be writte... (by Chervil)
June 2013 Pages: 1... 2627282930... 49
  Archived months: [may2013] [jul2013]

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