Beginners - September 2009 (Page 19)

While Loop
#include <iostream> using namespace std; int main () { int x =1; int c = 3; while (c-- >=0) { x*=2; } x++; cout << ++x << endl; }//Ans ...
Sep 7, 2009 at 7:41pm
[3 replies] Last: #include <iostream> using namespace std; int main () { int a = ... (by screw)
by gpht
function definition error
hey everyone...i cant figure out how to implement the erode function in VC++ from blepo library.....i implemented the function but its giving error as "local fu...
Sep 7, 2009 at 7:34pm
[1 reply] : img(p.x,p.y) = 1; What is this supposed to mean? (by helios)
Program closing...
hello,i'm new to programming and I have the code:blocks ide with mingw compiler. It worked fine by now but I just started making a little bit more serious code ...
Sep 7, 2009 at 5:40pm
[5 replies] Last: Duoas thanks a lot. although I don't 100% get what you meant in your c... (by aliens112)
by gpht
image processing programming
Hello everyone..... i am acquainted with C++ , but I am very new to digital image processing...I have hardly any clue about the sytax and terms used in image pr...
Sep 7, 2009 at 4:50pm
[3 replies] Last: Do you have to also display the image? Or just load the data from the ... (by NGen)
the right compiler (1,2,3,4)
hi I wanted to learn the C++ language to program my lego rcx with brickos but I havent any experience at all with programming so I was looking for a easy bas...
Sep 7, 2009 at 4:50pm
[61 replies] Last: Edit: Ok, I'll stop... By the way, return 0, I only 'rant' on threa... (by chrisname)
complete beginner
hi i am a complete newbie to c++, i am takig an intro class and my professor besides not being an english speaker is a complete douche bag. Is there anyone who ...
Sep 7, 2009 at 4:27pm
[1 reply] : http://cplusplus.com/doc/tutorial/ (by chrisname)
Example of Polymorphism
Hi, I'm a newbie in CPP and I'm having trouble in understanding how polymorphism works in CPP. I've programmed an example but it won't compile, and I can't u...
Sep 7, 2009 at 2:53pm
[6 replies] Last: In your header file you should get into the habit of doing class... (by jsmith)
int unexpected error
string name, // first name, typed in by the user int ageInYears, // age typed in by the user ageDiff, ...
Sep 7, 2009 at 2:52pm
[5 replies] Last: A semi colon terminates a line. Actual new lines are mainly for readab... (by Chewbob)
How are std::list::iterators maintained/made?
I'm trying to understand how iterators work. They are able to maintain list position even if the nodes beside it are removed. So I think it is more than a...
Sep 7, 2009 at 2:48pm
[7 replies] Last: InLight: in what respect does the STL "suck"? (by jsmith)
problem on the output--newbie
-hello, im just new in using c++...please help me know whats wrong with these program i've done...it allows a user to enter two words and will display if the 1s...
Sep 7, 2009 at 1:03pm
[6 replies] Last: Thats fine. The reason why what you was doing before wasn't working, a... (by mcleano)
MS VStudio 6, find Code for Buttonevent
Hello everyone, i`ve got a real simple problem but its currently preventing me from doing my work. Hope someone can help me. Today i started working in a...
Sep 7, 2009 at 12:44pm
[5 replies] Last: The ClassWizard database can be created & recreated whenever you like.... (by Lodger)
taking a value generated by a non-main function, printing
My problem is this: I can't figure out how to take the value generated by the factorial function and print it to the screen. When I try to print it o...
Sep 7, 2009 at 11:19am
[1 reply] : well. you said that by making the variable global they will be visible... (by Cojones)
Where do I go now?
So ... now that I can do a bunch o' stuff (not said lightly) what do I do ? is there a website with project ideas or even a medium difficulty tutorial site?
Sep 7, 2009 at 10:53am
[5 replies] Last: Use the string class. http://cplusplus.com/reference/string/string/ Yo... (by Cojones)
by gpht
no errors
while ( !frontier.max_size()) { if (img(p.x,p.y) >= lowthreshold) { img(p.x,p.y)=max; frontier.push_back(Point(p.x,p.y)); p.x++; p.y++; } else { ...
Sep 7, 2009 at 3:39am
[1 reply] : Hello! I don't know your algorithm but yours checks the diagonal. B... (by screw)
absolute beginner, and about DevC++
I haven't learned any code yet. I've downloaded DevC++ compiler, which recently has some video support code, to what limits that will help me I don't know. My...
Sep 7, 2009 at 12:32am
[1 reply] : 6 months? No. It will take you 6 months to absorb a great deal of an a... (by helios)
int get()
int get(); Extracts a character from the stream and returns its value (casted to an integer). #include <iostream> int main() { std::cout << "Enter ...
Sep 6, 2009 at 8:52pm
[3 replies] Last: @chrisname: "Remove the "int" and just type "get()" -- Yes, in hindsig... (by closed account jLNv0pDG)
graphics.h tutorial?
hello there,i didn't find anything about it.Where can i find tutorial about it? thank you
Sep 6, 2009 at 8:48pm
[4 replies] Last: okey guys.you are right.i won't use "graphics.h" because I'm not old ^... (by areyoupp)
Question regarding static pointers as class members
Hi all, I have a class MyClass with one static pointer : .h : static SomeOtherClass *test; .cpp : SomeOtherClass MyClass::*test= 0; But when...
Sep 6, 2009 at 8:36pm
[3 replies] Last: Ah, yes... I sometimes hate this syntax. :) Regards (by cppuser)
by audit
Try to design a rational number class
...
Sep 6, 2009 at 8:28pm
[13 replies] Last: 32-bit ints have an upper limit of 2^31-1, or 2,147,483,647. (by helios)
by cdh473
Initializing nested classes
I was wondering how to initialize objects from nested classes- Example: class Outerclass { public: Outerclass(); class Nestedclass { ...
Sep 6, 2009 at 6:07pm
[6 replies] Last: Why would you want to do that? The point of a nested class is that it ... (by Chewbob)
September 2009 Pages: 1... 1718192021... 23
  Archived months: [aug2009] [oct2009]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.