3,892 Posted Topics
Re: Heh, no problem my friend, it feels good to help out someone who is ready to learn new things and put in everything they have got. Such a nice thing to say, reps to you. Btw, how does it feel to read "Aia is on a distinguished road" on your … | |
Re: If your project is really on Securing Wireless networks you can try out Java as your choice of language. [URL="http://www-128.ibm.com/developerworks/java/library/wi-secj2me.html"]Read this.[/URL] | |
Re: [quote=cscgal;310606]Wow, what a relief! I was so afraid I would get lots of criticism about the missing forum descriptions and last thread info. Thank you for the positive comments and encouragement![/quote] Not so fast..... (there has to be a villian in the movie you know...) With this new format I … | |
Re: A very simple algorithm for your needs: • Declare variables to hold the prime limit (the number till you want the prime numbers to be generated) and a flag which indicates whether a prime number was found or not (a boolean variable). • Since while checking for primes we normally … | |
Re: You need to put single quotes around 0 and 9 for them to be treated as characters... [CODE=cplusplus]bool Characters_Allowed_Matrix(char a) { bool b; if ((a == ' ') || (a >= '0' && a <= '9') || (a == ';')) { b = true; return b; } else { b … | |
Re: [quote=Aia;310638]when you say const char strings are you refering to an array of chars?[/quote] Yes something of that sort, only thing to be taken care is that, the string literal should be constant. [code=c] const char name[] = "Daniweb" ;[/code] | |
Re: [quote=joeprogrammer;298543]Of course, strlen() always returns the length of the string including the null charecter, but if you subtract 1 you get the actual string length.[/quote] Well now thats news to me, since I always thought it returned the number of characters which comprised the string, excluding the null character...;) | |
Re: Yes -- not to mention the copy and pasting of code from my IDE to the WYSIWYG window results in scroll bars even when the 80 column limit is respected. It would be nice if the changes were done, though have managed it till now, so wouldn't be a problem … | |
Re: [quote=Lerner;310599]You should avoid using the return value of eof() as the controlling condition for a loop. There are two reasons I know of to want to do this. First, using the return value of eof() to terminate the loop is likely to cause a double counting of the last char … | |
Re: > There's not really much we can do about it, though. Actually there is a way. The moderators have to just replace the code tags and it should turn out to be fine. If you will again look at the first post of the thread under consideration, it was edited … | |
Re: Post your attempt and maybe then we would be able to help you out... | |
Re: [quote=Infarction;309757]Holy thread necromancy, Batman![/quote] Aww, you are just killing the RPG spirit... Holy thread Necromancy, Diablo !!! :cheesy: | |
Re: Append the statement using namespace std; after the inclusion of the headers and you should be fine. This is because the C++ implementation wraps all the standard functions in a namespace std, so you have to make the compiler aware of that by using the "using namespace std;" statement. Also … | |
Re: Hey there buddy, welcome to Daniweb. :D You are always welcome here... ;) | |
Re: [quote=RaCheer;310502]Are there any shortcuts I could have taken? I really want to learn![/quote]Some points: • Instead of representing GPA's with seperate const variables which clutter the code, you could have used [search]enum[/search] or enumerations which group the GPA's logically in a single unit. Something like: [code=c] enum GPA { F, … | |
Re: [quote=mattyd;310000]I am interested in understanding recursivity; I have not knowingly used this much in my programming. I am reviewing certain areas of OOP in order to learn more and better about areas that I may not be[I] fully[/I] understood yet. Recursivity is one of these areas. I understand the definition … | |
Re: Something like [URL="http://www.daniweb.com/code/coder46588.html"]this ?[/URL] | |
Re: Hey there buddy, welcome to Daniweb :D And a nice spot you have got there, a nice lake view wow... ;) | |
Re: Categorization is for the weak minded people who need a reason to learn a lanaguage. Programming is an art and language are the tools for artists. Of course if given a problem domain and the requirements, this question would have carried *some* validity but as such it stands its really … | |
Re: Hello. [quote=niek_e;307887]I don't think this is a good idea. The C/C++ forum is visited by a lot of newbies which don't have a clue that there's a difference between C and C++. So what you'll get is a lot of extra work for the moderators and a lot of 'moved … | |
Re: [quote=darkeinjel04;256060]Hi im new here...i am only an high school student, i hav a problem on my this output...im using turbo c, can u help me with ths?? i cant get it...pls help help me[/quote] Please post your code so we can what the problem is and point it out to … | |
Re: Better ask this question at the [URL="http://www.qtforum.org/cat/45/QtForumorg.html"]QT forums[/URL], they would be able to help you better. | |
Re: The cause of the problem has already being mentioned by Walter: [QUOTE=Walt]Your input is storing the ENTER or the newline character you typed at the end of the word in the variable. You just need to remove the newline at the end . Use [I]strlen()[/I] to help find the end … | |
Re: There really is no way to automatically convert C++ -> Java or Java -> C++. They are too different in design for a conversion to be anything but hand-coded. | |
Re: Maybe [URL="http://www.codeproject.com/cpp/complex_declarations.asp"]this[/URL] will help you out. | |
Re: Given your problem domain and your language exposure, Java would be better than C++. It has lot of inbuilt and handy classes which shift the task of implementing the trivial functionalities from you. An inbuilt GUI support ( Swing and AWT ) would really simplify matters specially when GUI in … | |
Re: [quote=nick;308893]Numbers like 1 and 19884 are int, numbers like 3[COLOR=Red],[/COLOR]1415 and 0[COLOR=Red],[/COLOR]0134 are float.[/quote] That would be 3[COLOR=Red].[/COLOR]1415 and 0[COLOR=Red].[/COLOR]01345 -- it was probably a typo by Nick. [quote]You should read up on a lot of C, because if you don't know these basic things, Classes and OOP will be … | |
![]() | Re: [quote=joeprogrammer;309231]Not that the idea is bad, but maybe there's a nicer way of doing it?[/quote] That point has been already brought up by me, but Dani thinks that if Google and Amazon can do it, why can't we.. ? ;) |
Re: Hello Malcolm, welcome to Daniweb. :D I have requested your thread to be moved to the appropriate forum, so that you can get the maximum help. And don't worry, we do have a lot of members with 50+ of age -- its never too late to start something.... ;) | |
Re: This is because [INLINECODE]erase[/INLINECODE] call expects both the parameters to be iterators while in your first line you have called the [INLINECODE]erase[/INLINECODE] function with an integer argument. Make appropriate change to the second argument of your first line to an iterator and it should be fine. *Hint: Use the same … | |
Re: Consider putting a [inlinecode]continue[/inlinecode] statement after the user enters a non digit character since there is no point in peforming undue looping when you know you haven't stored the character anyways... And btw, consider improving on your code indentation, would really make the code more readable. Try not putting the … | |
Re: I guess Miss Dani once said the IntelliTXT ads were only for the reputed sites like Intel, Microsoft etc. But I think things are changing rather fast here... One thing we should not be responsible for while advertising is to misguide people. Miscrosoft, Intel are okay since they don't atleast … | |
Re: Though other people might have different views on this, here is what I personally think : [quote=wait4the1;308559] * I can do system programming with * I can build a compiler with * I can use to fool around with the Linux Kernel * I can program my own Linux distro … | |
Re: "You must be missing one of the lib files...." "I hope you aren't using *nix" "Have you tried banging the sides of your monitor." "I knew Pascal wasn't a good choice for this product..." :mrgreen: | |
Re: But since there is a definate pattern here (something is getting replaced or subsituted by something) it always is easy to crack to Substitution or Caesar Cipher. So it won't matter much no matter how long strings you use since there will always be a simple formula which the hacker … | |
Re: [quote=iamthwee;307430]I bet you that will peeve off a lot of regular members. [/quote] No, it won't, as long as you have something useful to contribute. | |
Re: It would have been better if you would have just attached the txt file along with the post. It would save us the trouble of running one extra program esp so when the program is in a foreign langauge.. ;) | |
Re: Don't you think its rather vague description....Btw does your project work perfectly fine when you run it ? Is the problem only with the .exe creation or of the program as a whole. Normally such behaviour happnes when a code snippet in your program goes in an infinte loop. Are … | |
| |
Re: If you are ready to put in this much effort, then why not learn an API which is portable and which can be programmed in a multitude of languages. Something like [URL="http://www.wxwidgets.org/"]wxWidgets[/URL] and the likes. | |
Re: Welcome aboard my friend, welcome to Daniweb. :D And its okay if you have bad English, its not my first langauge either.. ;) | |
Re: [quote=stan yost;296953]How can I run some code when I click on an arrow of a data control?[/quote] Drag the ADODC control onto the form (by importing the component Microsoft ADO Data Control ActiveX Control using Project -> Coponents), double click on it. Write all the code you want in its … | |
Re: Seeing that you are ready to take in real knowledge and are inquisitive about it, I would recommend you read [URL="http://www.gidnetwork.com/b-61.html"]this[/URL]. Posted by one of our moderators WaltP. | |
Re: Hey there buddy, welcome to Daniweb. :D Looking for more answers from you than question... ;) | |
Re: Also read [URL="http://www.fredosaurus.com/notes-cpp/io/eof.html"]this[/URL]. | |
Re: Hey there buddy, welcome to Daniweb.. :D And btw, don't worry, you will find your way around here -- it takes time to adjust to new things. Head over to the C# section and ask your queries there. ;) | |
Re: How about posting some code.. ? I mean the running code so that we can try it out. |
The End.