LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-15-2003, 11:59 AM   #1
mymojo
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 176

Rep: Reputation: 30
Basic C++ challenge?


Hi! I'm just learning the basics of C++, have written a couple of (very) simple programs... would you be kind enough to issue me a little challenge?

Thx!
 
Old 12-15-2003, 12:52 PM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
well depends on how much c++ you know and what your interested in, here's a moderatly difficult mathematical problem(quite useful as well).

[edit] the more i think about it the more i think that'd be too hard so can you tell us what sort of stuff you know and are interested in[/edit]

create a class that has the ability to hold a number totally accuratly(you'll need to find a way to handle irrationals) give it some operators like +,-,*,/,^n (n posotive integer), then using this class write a program to solve n'th degree polynomial equations to a specified precision. im not sure how old you are so i dont know if thats past your mathematical abilities or not.

have a look at some past problems on www.topcoder.com theres lots of easy and hard stuff there.

Last edited by kev82; 12-15-2003 at 12:53 PM.
 
Old 12-15-2003, 01:13 PM   #3
mymojo
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 176

Original Poster
Rep: Reputation: 30
that's past my mathematical & c++ abilities
 
Old 12-15-2003, 01:32 PM   #4
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
start with a linked list with provision to add/delete/modify objects inside the nodes? this should get you understanding pointers, and caling by ref in C++, i think.
of course, in C++, we can just use vectors from the STl, but i think this is a decent start.
 
Old 12-15-2003, 01:37 PM   #5
mymojo
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 176

Original Poster
Rep: Reputation: 30
that'll keep me busy, thanks
 
Old 12-15-2003, 02:25 PM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
did you have a look into www.topcoder.com?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want a challenge? TruckStuff Linux - Security 2 05-13-2005 01:39 AM
One of my biggest challenge! gcclinux JDS 1 10-23-2004 10:15 AM
a challenge for you derfaust Programming 3 03-12-2004 12:23 AM
Crypto Challenge jeremy Linux - Security 2 11-18-2003 07:56 AM
I'm a BASIC chap, looking for some info on BASIC programming CragStar Programming 2 01-21-2001 09:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration