5,676 Posted Topics
Re: I actually have Turbo 1.1 on my machine. No problems... | |
Re: [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] >= … | |
Re: [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... | |
Re: [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 … | |
Re: [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 … | |
Re: [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] | |
Re: [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. | |
Re: Look into the [INLINECODE]strstr()[/INLINECODE] function. | |
Re: 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] | |
Re: 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. | |
Re: OK. I'll bet sourceforge.net has something you can use. | |
Re: 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. … | |
Re: [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 … | |
Re: 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 … | |
Re: [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? | |
Re: And watch your [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized] titles[/url] and your CODE tags | |
Re: Yep, it looks perfect to me -- at least what you posted is perfect. | |
Re: 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. ;) | |
Re: [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 … | |
Re: 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. ;) | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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): "); … | |
| |
Re: [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] | |
Re: [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 … | |
Re: 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] … | |
Re: [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, … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
| |
Re: [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 … | |
Re: [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 || | |
Re: [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 … | |
Re: 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. | |
Re: Except, depending on the code, [I]getchar()[/I] is not a direct replacement for [I]getche()[/I]. Additional coding may be necessary. | |
Re: 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' | |
Re: Nice assignment... [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]Please Read This[/url] | |
Re: 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) … | |
Re: Call [INLINECODE]time()[/INLINECODE] and it's helper functions. Look them up. | |
Re: [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 … | |
Re: 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... | |
Re: 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] | |
Re: 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()] |
The End.