Search found 286 matches

by sumankar
Tue Jul 11, 2006 11:49 am
Forum: C++
Topic: Code (don't understand)
Replies: 12
Views: 4612

Hmmm... still confused why... from your given code (I've compiled it with MS Visual with some modification on codes) I have not seen the modified code -- so can't comment. Also, VC++ 6 is not something I am very familiar with, so it would be unwise to give you misleading info. But there were a few ...
by sumankar
Sat Jul 08, 2006 3:30 pm
Forum: C++
Topic: Code (don't understand)
Replies: 12
Views: 4612

[...]Why should I declare virtual before the function prototype? I didn't understand... Isn't it the way to make polymorphism code? I don't get your explanation in this part The keyword virtual is required to get the correct function called when function calls are made via a base class pointer. In ...
by sumankar
Sat Jul 08, 2006 3:12 pm
Forum: C++
Topic: Compiling
Replies: 6
Views: 2364

If you have GNU Compiler collection installed on your system, you can use
the following command lines:

Code: Select all

gcc filename.c
for C code and

Code: Select all

g++ filename.c
for C++.
by sumankar
Fri Jul 07, 2006 10:48 am
Forum: C++
Topic: Code (don't understand)
Replies: 12
Views: 4612

[...]Why it's only once running, because like you said before, the virtual keyword can make sure the base class only once build and so only one object of base class can be created at that time, is that correct? Because there is no object of type inner created when an object of type OuterBar is crea...
by sumankar
Wed Jul 05, 2006 3:30 pm
Forum: C++
Topic: <math.h> vs <cmath>
Replies: 2
Views: 1873

http://acm.uva.es/board/viewtopic.php?t=10253&sid=8420885e3bc926796f659bb027c8d582 A previous post that would explain this Try searching the forums to see if your question has already been answered or not. <shameless plug>In case, you are too lazy to do that, you can use my search plugin (in case y...
by sumankar
Wed Jul 05, 2006 7:20 am
Forum: Volume 100 (10000-10099)
Topic: 10042 - Smith Numbers
Replies: 75
Views: 23668

Maybe its time you posted the code in its entirety.
--
Suman
My Blog
My Web Page
by sumankar
Mon Jul 03, 2006 2:56 pm
Forum: C++
Topic: Code (don't understand)
Replies: 12
Views: 4612

Re: Code (don't understand)

[...] Sumankar but can you explain in plain and easy-to-understand English language? I don't get all your explanation :oops: poor me.... <g>I wish I knew better.</g>I try to make up for my lack of knowledge with hard-to-understand phrases! I'll give it a shot nevertheless: come back if you'd need f...
by sumankar
Thu Jun 29, 2006 3:17 pm
Forum: C++
Topic: Code (don't understand)
Replies: 12
Views: 4612

Re: Code (don't understand)

class Outer { protected: T Inner; }; How would you read this for some type T? Think about access qualifiers. I have't come across anything that says it should be anything else when it comes to a nested class. I might be wrong ;) so prove me wrong. Also, the forget the `virtual' in the next part and...
by sumankar
Wed Jun 21, 2006 10:32 am
Forum: Other words
Topic: New Firefox extension for UVA
Replies: 6
Views: 3209

Ok! Preferences added. Get it from here

I would really like to know if you didn't like it -- why you didn't
and what changes can I make to make it more usable.

Thanks!
Suman.
by sumankar
Sat Jun 17, 2006 9:16 am
Forum: Other words
Topic: New Firefox extension for UVA
Replies: 6
Views: 3209

it works fine after i increased the maxversion in install.rdf <g>maybe you can take it up from here</g> Thanks! 1.if the user doesnt enter his id, dont make a uva box on the lower bar appear (else a box with 'loading...' comes) I know: did I not mention this already (on the blog?). 2.does it refres...
by sumankar
Fri Jun 16, 2006 3:18 pm
Forum: Other words
Topic: New Firefox extension for UVA
Replies: 6
Views: 3209

Thanks for your interest. Here it is.
Let me know if you have any issues in downloading/using it.
by sumankar
Thu Jun 15, 2006 12:14 pm
Forum: Other words
Topic: New Firefox extension for UVA
Replies: 6
Views: 3209

New Firefox extension for UVA

Hello All, I have recently created a small extension for Firefox that shows your number of problems solved at the right bottom status bar. You can read more about it here or get it via email (since I don't have a place to put this up, yet!) from me. Please keep you email's subject line as uvacntr.xp...
by sumankar
Wed Jun 07, 2006 6:59 am
Forum: C++
Topic: compile error (compiled successfully using visual c++)
Replies: 3
Views: 1815

Difference in variable scoping. VC++ is broken. ... int main() { string x,y; bool found; int angka; for (int i=0;i<=9;i++) val[i+48] = i; /* i undeclared here */ for (i=1;i<=26;i++) val[i+64] = i+9; while (cin >> x >> y) { found=false; /* i undeclared here */ for (i=1;i<=36;i++) ...
by sumankar
Tue Jun 06, 2006 7:07 am
Forum: C++
Topic: POINTERS
Replies: 2
Views: 1702

Invest some time in a book depending on your choice of language. Assuming that you know what variables are here's a start: pointers are variables -- they hold the address of the pointee. To get to the pointee we use the dereferecing operator or *. /* for some type T, if var is a variable of type T i...
by sumankar
Mon May 29, 2006 6:50 am
Forum: C
Topic: Linux C
Replies: 3
Views: 4070

Well from VC++ the closest you'd get is KDevelop.
Try it out. You'll probably end up liking it. The reason
is with vi/vim/emacs etc you'd need to put in some
effort with the commands. However, KDevelop is more
in tune with VC++ in terms of both look-n-feel and
operation.

Go to advanced search