5,676 Posted Topics

Member Avatar for Matt Tacular

[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 …

Member Avatar for ~s.o.s~
0
92
Member Avatar for cusado

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.

Member Avatar for Ancient Dragon
0
132
Member Avatar for The Dude

I missed 4 & 5. Although I didn't think about 5 long enough. The rest were fairly obvious.

Member Avatar for WaltP
0
117
Member Avatar for Aia

[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 …

Member Avatar for Aia
0
276
Member Avatar for John A

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 …

Member Avatar for MidiMagic
0
366
Member Avatar for Rickenbacker360

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 …

Member Avatar for vegaseat
0
230
Member Avatar for Scope9000

Each of what? There's 118 lines here. Be specific. And use code tags, information is everywhere!!!

Member Avatar for WaltP
0
128
Member Avatar for smallpau1

[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 …

Member Avatar for Salem
0
122
Member Avatar for edy_ml
Member Avatar for Aia

[QUOTE=Ancient Dragon;311683]Heres some reputation your way for being so kind.:) :) :)[/QUOTE] Agreed.... Thanks

Member Avatar for ~s.o.s~
6
136
Member Avatar for The Dude
Member Avatar for Riv3n
0
182
Member Avatar for WaltP

I like the new format for each forum index. Compact is good! Thank you, Dani

Member Avatar for Dani
0
799
Member Avatar for sawant_deepu
Re: help

[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 …

Member Avatar for WaltP
0
83
Member Avatar for raydogg57

[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 + …

Member Avatar for ~s.o.s~
0
139
Member Avatar for Aia

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]

Member Avatar for Ravalon
0
175
Member Avatar for charmee

[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:

Member Avatar for kenjutsuka
0
106
Member Avatar for Scope9000

[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 …

Member Avatar for Scope9000
0
70
Member Avatar for tradfreak

[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 …

Member Avatar for fesago90
0
110
Member Avatar for hariza

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]" …

Member Avatar for hariza
0
5K
Member Avatar for Dave Sinkula

[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 …

Member Avatar for Dave Sinkula
0
620
Member Avatar for loslos

[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 …

Member Avatar for loslos
1
115
Member Avatar for Ancient Dragon

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.

Member Avatar for Dani
0
207
Member Avatar for Dani
Member Avatar for Rickenbacker360

[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: …

Member Avatar for Rickenbacker360
0
114
Member Avatar for RaCheer

[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 <= …

Member Avatar for ~s.o.s~
0
156
Member Avatar for MattEvans

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.

Member Avatar for WaltP
0
62
Member Avatar for adhetola

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... ;)

Member Avatar for WaltP
0
86
Member Avatar for cusado

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: …

Member Avatar for WaltP
0
141
Member Avatar for charmee

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... ;)

Member Avatar for WaltP
0
75
Member Avatar for cusado

[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 …

Member Avatar for Ravalon
0
189
Member Avatar for Firestone

[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 …

Member Avatar for Salem
0
134
Member Avatar for jbennet

[QUOTE=Chaky;309972]Apology accepted.[/QUOTE] You're too easy, [B]Chaky[/B] ;)

Member Avatar for WaltP
0
112
Member Avatar for jan1024188

[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 …

Member Avatar for Ravalon
0
333
Member Avatar for tech291083

[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 …

Member Avatar for tech291083
0
132
Member Avatar for hariza

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'

Member Avatar for John A
0
143
Member Avatar for Havokie

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 …

Member Avatar for Havokie
0
212
Member Avatar for Extremist

[QUOTE=Dave Sinkula;299911]United States[/QUOTE] Middle of North Dakota? I thought you were the same place as me. Did you move?

Member Avatar for DemonicGoldfish
0
162
Member Avatar for pointers

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

Member Avatar for WaltP
0
200
Member Avatar for KevinADC

[QUOTE=jbennet;307307]wierd.......[/QUOTE] Yeah weird. Where do you guys get the money for so many computers??? :confused: :mrgreen:

Member Avatar for Dani
0
585
Member Avatar for melaneva
Member Avatar for WaltP
-1
79
Member Avatar for shAq

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]

Member Avatar for WaltP
0
113
Member Avatar for coolman2006
Re: Lisp

[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.

Member Avatar for ~s.o.s~
0
129
Member Avatar for flageolet

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. …

Member Avatar for Salem
0
154
Member Avatar for ndicuh
Member Avatar for ameeroman

[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]

Member Avatar for WaltP
0
345
Member Avatar for mrmanmajor

[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:

Member Avatar for WaltP
0
172
Member Avatar for Marks256

[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 …

Member Avatar for WaltP
0
146
Member Avatar for flageolet

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]?

Member Avatar for flageolet
0
220
Member Avatar for ankit_the_hawk

[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 …

Member Avatar for ankit_the_hawk
0
116
Member Avatar for Geo1

[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 …

Member Avatar for WaltP
0
131

The End.