244 Posted Topics

Member Avatar for happygeek
Member Avatar for Alekjenderbo
7
584
Member Avatar for jingda

The day they interrupt my mortgage payments then i'll give a sh*t. Until then who cares. If they're out there i hope they have good spaceship insurance (that's got to be a risky game).

Member Avatar for predator78
0
252
Member Avatar for jimJohnson

simple gcd [CODE]int g_c_d(int a,int b) { if(b==0){return a;} else{return g_c_d(b,a%b);} }[/CODE]

Member Avatar for jimJohnson
0
355
Member Avatar for Ancient Dragon
Member Avatar for e-papa
1
331
Member Avatar for royng
Member Avatar for HiHe
0
566
Member Avatar for jingda
Member Avatar for ChengYi
0
138
Member Avatar for diafol

[QUOTE]Note, I don't take ratings seriously (especially on DW)[/QUOTE] I think you do. Go on admit it, you'll feel better about yourself.:)

Member Avatar for Dani
1
370
Member Avatar for frogboy77

I have got to get one of [URL="http://www.bbc.co.uk/news/technology-12997245"]these[/URL].:icon_cool:

Member Avatar for e-papa
1
174
Member Avatar for dalk8978

[URL="http://www.daniweb.com/software-development/c/118"]http://www.daniweb.com/software-development/c/118[/URL]

Member Avatar for frogboy77
0
161
Member Avatar for Banf
Member Avatar for lukemuller

I recommend running some tests to find out where the code is going wrong (some simple cout commands may suffice), then post the appropriate piece of code that is causing the problem. There are some here who may go through all those lines of code to find your error, but …

Member Avatar for lukemuller
0
2K
Member Avatar for 2himioweme
Member Avatar for PaulBird
Member Avatar for caltech
Member Avatar for VernonDozier
-7
249
Member Avatar for Lokril
Member Avatar for Gus Garza
Member Avatar for The Dude
Member Avatar for frogboy77

Is there a way of telling from a post (including my own) if someone just isn't cut out for programming? For example a really simple piece of logic not being understood (as opposed to a lack of knowledge of the language).

Member Avatar for jonsca
0
123
Member Avatar for ~s.o.s~
Member Avatar for frogboy77

1. When posting a link, how do i make my link look like [COLOR="Red"]here[/COLOR] instead of [url]http://blablabla?[/url] 2. When quoting someone else, how do i let people know who i'm quoting? 3. How do i create a link like this?[URL="http://www.daniweb.com/community-center/geeks-lounge/threads/341464"]http://www.daniweb.com/community-center/geeks-lounge/threads/341464[/URL]

Member Avatar for sania85
0
845
Member Avatar for JetsFan

Give that you quit something because it wasn't easy, then it probably doesn't matter what you choose.

Member Avatar for zekish
0
204
Member Avatar for Pamalicious

[URL="http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming"]Go learn.[/URL]

Member Avatar for frogboy77
0
80
Member Avatar for negneg

1. use code tags 2. [QUOTE]This is my first time writting aprogram[/QUOTE] what happened to the hello world one? Either this is your first program(doubtful) or it's not your's. If it's the latter then i doubt you'll get much help here. Tip: try being honest and specific (works a treat).

Member Avatar for frogboy77
0
179
Member Avatar for frogboy77

It may not turn out as you [URL="http://www.dailyrecord.co.uk/news/weird-news/2011/03/22/blundering-surgeons-cut-off-man-s-testicles-86908-23007198/"]expected[/URL].

Member Avatar for diafol
0
203
Member Avatar for sneaker

Is that not the same everywhere? Swapping one power hungry idiot for another.

Member Avatar for Ancient Dragon
0
179
Member Avatar for mrnutty

[QUOTE]I'm good thanks. How are you? [/QUOTE] [QUOTE]No, just tired of life. Ready for infinite happiness. [/QUOTE] perhaps not so good.

Member Avatar for susheelsundar
2
284
Member Avatar for UltimateKnight

really? first post each and a link to a site? (i may be getting cynical in my old age, please excuse me.)

Member Avatar for Tamlyn
0
302
Member Avatar for flyboy567

A really bad solution (i think) would be create 2 vectors push all ints i.e if they are between 2 ASCII values into 1 then all chars, same again, into another, sort them, then use the 2 vectors to repopulate the array. I think it would work but i imagine …

Member Avatar for mike_2000_17
0
158
Member Avatar for figment56

or [CODE]#include <iostream> using namespace std; int readmiles( ); double calcKM(int numMiles); int main( ) // calls readmiles & calcKM { int numMiles = 0; double distKilo = 0.0; numMiles = readmiles( ); calcKM(numMiles); cout << "Total miles in kilometers is : " << distKilo << endl; system("pause"); return 0; …

Member Avatar for figment56
0
253
Member Avatar for sethwb
Member Avatar for salty11

An alternative might be to read them in main into a vector and pass the address of the vector to the functions as a second argument.

Member Avatar for frogboy77
0
314
Member Avatar for salty11

You have a global variable N which you give no value, then you pass this to [B]perfect[/B] with no declared value, then inside perfect you ask the user for a value of N. This can't be good. Also why call isfactor from main when it's being called from perfect. I'm …

Member Avatar for PathikRaval
0
337
Member Avatar for pharoah85
Member Avatar for pharoah85
0
217
Member Avatar for fsamu2001

[CODE]for (int index = 0; index > size ; index++)[/CODE] This could be your issue. Please use code tags, you will get more help. For this to run size would have to have a negative value and as you increment index it will always be larger, so infinite loop.

Member Avatar for thekashyap
0
145
Member Avatar for caut_baia

As i have no idea what IRC is, but it has piqued my interest, could anyone explain it to me and give a hint as to why i might be interested in using it? Genuine question.

Member Avatar for royng
3
236
Member Avatar for diafol

I think Italy and Scotland need to be switched. I would love to be more upbeat but hey im a realist.

Member Avatar for royng
0
731
Member Avatar for royng

That would still be 1 member. I think the point is that the main page displays how many members there are, yet these members are not necessarily active.

Member Avatar for royng
0
167
Member Avatar for frogboy77

As a beginner i am very thankful for the advice given by people who clearly know far more about the subject than myself. I have answered some threads that i feel i understand (sometimes), but i regularly see "experts" answering the most basic of questions (including mine). Are you people …

Member Avatar for jon.kiparsky
0
269
Member Avatar for errorlog2

[QUOTE]but what do i need to learn first to master all language im dedicated to study hard and master the languages[/QUOTE] everything. I know there are people out there who use multiple languages (almost all programmers i believe), but i have not came across anyone who has mastered all languages.

Member Avatar for ntrncx
0
191
Member Avatar for jon.kiparsky
Member Avatar for jwenting
2
269
Member Avatar for opawix

You could use another variable eg y=2, and make x+=y, then increment y in the loop. Although this wouldn't work for the first number, an extra cout before the loop would do the trick though. Be aware this is probably a very unelegant way of doing it.

Member Avatar for opawix
0
92
Member Avatar for scarlettmoon
Member Avatar for newwbee

I believe he is suggesting compiling the program, checking the output and then now that you know the answers figuring out how they came to be so. If i'm wrong jonsca please correct me (don't want to put words in your mouth).:)

Member Avatar for jonsca
0
195
Member Avatar for frogboy77

I managed ~120 in c++(no big-nums in c++, made it a bit harder) with no external libraries and a "very" limited knowledge of programming. Have hit the wall now (mostly the math i think). Has anyone else given this a go and how did they do? This is not supposed …

Member Avatar for frogboy77
0
159
Member Avatar for cwarn23

[QUOTE]Perhaps 2012 is when climates change and species who don't adapt will not survive including humans.[/QUOTE] Does any species adapt better than us? We have colonised almost every part of the planet, every enviroment from tundra to desert.

Member Avatar for GrimJack
2
358
Member Avatar for royng

I met the monster once. If you want to know what he said to me, go [URL="http://www.visitlochness.com/"]here[/URL]. Please bring lots of good foreign money.:)

Member Avatar for royng
0
139
Member Avatar for hansoppa
Member Avatar for rubberman
0
111
Member Avatar for g_u_e_s_t

[QUOTE=arkoenig;1505496]It's just an unnecessarily clever one.[/QUOTE] Then what was the point? ([B]unnecessary[/B])

Member Avatar for rubberman
-1
482
Member Avatar for plang007

put count in main and everytime you call the function add 1 then have that number passed to howMany(int a) (howMany should take an int) like howMany(count).

Member Avatar for plang007
0
340
Member Avatar for ronthedon

The End.