5,676 Posted Topics

Member Avatar for linux
Member Avatar for jwenting
0
206
Member Avatar for ankit_the_hawk

[QUOTE=Lazaro Claiborn;328672][QUOTE=joeprogrammer;328666]And this is just my opinion, but: I don't really see why using numbers in place of characters makes the code any clearer.[/quote]Yeah.... well it is a good thing it is your opinion. :lol:[/quote]Well, it's not just [I]your[/I] opinion, [B]Joe[/B]. I am in complete agreement that [B][INLINECODE]if ((str[i] >= …

Member Avatar for lakshmi.1987
0
264
Member Avatar for Mushy-pea

[QUOTE=cscgal;314723]If you want a haskell section, submit a code snippet with 'haskell' as the syntax language and whallah ... a haskell section :)[/QUOTE] FYI, it's [url=http://m-w.com/dictionary/voila]voila[/url]! It's French ;) [url=http://m-w.com/cgi-bin/dictionary?va=wallah]Wallah[/url] isn't quite right...

Member Avatar for Rashakil Fol
0
86
Member Avatar for nottoshabi

[QUOTE=Infarction;327807]Here's a cleaner version: [code]int max(int a, int b) { if(a > b) return a; else return b; }[/code][/QUOTE] Except multiple returns from a single function is frowned upon. Best to keep your original function with the [I]return[/I] changes mentioned above, and with one other minor change: [code=c] if (x …

Member Avatar for nottoshabi
0
116
Member Avatar for Raven11

[QUOTE=Raven11;328749]So I take it the only reason for you responding to this thread was to increase your post count? I'm looking for a tutorial for code caving because I receive multiple requests on my website; however I do not have time to write one. I was hoping by going out …

Member Avatar for jbennet
0
178
Member Avatar for livingsword

[QUOTE=livingsword;328860]why does 'y' need to be < x/2 ??:-|[/quote] It doesn't, but the smallest prime number is 2, so the largest prime number for [I]n[/I] is [I]n/2[/I]. Anything [I]>n/2[/I] and [I]<n[/I] cannot be a factor of [I]n[/I], so why check above [I]n/2[/I]

Member Avatar for livingsword
0
413
Member Avatar for s.j.macleod

[QUOTE=s.j.macleod;328877]Hi there, I'm just getting back into c++ after a 2 year break.[/QUOTE] You are also hijacking a thread by someone else. Start a new thread with your question, and use CODE tags, not INLINECODE tags for a block of code.

Member Avatar for WaltP
0
89
Member Avatar for arfmal
Member Avatar for WaltP
0
116
Member Avatar for mattyd
Member Avatar for jeffferson

Read [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]this[/url] and [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_on_the_site]this[/url]

Member Avatar for WaltP
0
198
Member Avatar for kkx123

Not even going to try to read this code. [url=http://www.gidnetwork.com/b-38.html]Format[/url] it and repost, and use CODE tags.

Member Avatar for kkx123
-1
119
Member Avatar for boujibabe
Member Avatar for SHWOO

I believe the function you posted cannot be a method in [I]playerType[/I] because you can't loop through multiple instances of the of the players from a individual instance. You have to loop through the players and call the method on each one individually - which makes your method much simpler. …

Member Avatar for WaltP
0
176
Member Avatar for mattyd

[QUOTE=Infarction;325394]I'd like a setup like that, except turning my head that much might tire the neck muscles. [/QUOTE] Nyah, it strengthens the neck muscles. You'll be able to tow a semi by your neck after a year :mrgreen: [QUOTE=Infarction;325394]And it needs more ambient light so's I don't go blind.[/QUOTE] So …

Member Avatar for hbk619
0
86
Member Avatar for fulyaoner

The code you posted seems to work fine for me... I get[code] Please enter the amount of money you would like changed: 4.63 2 Twonie(s) 0 Jonnie(s) 0 Loonie(s) 2 Quarter(s) 1 Dimes 0 Nickel(s) 3 Penny(ies) thats: 4.00 2 Twonie(s) 0 Jonnie(s) 0 Loonie(s) .50 2 Quarter(s) .10 1 …

Member Avatar for fulyaoner
0
407
Member Avatar for Falconkicker

[QUOTE=Falconkicker;327882]Min and Max complete but still no luck for us on the total unfortunately[/QUOTE] Does this mean you can find the min and max of the numbers by searching the list? So what's so hard about adding the numbers together to get a total as you search for min/max?

Member Avatar for WaltP
0
274
Member Avatar for nottoshabi

And watch your [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized] titles[/url] and your CODE tags

Member Avatar for WaltP
0
162
Member Avatar for spacecowboy123
Member Avatar for ~s.o.s~
0
117
Member Avatar for seanx
Re: help

Please read this section of [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]the Forum Rules[/url]. I suppose you should probably read all the sections, actually. ;)

Member Avatar for seanx
0
91
Member Avatar for bakerybum

[QUOTE=bakerybum;309947]Hi All, I'm new to the forum....med programming experience. I've built a database application in VB4. It works fine in the VB environment. As soon as I convert it to an EXE and install it on my PC at work - it stops working. [/quote] You have to use the …

Member Avatar for Vic@Viev
0
301
Member Avatar for Dawmah

Please read this section of [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]the Forum Rules[/url]. I suppose you should probably read all the sections, actually. ;)

Member Avatar for WaltP
0
84
Member Avatar for stringgader

[QUOTE=stringgader;324782] does anybody know how to do this in c language? or to look for its formula? tnx alot,,[/QUOTE] Yes, many of us know how to do this. The question is: do you? Or can you figure it out? If you need help, asking specific questions and posting code you've …

Member Avatar for stringgader
0
296
Member Avatar for olaolu

[QUOTE=olaolu;309561]Hello! Help!!!!!!!!!!!!!!! How do I print in QBasic. I have tried opening it (the program code) in note/word pad but it comes out in funny characters. What can I do?? Any advice will be appreciated. Thanks.[/QUOTE] Look up the command to save your file in ASCII format (it's an option …

Member Avatar for linux
0
112
Member Avatar for flageolet

[QUOTE=ssharish2005;326247]And more using global variables is not a good idea, because of the above reasons. The value of the variable can be changes outside the function. Why use array only for using a single element in an array. You could have just declared a single int variable. ssharish2005[/QUOTE] Maybe because …

Member Avatar for WaltP
0
119
Member Avatar for daddeh

[QUOTE=daddeh;325478]hi am new member here... can anyone give the code of this..i've tried to figure out the code to finish this but i cant......pls help me..... [/quote] Read [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]this[/url] [QUOTE=daddeh;325478][code=c] int t, float l,i; printf("Enter amount of Loan: ") scanf("%f", & l); printf("Enter Interest:"); scanf("%f", & i); printf("Enter terms(month): "); …

Member Avatar for WaltP
0
102
Member Avatar for WaltP
Member Avatar for Brent.tc

[B]Brent[/B], two things. #1) Your thread titles: [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]read the rules[/url] #2) Your formatting: please pay attention to indentation -- [url=http://www.gidnetwork.com/b-38.html]see this[/url]

Member Avatar for Brent.tc
0
160
Member Avatar for Need_help!

[QUOTE=Need_help!;324057]Develop a [URL="http://www.daniweb.com/techtalkforums/thread311.html#"]program[/URL] that will determine whether a department-store customer has ex-ceeded the credit limit on a charge account. [/QUOTE]Kool. Go for it. [QUOTE=Need_help!;324057]If anyone could hook me up with the solution it would save me from going crazy[/QUOTE] Oh! You want [I]us[/I] to [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]write it for you[/url] because you …

Member Avatar for mjwest10
0
138
Member Avatar for fightfox06

Wow!!! First post and you used CODE tags! [I]Thank You[/I]. What is it you know that no other first-time poster can figure out? :mrgreen: [QUOTE=fightfox06;324525]ok need a bit of help.[/quote] Good, that's what we're here for... [QUOTE=fightfox06;324525]just tryin to figure a way to add scores and [I]that from there[/I], [/quote] …

Member Avatar for WaltP
0
1K
Member Avatar for evilsilver

[QUOTE=evilsilver;324528](sorry word wrap on makes sloppy looking code it doesn't really go on to the next line like that...........[/quote] Then stop [I]TAB[/I]bing so deeply. Use only 4 spaces, not 4 [I]TAB[/I]s [code] class monster{ public: monster(){} void initiate_enemy(int level,lvl_type ctype, int player_x, int player_y,char [50][50]); ~monster(void); void get_pos(int & xpos, …

Member Avatar for evilsilver
0
120
Member Avatar for sniper4you

[quote=sniper4you]I need everything about visual basic,[/quote] Everything? Can you be a little less vague? People that have been writing VB for years don't know [I]everything[/I] [quote=sniper4you]i mean code and what is used for?, [/quote] Writing programs, solving tasks and problems. Same as any other language. [quote=sniper4you]coz am beginner in that …

Member Avatar for mjwest10
0
151
Member Avatar for 12obb
Member Avatar for RaCheer

The parsing of the input is going to be the hardest thing. Initially, make the input simple. Accept 2 numbers, feet/inches or meters/centimeters. Then combine ft/in into inches, m/cm into centimeters. Then convert to the other system and split. Switching everything to the lowest value (in/cm) makes the use of …

Member Avatar for WaltP
0
3K
Member Avatar for endsamsara

Let's go back to the code in your first post -- in this thread. [code] #include<stdio.h> #include <stdlib.h> #include<conio.h> [I]//** kill this -- you shouldn't use it[/I] #include<string.h> #define MAXLEN 15 FILE *Entrada; FILE *Salida; void main() [I]//** main is NEVER a [B]void[/B], it's an [B]int[/B][/I] { int i,n; char …

Member Avatar for WaltP
0
166
Member Avatar for HostChart

For now, post questions in [B]Software Development:Legacy and Other Languages[/B]. If there's enough traffic, I'm sure something can be worked out.

Member Avatar for tins
0
411
Member Avatar for jbennet
Member Avatar for WaltP
0
530
Member Avatar for covington_c

[QUOTE=covington_c;324198][QUOTE=Ancient Dragon;324196]It would help if you would learn how to use tabs and spaces correctly so that your program is easier to read/understand. As it is few people, if anyone at all, will bother to read it. And what are lines 9 through 11 supposed to do? Must be a …

Member Avatar for WaltP
0
159
Member Avatar for youngone

[QUOTE=youngone;324188][code]if (month < 0 || month > 12 || day < 0 || day > 31 || year < 1900 ||| year >2099 )[/code] fixed! :cheesy:[/QUOTE] Somehow I doubt it... Look at the last ||

Member Avatar for WaltP
1
128
Member Avatar for RisTar

[QUOTE=RisTar;322957]Im trying to write my own function that does this with array pointers so there is no point to use an existing function .[/QUOTE] So? Looking at and [I]understanding[/I] an existing function is the way to learn how it's done. Then you can write your own using a similar (not …

Member Avatar for RisTar
0
105
Member Avatar for MiloTN

Try printing variables to the screen as key code positions to see if they contain the values you suspect. Like right after the read, display what was read.

Member Avatar for dwks
0
132
Member Avatar for livingsword

Except, depending on the code, [I]getchar()[/I] is not a direct replacement for [I]getche()[/I]. Additional coding may be necessary.

Member Avatar for dwks
0
141
Member Avatar for ajay kandari

From a previous post: 1) won't use code tags 2) won't format your code 3) won't tell us what the problem is, leaving us to figure it out 4) asking us to finish your program for you 5) continually using 'leet speak'

Member Avatar for Ancient Dragon
0
92
Member Avatar for ITgal

Nice assignment... [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]Please Read This[/url]

Member Avatar for WaltP
0
102
Member Avatar for endsamsara

Read the puzzle into a 2-dimensional array. Then you can easily look at each character in the array and you know the coordinates (upper left corner would be [INLINECODE]puzzle[0][0][/INLINECODE] Then look at the first letter of the work you are searching for. 1) Find that letter in the puzzle. 2) …

Member Avatar for endsamsara
0
123
Member Avatar for mjmythili
Member Avatar for WaltP
0
74
Member Avatar for livingsword

[QUOTE=livingsword;322852]i want to initialize an array(set all elements to 0) . The array is to be used by different functions which r defined outside the class. obviously i cant initialize it in the class. and if i do it in a constructor or main(), it isnt recognised by all the …

Member Avatar for ~s.o.s~
0
119
Member Avatar for kiethnt
Member Avatar for The Dude

Back to original topic, not writing cursive is informative in graphoanalysis. They should allow it... And returning to 'off-topic', I also no longer use cursive (stopped in about 7th or 8th grade) but 90+% of the people I run into still use it. It's far from dead...

Member Avatar for christina>you
0
80
Member Avatar for BleedingEdge

G) You criticise people who criticize people who.... wait a minute... Make that: G) You realize you are making a convoluted joke just because you have nothing better to do! :twisted: [edit] You also decide to placate both sides of the Atlantic by spelling a word both ways.... :p [/edit]

Member Avatar for christina>you
-1
87
Member Avatar for iaaan

Also, "[INLINECODE]while (!TextFile.eof())[/INLINECODE]" will cause your program to 'fail' at the end of file. [url=http://www.gidnetwork.com/b-58.html]Here's why[/url] [.eof() == feof()]

Member Avatar for iaaan
0
115

The End.