5,676 Posted Topics
Re: [QUOTE=iamthwee;313074]Nah store them as chars, I always do. ints are unsafe. If the user doesn't type in an int where the program expects an int, it crashes, whereas with chars you can't go wrong, if it's bad, you just discard the input and tell them to try again. Believe me … | |
Re: Such as? Do you have a question? Or are we supposed to figure out what you can't do psychically? Be specific, ask questions. [I]What[/I] do you want help with. | |
Re: I missed 4 & 5. Although I didn't think about 5 long enough. The rest were fairly obvious. | |
Re: [QUOTE=Aia;312261]I think one of the reasons authors of books about programming in C make heavily use of the function scanf() is that is readily available and easy to use for the new learner.[/quote] But it's so dang unsafe and persnickety! :confused: [QUOTE=Aia;312261]That's all good and dandy, however when writers of … | |
Re: FireFox1.5 into VEdit -- line numbers. FireFox1.5 into Notepad -- line numbers Firefox1.5 into Wordpad -- line numbers IE7 into VEdit -- one line, no formatting IE7 into Notepad -- one line, no formatting IE7 into Wordpad -- no formatting Opera9 -- seems to work. I see no reason for … | |
Re: First of all, what did you do to get the code to print with colors like you did? And has anyone explained code formatting? Indentation is necessary to understand code. The problem is you don't seem to know how to test for prime numbers. You actually have to test the … | |
Re: Each of what? There's 118 lines here. Be specific. And use code tags, information is everywhere!!! | |
Re: [QUOTE=smallpau1;311799]Think its self explanatory on what its supposed to do, ....[/quote]It's only self explanatory if it's commented, therefore it's not. We have to figure it out... ;) [QUOTE=smallpau1;311799]but i dont know how to return to main, because its being called from the function by the time it reaches the return … | |
| |
Re: [QUOTE=Ancient Dragon;311683]Heres some reputation your way for being so kind.:) :) :)[/QUOTE] Agreed.... Thanks | |
I like the new format for each forum index. Compact is good! Thank you, Dani | |
Re: [QUOTE=sawant_deepu;311525][B]i am doing project on company store management.i have created a login form which asks for userid and password.this userid & paswword will be stored in database in oracle.so when the user types his id and password and clicks ok button it will first check whether the id corresponds to … | |
Re: [QUOTE=raydogg57;310382]1) ABKLJFDLKJLKKDFJ++++++ajkadsl;fkjld;akjk=====daskflj342343 1a) ABKLJFDLKJLKKDFJ ++++++ ajkadsl ; fkjld ; akjk ===== daskflj342343 Explanation: program groups letters and characters together, but moves to next line when a symbol is reached.[/quote] Look at [I]isalpha()[/I], [I]isalnum()[/I], and [I]isdigit()[/I] functions [QUOTE=raydogg57;310382]2) It also must recognize whitespace: A + B = C 2a) A + … | |
Re: Another thing you need to consider is [INLINECODE]fflush(stdin); /* workes with this compiler */[/INLINECODE] doesn't work with most. Don't get into a habit that will be hard to break later. It may work now, [url=http://www.gidnetwork.com/b-57.html]but it is wrong[/url] | |
Re: [QUOTE=charmee;311457]wait, i'm out of time.. i'll finish this soonnnn,,, if you want to finish this, please do.. Godbless[/QUOTE] Sure, I'll get right on it... :rolleyes: | |
Re: [QUOTE=Scope9000;310618]Hi guys just wondering can any1 help i have a project for collage and vb6 is really not my thing yet Its my firdt year in collage and im doing computer maintenance and repairs Vb6 is apart of it and to me it doesn't make any sence to me can … | |
Re: [QUOTE=tradfreak;310566]hello :-) I'm Sean and currently a 3rd year BS Business Admin. Major in Management Information Technology student... due to my limited programming skill... [/QUOTE] Because of limited programming skill, and I assume (dangerous I know) you don't wish to become a programmer, I'd go with [url=http://msdn.microsoft.com/vstudio/express/vb/]Visual Basic[/url] or, if … | |
Re: I agree with [B]Joe[/B]. You have a buffer. There is a string in it. You can't remove a character from the buffer -- it's part of the buffer. All you can do is overwrite a character. And in this case, overwriting the terminator may simply change "[I]This is a test[/I]" … | |
Re: [QUOTE=Dave Sinkula;308757]Elseweb I remember the site considering such things and I think they chose to ditch a horizontal scroller and let the width grow with the user' browser preference. ... The H&V scrollers don't do much for me, I guess. To me they make the code a little more difficult … | |
Re: [QUOTE=Ravalon;310714]Nobody said to ignore it, just that there may be problems if you use it that way. ;) [/QUOTE] Exactly. No one said [I]eof()[/I] was bad. They just said [INLINECODE]while (!xx.eof())[/INLINECODE] is the wrong way to use it. [I]That[/I] form won't work in most cases. You used it properly. The … | |
Re: The way to remove those color tags is to highlight the post (Ctrl-A) and click the weird [B]A[/B] in the upper left corner of the edit box. | |
Re: [QUOTE=Rickenbacker360;310758]ohhh, I see, lol. That was pretty easy. Thanks for the help. One other question. I'm not sure I really understand a while loop. [CODE] #include <iostream> using namespace std; int main() { float g=0,m=0,a=0; while(g>-1) { cout<<"Enter the gallons used (-1 to end): "<<endl; cin>>g; cout<<"Enter the miles driven: … | |
Re: [QUOTE=RaCheer;310502]...although it looks messy to me. [/quote] It sure is :) [QUOTE=RaCheer;310502]I really want to learn![/quote] Good. Then take [B]Joe[/B]'s advice and learn formatting. After [I]every[/I] { indent 4 spaces. Before [I]every[/I] } unindent 4 spaces. That would make this section look like: [code=c] if( score >=A_GRADE && score <= … | |
Re: I think it's a throwback from the old typesetting days. when the ' and " were slanted slightly, or they looked like a dot with a tail like in books. | |
Re: Also, [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]read the 5th paragraph here[/url] before your next thread... ;) | |
Re: Why are you starting a new thread to ask the same question? The old thread was fine. And using the PREVIEW button would show you that coloring code doesn't work Breaking out of all loops from an inner loop is simply placing [I]if[/I] statements at the end of the loops: … | |
Re: And while you're at it, [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]read the 5th paragraph here[/url] before your next thread... ;) | |
Re: [QUOTE=cusado;309797]hm i changed the code and it complies now, but when i try to inter a number, an error appears[/QUOTE] You must give us details. "An error" can be any of 300+ things. Explain fully 1) what is wrong 2) where the problem is 3) what it should do instead … | |
Re: [QUOTE=Firestone;310044]I wrote this code to produce a fibonacci seqeunce to a cretain number. However, when you get to a certain number, it starts producing negative numbers, and I don't know what to do.[/QUOTE] Can you be slightly less vague than "[I]a certain number[/I]"? It helps to give us all the … | |
Re: [QUOTE=Chaky;309972]Apology accepted.[/QUOTE] You're too easy, [B]Chaky[/B] ;) | |
Re: [QUOTE=jwenting;309904]VB isn't really a programming language at all, it's a rapid prototyping tool for user interfaces. Anyone using it for more than that is asking for trouble.[/QUOTE] I definitely disagree with you. It's as much a language as any high-level language. Many robust systems can be created with ease. Now … | |
Re: [QUOTE=tech291083;307505]I have been a Daniweb memeber for the last 3-4 months. I am now learning C++ on Linux on my own using the tutorials available on this very good site. But I always struggle a bit and sometimes a lot when I am looking for C++ related threads and discussions/code … | |
Re: Your input is storing the ENTER you typed at the end of the word in the variable. You just need to remove it immediately after the input line. Use [I]strlen()[/I] to help find the end of the value and replace the '\n' with '\0' | |
Re: OK, let's look at your code (formatted)[code=vb] Private Sub cmdCalc_Click() Rem clear previous entries txtOutput.Text = "" Rem generate new numbers each time Randomize Timer '' Don't need to use Timer For iter = 1 To 9 num = Int(Rnd * 9 + 1) '' your code '' Rnd returns … | |
Re: [QUOTE=Dave Sinkula;299911]United States[/QUOTE] Middle of North Dakota? I thought you were the same place as me. Did you move? | |
Re: U tht r typng lk ths need 2 [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_clean]read this[/url] now! TY | |
Re: [QUOTE=jbennet;307307]wierd.......[/QUOTE] Yeah weird. Where do you guys get the money for so many computers??? :confused: :mrgreen: | |
Re: Since we don't know what you are doing know, what can we suggest? ;) | |
![]() | Re: It isn't. There is no text in an image. It's just part of the image. You can try an OCR (optical character reader) program that can read an image (non-compressed, usually). The best one I found is from [url]http://www.transym.com/index.html[/url] |
Re: [QUOTE=iamthwee;305870]Hi nick, good to see your enthusiasm. But please refrain from responding to threads that are clearly dead.[/QUOTE] Why? It seems like a perfectly good question that someone who knows LISP can answer. It the resurrections that have no questions that are useless bumps. | |
Re: I'm confused. You claim [QUOTE=flageolet;308041]this the full code, which works like a charm... [/quote]which to me means it works without error. Then the sentence continues [QUOTE=flageolet;308041]except for the error when i close the program. (a normal 'send report' / 'do not send report' error).[/quote]which seems to mean is doesn't work. … | |
Re: [QUOTE=ameeroman;308005] [B][U][COLOR=blue]Submission Requirements: [/COLOR][/U][/B] [B][COLOR=#000000] [/COLOR][/B] [B][COLOR=#000000]- Full source code listing. [/COLOR][/B] [B][COLOR=#000000]- User Manual as described. [/COLOR][/B] [B][COLOR=#000000]- Disk (floppy or CD) containing electronic version of user Manual and source code[/COLOR][/B] [B][COLOR=#000000][/COLOR][/B] [B][COLOR=#000000][/COLOR][/B][/QUOTE] Our submission requirements: [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]Number 1[/url] [url=http://www.daniweb.com/techtalkforums/announcement8-3.html]Number 2[/url] | |
Re: [QUOTE=jwenting;307360]In my experience an excellent analytical mind and an ability to go without sleep on a diet of just a heavily cafeinated drink are far more important ...[/QUOTE] Don't forget the Twinkies! :mrgreen: | |
Re: [QUOTE=Marks256;307267]Does anyone have a help file with the Windows API stuff in it? I have searched, but have not found any (atleast ones with working links...)[/QUOTE] [QUOTE=Marks256;307529]I am not a huge fan of the MSDN site... It is FREAKISHLY slow. I was actually thinking of an offline option...[/QUOTE] So buy … | |
Re: Yeah, what [B]Ravalon[/B] said. You can check out [url=http://www.gidnetwork.com/b-59.html]this series[/url] for deeper understanding of why we say "stop using [INLINECODE]scanf()[/INLINECODE]" Also, there is absolutely nothing C++ about what you posted so why the [INLINECODE]using namespace std[/INLINECODE]? | |
Re: [QUOTE=ankit_the_hawk;307365]After reading the various methods of clearing the screen, I guess there is not a single method which extends portability to the language:eek: Or is there? So I think there is no point in trying to use alternate methods to clear the screen when its always going to be paltform … | |
Re: [QUOTE=Geo1;307135]Hi there I was wondering how to get visaul basic to bring up another form when a button is clicked. what I am looking to do is have a database (SQL 2005) that uses two tables but in the same database but have each table on a different form. but … |
The End.