Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~75.6K People Reached
PC Specs
Intel Pentium 4 WinXP SP2/ iMac G5 Mac OS 10.4.7
Favorite Tags

60 Posted Topics

Member Avatar for samaru
Member Avatar for Jaks_maths
Member Avatar for TheNNS

How did you get hired? The point of work is, wait for it, TO WORK! Not to kill your "friend's" computer, and not to waste the companies resources.

Member Avatar for Narue
0
635
Member Avatar for manutd

This is a function that will find the factors of a given number for you. EDIT: Better algorithm using vectors (thanks all at cprog :) )

Member Avatar for lxXTaCoXxl
0
181
Member Avatar for harshchandra

1) This `void main()` Should be `int main( void )` 2)Try to eliminate the nonstandard functions.

Member Avatar for ezkonekgal
-2
2K
Member Avatar for amatallah
Member Avatar for vicky_dev

[code][COLOR=#008000]#include <iostream.h>[/COLOR] [COLOR=#008000]#include <stdio.h>[/COLOR] [COLOR=#008000]#include <stdarg.h>[/COLOR] [COLOR=#008000]#include <stdlib.h>[/COLOR][/code] O-o-outdated. It's:[COLOR=#008000] [/COLOR][code] [COLOR=#008000]#include <iostream>[/COLOR] [COLOR=#008000]#include <cstdio>[/COLOR] [COLOR=#008000]#include <cstdarg>[/COLOR] [COLOR=#008000]#include <cstdlib>[/COLOR] [/code]

Member Avatar for manutd
0
574
Member Avatar for manutd
1
303
Member Avatar for gabriel_wadley
Member Avatar for nanodano
Member Avatar for amatallah

This [inlinecode][COLOR=#0000ff]void[/COLOR] main[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][/inlinecode]should be [inlinecode]int main(void)[/inlinecode]. Try to find alternatives to using clrscr, etc, as they are non-portable.

Member Avatar for manutd
0
142
Member Avatar for ShawnCplus

1)Main should have a type: [INLINECODE]int main (void)[/INLINECODE] 2) O-o-out dated: [INLINECODE][COLOR=#0000ff]goto[/COLOR] begin;[/INLINECODE] 3) What's with the indentation? 4) Seed rand only once, at the start of the app. 5) Could you have made this any less portable?

Member Avatar for ShawnCplus
0
2K
Member Avatar for Puckdropper
Member Avatar for todd.sifleet
0
249
Member Avatar for ShawnCplus

There are some outdated elements (goto), non-portable ones (system("PAUSE"), and a complete lack of indentation.

Member Avatar for manutd
0
211
Member Avatar for kerribyrd

You may want to take out the non-standard functions and headers (getch(), etc).

Member Avatar for manutd
0
552
Member Avatar for mattyd

I also used Firefox for a while until IE7 came out. When I downloaded it, I was really impressed by the UI, the cleaness of it, and the functionality. I've now switched to IE, although I still will occasionaly use Firefox.

Member Avatar for GrimJack
0
372
Member Avatar for Teachingmyself
Member Avatar for mikki2
Member Avatar for happygeek
0
95
Member Avatar for purple rainx
Member Avatar for Chaky
0
695
Member Avatar for Wayne.
Member Avatar for jbennet
0
132
Member Avatar for joelw
Member Avatar for JJ___

While I somewhat support the idea of a game development board (a.k.a fielding OpenGL/DirectX q's), a game forum would be distracting.

Member Avatar for John A
0
786
Member Avatar for lavicool

Which is good, of course, in case some odd operating system decides that 74 is a good value to indicate success, and that 0 will be failure.

Member Avatar for ~s.o.s~
0
124
Member Avatar for WoBinator

If you like C or C++, look at the recommended books in that forum. Another compiler: Code::Blocks.

Member Avatar for WoBinator
0
202
Member Avatar for manutd

I'd like to have a blog here at DaniWeb, and I know how to dreate one. However, can I link my existing blog to my DaniWeb one?

Member Avatar for 'Stein
0
150
Member Avatar for John A

I like the idea. In my opinion the language problem is negligible, as most game coding is done in C++ (I said most, so don't kill me). Also, this topic could bring up many intelligent discussions, as game programming is a very advanced subject.

Member Avatar for Janiceps
0
495
Member Avatar for viv_mbbs

I'm sure there is an example either in the code snippets section or on Wikipedia.

Member Avatar for John A
0
92
Member Avatar for mattyd

Can't vote for more than one :sad: Add literature to my list, in addition to non-fiction.

Member Avatar for Narue
0
196
Member Avatar for blud
Member Avatar for lol_hacker101
0
146
Member Avatar for DMR
Member Avatar for WaltP
0
602
Member Avatar for Eko

Sharky, do you just go around supporting all new forums in [B]bold[/B]?

Member Avatar for WaltP
0
128
Member Avatar for purple rainx

Closing (opening?) your firewall does not mean that random creepy hackers will immediatly jump in. While it is not a good idea to leave it open (closed?) for long, it is fine to quickly open/close (close/open?) it.

Member Avatar for ~s.o.s~
0
99
Member Avatar for ramgates

[quote="ramgates"]c language where as the use of '^' is allowed in other simple languages.[/quote]Just one point: C is [I]not[/I] a simple language. Also, your poll makes no sense.

Member Avatar for Nick Evan
0
115
Member Avatar for barnyard0581

Please show some effort. We will not do your homework for you. Post your attempt for us to correct.

Member Avatar for barnyard0581
0
129
Member Avatar for newbie2c++

1) [code]number = get_number(); // subroutine will ask user for a number[/code]Not if it's not defined it won't ;) 2) [code]cin >> get_number[/code] a. Where is get_number defined? b. Missing semi-colon. 3) [code]cout << "The charge account number you entered is valid and found in element "[/code]Missing semi-colon. 4)[code] while …

Member Avatar for Ancient Dragon
0
181
Member Avatar for kc0arf
Member Avatar for The Dude
0
135
Member Avatar for Dani
Member Avatar for Dani

Quite a good idea. Unfortunately, it would be hard to get ALL compilers of ALL languages to comply.

Member Avatar for iamthwee
0
545
Member Avatar for manutd

As most of you know, the forum displays a pencil when you have posted in a thread. However, the code snippets section has no identification. I would like it if this feature was available, as I've commented in many snippets and it is hard to remember.

Member Avatar for manutd
0
128
Member Avatar for SamY

What!? You'd need to have billions of dollars! 1. Send up satelite. 2. Set up network. Honestly, you can't just hijack satelites. :rolleyes:

Member Avatar for mathematician
0
136
Member Avatar for Ancient Dragon

It's a hat trick in football: [IMG]http://www.solarnavigator.net/sport/sport_images/manchester_united_fc_team_group_photo_2005.jpg[/IMG]

Member Avatar for GreenDay2001
0
97
Member Avatar for JRM

It would be nearly imposible to reconstruct C code as all compilers will compile it slightly different. Also, the same compiler might do it differently twice.

Member Avatar for Salem
0
138
Member Avatar for ivy_sls06

Learn basic coding skills. Write out how you would do this on paper. How is it that humans figure out the largest number? Perhaps it has to do with [I]tests[/I]?

Member Avatar for WaltP
0
87
Member Avatar for Ancient Dragon

Personaly I individualy declare the std members I'm using (std::cout, std::vector, etc) for clarity in what I'm doing. I like including only what I'm using, rather than just dumping all of std into my program, as this defeats the purpose of using namespaces.

Member Avatar for manutd
0
261
Member Avatar for The Dude

Compare what we have to those living in developing countries. We have it better than most.

Member Avatar for WaltP
0
130
Member Avatar for sweety engineer
Member Avatar for rodzilla

[IMG]http://www.royal-health.com/postcards/pcards/happy-birthday.gif[/IMG][URL="http://images.google.com/images?q=tbn:vFHGDCJ4WBgDPM:http://www.de-club.net/lpl/image/download/big/Happy-Birthday.jpg"][/URL]

Member Avatar for jbennet
0
763
Member Avatar for stana
Member Avatar for lol_hacker101
0
98
Member Avatar for kurt_tna

Also, your main function needs a closing brace:[CODE] int main() { int n; double radius = 2; double width = radius / n; cout << "Enter the number of rectangles> "; cin >> n; [COLOR=red]}[/COLOR][/CODE]

Member Avatar for mathematician
0
120
Member Avatar for chubbywubba

Try [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048382857&id=1043284392"]this [/URL]page.

Member Avatar for vegaseat
0
71

The End.