- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 11
- Posts with Upvotes
- 9
- Upvoting Members
- 11
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: [QUOTE]If i have a file like the one below what would be the best/easiest way to sort the words in alphabetical order.[/QUOTE] Whatever way the system/compiler offers. :) If you just need the file sorted beforehand, I don't know of an OS that doesn't give you an easy to use … | |
Re: [QUOTE]I just dont really understand yet how it can be implemented in a game concept.[/QUOTE] I'm gonna play the part of a naysayer if ya don't mind. ;) You say you understand how OO works and all the concepts and such, right? If that's really how it is then not … | |
Re: You've got my respect for being able to understand those nested switches! :) I would have just used array indexing. Anyway, the problem is that you break the number down in reverse. To get it back you need to loop in reverse, from back to front. [code] #include <stdio.h> int … | |
Re: kk, if this is C then you use a test against '\0' to look for the end and do sumthin' like this. [code] int i; for (i = 0; str[i] != '\0'; i++) str[i] = (char)tolower(str[i]); [/code] One of the few things a cutie like me is anal about is … | |
Re: [QUOTE]Is that possible?[/QUOTE] It's possible, but very hard and the result won't be good at all. To decompile you need to disassemble into assembly and translate the assembly into C. If you've seen a disassembly, even a good one, you'll know how useless a translation into C would be. There's … | |
Re: The easiest way would prolly be to use a WebBrowser object. :) Otherwise you're looking at a custom control. | |
Re: Uh, you didn't open the connection. [code] Dim adapter As OleDbDataAdapter Dim Connection As OleDbConnection searchResults = New DataSet Connection = New OleDbConnection(connectionString) [COLOR="Blue"]Connection.Open();[/COLOR] adapter = New OleDbDataAdapter(searchText, Connection) adapter.Fill(searchResults) Connection.Close() [/code] That should have thrown an exception. Are you catching and ignoring exceptions in a try block somewhere higher … | |
Re: [QUOTE]is it worth it to continue learning it while Windows Vista will be released in a short while and the .NET technology becomes more and more popular ?[/QUOTE] Absolutely! .NET is great and all, but eventually you need to drop down to Win32 to get somethin' done. :) Remember that … | |
Re: [QUOTE]so if anyone has a simple definition of what it means, please reply.[/QUOTE] The stuff you know already is a part of system engineering. SE is the whole shebang. From start to finish, the design, implementation, and maintenance for any given 'system' or project is system engineering. People who do … | |
Re: If I understand what you want to do, it's actually pretty easy. But you need to play some string parsing tricks: [code] using System; using System.Windows.Forms; namespace InannaRocks { public class MyProgram { public static void Main() { Application.Run(new MyForm()); } } class MyForm: Form { FlowLayoutPanel _container = new … | |
Re: I don't understand. When you decrease the resolution, everything looks bigger. Are the actual relative sizes changing, or do the controls just look bigger? | |
Re: [QUOTE]I am at a loss with the code for the functions add, minus divide and multiply[/QUOTE] kk, the functions themselves are easy. Just do some such like this. [code] Private Function Add(lhs As Integer, rhs As Integer) As Integer Return lhs + rhs End Function [/code] If you pull numbers … | |
Re: Work from the outside in. The outer loop goes from 1 to n - 1, so we can be lazy and call that O(n) 'cause it's close enough, right? So you know that whatever goes inside the outside loop steps n times, right? Now look at the inside loop. It … | |
Re: [QUOTE]I need as big arrays as possible.[/QUOTE] You never need arrays to be as big as possible 'cause there's always a way to work around painful memory drains. Since you use an old compiler, you should think like we did when we were using them. Basically, memory is like gold. … | |
Re: [QUOTE]the professor thinks I should know how to do it by now.[/QUOTE] You prolly do, but sometimes solutions aren't obvious, especially when you're new to problem solving. Your professor is there to teach you and give advice, so he's not off the hook with that excuse. :) [QUOTE]I have a … | |
Re: PictureBox has an Anchor property because it inherits from Control. If it's not listed in the designer view for some reason, you can set it in the form load event in your code view. When in doubt, go to the source! :) | |
Re: [QUOTE]it couldn't run correctly in the first place was because of some mistake in the subsequent code.[/QUOTE] What mistake? Is the query string what you thought it was? What happens if you print the query instead of run it and then paste it into SQL to run manually? | |
Re: [QUOTE]It's basically the column name for the query below (typed dataset).[/QUOTE] One thing I know for sure is that I'm not smart enough to use typed datasets. They've given me so much trouble that I'm more productive when I write the underlying code for them manually. :rolleyes: But! The problem … | |
Re: I use FireFix 1.0.7 (hmm, should prolly upgrade) and IE6 for stuff that "requires" it. | |
Re: You [B]are[/B] passing a string. What does LoginAdapter.GetDataBy look like? | |
Re: I'm gonna say iter isn't valid. Don't worry, I'll explain my thought process. But bear with me because it's twisted. :D You initialize iter in the Database constructor. [code] Database::Database() { is_found = false; infile.clear(); vInfo.clear(); iter = vInfo.begin(); } [/code] Technically you don't need to clear vInfo because it's … | |
Re: Do you wanna use C++ instead of PHP 'cause there's a real benefit? Or is it just 'cause you like C++ better or know it better? The likes and dislikes of the programmer usually aren't a good excuse for picking an implementation language. But! To answer your question, I've heard … | |
Re: [QUOTE]if i want to write to a file, do i have to fread it first or just fwrite it straight away ?[/QUOTE] It's tricky. Can you post some code that shows what you're trying to do? |