Beginners - May 2010 (Page 7)

by namus
constructor syntax ..?
 
what is this syntax signify ? Integer(long q = 0) : i(q) {} .. its a constructor for Integer class , with default value 0 .. but what does other half mean ie...
[1 reply] : Constructor is like a function or method, but the name of constructor ... (by Denis)
Calculate maximum sum from Top to Base of Triangle
 
Hi. Here lies my problem - http://projecteuler.net/index.php?section=problems&id=18 I am not sure about what to do.. it says that there is an efficient algo...
[5 replies] Last: hey thanks people...that helped a lot. I'll post the solution after co... (by sanalsprasad)
Why not working?
 
Solved! Thank You!
[4 replies] Last: and in the future DO NOT delete the original post. (by closed account z05DSL3A)
................
 
Hi there...
[1 reply] : What's the problem. I don't see a specific question. How much C++ ... (by kbw)
About line break in XML
 
I ma using Xerces library, when i writing a xml file, the line break is '/r/n', but if i read it in again, it is only '/n' there. Is this the XML standard? Th...
[2 replies] Last: I am using Windows XP now, and i haven't tried it on Mac yet. Accor... (by aidyszh)
use of using namespace std;
 
can anybody tell me,what is the use of writing namespace std; so many c++ programs includes this line.plz tell me what is this and why it is needed.
[1 reply] : Actually, it's usually a better idea NOT to use using namespace std; ... (by Albatross)
Type cast
 
How do you typecast between std::complex<int> and std::complex<double> ? How do you multiple between types? std::complex<int> * std::complex<double>; ...
[1 reply] : It was my understanding that the double templated class overloads fo... (by Duthomhas)
Passing pointers to functions
 
I have a class constructor that I want to take pointers as formal parameters, but something seems to be going very wrong when I try to call it. I don't think...
[3 replies] Last: I'm still not sure. My understanding isn't too fluent with preprocesso... (by closed account Lv0f92yv)
by cyeb
Determine if a Number is Prime
 
Yes, I know about the Sieve of Eratosthenes and Euler, I'm trying to make one on my own, and see how quick it can be. Here's my code: int isprime(double ...
[12 replies] Last: I have a function which as far as I know is reliably on getting primes... (by mloC)
Function that takes two arguments actually does not?
 
Hi there everyone. I'm still pretty new to the way classes work and cross-file interaction in Visual C++, and I've been getting an error saying "ConGui::gotoxy:...
[4 replies] Last: Ok, thank you. I'm having another problem here. I'm getting an erro... (by tgp1994)
by Skico
Dynamic number of objects.
 
Hi. Im trying to make my first game into some kind of RPG but I have a little problem. I need dynamic number of items so they can be created or destroyed anytim...
[3 replies] Last: Only really how to use them, not even how to create new ones from scra... (by Albatross)
Acessing objects functions and atributes on a vector thought an Iterator
 
Hello, I am new to c++ but have some experience on c. I am trying to create instancies of a Class and store then on a vector. Then I would like to iterate t...
[3 replies] Last: Thank you for the quick answers! Kempo sugestion worked for me! (by uderman)
Sorting A vector of objects
 
I have a vector full of Student Objects. Student has: unsigned int idnumber; std::string name; std::vector<int> grades; I've overloaded < to sort the Stu...
[16 replies] Last: Unfortunately you seem to have missed the point that a predicate wasn'... (by kempofighter)
Multidimentional Arrays
 
Hello, My name is Adam and I have been a programing student for 4 months now. I have been tasked with writing code for a tetris clone and I need some directi...
[6 replies] Last: @Duoas I'll digest that and try to get that in over the next couple o... (by feelinGood)
by Deicer
statement cannot resolve address of overloaded function
 
Hi, I have started programming and am working on my first program. there is only one problem with it, when I try to compile it, a error comes up: "statement ...
[2 replies] Last: Thanks, That fixed it, Deicer (by Deicer)
by cmccmc
fstream question
 
using fstream how can you open a file outside of the directory your programs running in?
[4 replies] Last: Never forget that backslashes are written as '\\'. (by helios)
Isn't istream_iterator defined in standard namespace?
 
i included itreator header and declared istream_iterator using using declaration like this: #include<iterator> #include<iostream> ... using std::istream_...
[9 replies] Last: Hey, i found the problem, well , it's really an embarrassment, i missp... (by akilguo)
Some Begginers Questions
 
Hello C++ devers, I am a Novice programmer and I have been trying to Learn C++ for about 2-3 months now and I am still trying to figure out the odor in which I ...
[12 replies] Last: Im so excited my college is payiong for me to go to a 5 day c++ Camp! (by Gene)
by amma
more console output
 
Hello, I have a program that must print some 600 lines through the standard output. The console doesn't print all 600 lines and starts by say 13x. how ...
[4 replies] Last: Hello, problem solved. I had to adjust the global gnome-settings se... (by amma)
C++ end of program
 
is there any way to have a program terminate at the end, like the system("pause") command pauses it, so would there be a system command to end the program?
[5 replies] Last: Hey thanks this worked. yes I was trying to end the program before it ... (by burrahobbit95)
May 2010 Pages: 1... 56789... 33
  Archived months: [apr2010] [jun2010]

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