4,439 Posted Topics
Re: Besides what has been said. C# is more strict that C++. e.g.: in C# you MUST have a boolean or expression that evaluates to a boolean after an [B]if[/B] or [B]while [/B]statement, in C++ you can also use integers like 0 or 1 for that. | |
Re: Please read the following : [url]http://www.daniweb.com/forums/announcement8-3.html[/url] | |
Re: nelis, think about it. What would happen if you put an invalidate statement in a Paint event handler? Yes! It would raise a Paint event, which would call Invalidate which would... | |
Re: Perhaps you can do something with [url]http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[/url] | |
Re: As a starter this is surely something to give it a try. John Sharp is a good author. You will not find any info about XNA in it. | |
Re: str[i] * multiplier += total; You are multiplying on the left side of the assignment operator +=. Note that an assignment operator is not the same thing as an equal sign in math. This is allowed in a computerlanguage : x = x +1; You cannot do that in math. … | |
Re: #2 will print out more than a million a+space i guess... clutchkiller: When you have a file with a million 'a' characters in it and you want to see it (most of the time on a screen) then there is a problem. A screen has it's fysical limitations. Luckily there … | |
Re: Indead cVz, if you can do it the easy way, why do it the hard way. | |
Re: I use Visual Studio. It has about the coolest debugger you can get. | |
Re: Several problems here. What do you mean by st.GetMark()? Is it a method of the Student class? I don't see it. You have defined a property which does the same thing. Use it like this: To set it : Student.Mark=5; To get it : Console.WriteLine(Student.Mark); //will print 5 Is your … | |
Re: Nice try manpreet! Your first question implies you know the answer already. Your second question imposes you don't have read [url]http://www.daniweb.com/forums/announcement8-2.html[/url] Do a search here on [B]factorial [/B]and you will get an answer. | |
Re: Put your return statement in your function, not outside. Or what is that curly brace doing before it? | |
Re: Take a simple expression like (1+1) and see what happens when you debug it. | |
Re: Your first question are actually 3 questions. Just give us a break, please! What if I would ask you: Tell me something about hydrogen, helium, lithium, beryllium, boron, carbon...(I can go on you know) Please use a simple question about the problem you have. So we can formulate an answer … | |
Re: If I had an easy to sold application developed why would I tell you about it? As an example : I can download almost 10000 applications on my iPhone for free or for a few dollars, look them up, perhaps you get some ideas. | |
Re: The first newline moves you to the beginning of a new line. The second newline moves you to the beginning of yet another new line. That way you get an empty line between two "string" lines. If you know how a typewriter works you will get the idea. | |
Re: There is a System.DayOfWeek enumeration. There is a DateTime structure with a property DayOfWeek which returns this enumeration. So why would you feel the need to make your own? .Net is HUGE, perhaps you did not know it existed? Join the club, I had the same experience already... | |
Re: You learn programming, well by programming, by doing it. And it is not because VISUAL BASIC carries the word basic, that it is. In fact, in the long run I believe it will be rather confusing. I know, been there done that... Choose one well structured language and stick to … | |
I have a class derived from a TableLayoutPanel and if I have more than 3 rows or columns I don't show them directly, I add(I let the object add) scrollbars so I can reach the other cells. I have code that works perfectly,but... [CODE=csharp]public void CalculateSize() { const int cMaxCol … | |
Re: To start with the first issue : [QUOTE](Am I not correct that a handle is simply an address?)[/QUOTE] A handle is as far as I know an address to an address or if you like a pointer to a pointer. | |
Re: You must also take into account the valence bond of the different elements ! For example : a you can write a simple formule like CH2 but this can never exist as an molecule on it's own. A carbon atom has 4 "hooks" so CH4 can exist as a molecule. … ![]() | |
Re: An ArrayList is also resizable, still usable but a bit "out of date". If I where you follow the advise off [B]scru [/B]and [B]Rashakil Fol[/B]. | |
Re: What is your definition of better? Is an orange better than a banana? Are you better than me? Worser is sometimes better! | |
Re: So if.. [QUOTE]V = A * S - 2x and x = (W - V) / 2 then its safe to say V = A * S - ((W - V) / 2)[/QUOTE] Strange... When I do this I get V = A * S - (W-V) | |
Re: >> "/incremental : Enables incremental compilation [[B][COLOR="Red"]obsolete[/COLOR][/B]]." What do you think that means? The guys at MS probably have there reasons to make it obsolete. See also what LizR already said. So why bother? A compexity less to worry about I should say! More time to spend on programming! | |
Re: I assume you are using Visual Studio 2005 or 2008. Make a new Console Application, name it as you want but don't call it Product. Then add a new class [B]Product [/B]to your solution. Keep what you have in your Main method, it is good!(well I would do it different, … | |
Re: Come on guys calm down! There is more than enough shooting in the world! Be friends! Make love! [QUOTE]if ( hoursWorkedInWeek <= 0.0 ) System.out.println( "stop" );[/QUOTE] At that moment hoursWorkedInWeek is equal to 0.0. You told it to be 0.0 before entering the while loop. I believe you have … | |
Re: You do not need to free local variables when the function ends. Where would they be anyway? Who or what could still access them? | |
Re: Suggestion : although it is tempting to use a for-loop I think you better use a while-loop here. And from 0 to 14 is 15... | |
Re: What do you mean by boxes? Any nonprintable character is most often printed as a "box" character. I suspect linefeed and carriage return characters here.(ASCII 10 and 13, ASCII 65 is the 'A' character) | |
Re: If ou are used to unix like filepermissions they may be a bit hard to find. Check out the System.Security.Permissions.FileIOPermission class. | |
Re: --> public object userChoice; [B]declaration of an object[/B] --> B chosenClass = new B(); --> userChoice<B> = chosenClass; [B]use of object without instantiation[/B] | |
Re: 1) I infer you mean the filenames. You can do something like [B]foreach (String file in openFileDialog1.FileNames) [/B] FileNames being a property of he openfiledialog. 2)First set the Minimum and Maximum properties of the progressbar. Then increment the Value property(beginning at 1) or call the PerformStep method of the progessbar. | |
Re: arctan(1)=pi/4 wich means : the arc wich has 1 as tan is equal to pi/4 radians. SEries expansion gives : arctan(1) = 1-1/3+1/5-1/7.... so pi/4 = 1-1/3+1/5-1/7.... 1-1/3+1/5-1/7....can be easily computed. | |
Re: Tried it with [B]saveFileDialog1.Filter = "doc files (*.txt)|*.txt";[/B] without problems. | |
Re: Some hints perhaps on how I would start to handle this problem: Use the properties SelectedCells, SelectedColumns, SelectedRows and SelectionMode. Make also use of the event MultiSelectChanged. Example : Select the checkbox column, change one checkbox in it and change all the others in your code accordingly. I have not … | |
Re: Try to get some notions on [B]object serialization[/B] | |
Re: [url]http://www.amazon.com/Operating-System-Concepts-Abraham-Silberschatz/dp/0470128720/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1231963638&sr=8-1[/url] | |
Re: You want random numbers in the range from 0 to 9. Which is 10 possible outcomes. The array in the for loops goes from 0 to 8, which is 9 places. If that is what you want, OK with me. But I like to mention it anyway. | |
Re: Explosion is a rather notorious word these days... Could you please elaborate on your meanings and intentions? Oh, Salem, you forgot something...post him your avatar... | |
Re: I don't know if it's any help but it won't hurt : [url]http://www.amazon.com/Expert-NET-2-0-IL-Assembler/dp/1590596463/ref=wl_it_dp?ie=UTF8&coliid=I2QC16YY6G77L6&colid=L6872TYA346B[/url] Most compilers under Visual Studio compile to this intermediate language, be it Java, C++, C or C# or other. | |
Re: Phew! You are mixing a few things here. You can have : [CODE=csharp]public class SomeClass { public int MyInt; }[/CODE] In your main method you can now say : SomeClass MyClass = new SomeClass(); //instantiation Now use(example) MyClass.MyInt = 42; You can also have : [CODE=csharp]public static class SomeClass2 { … | |
Re: [QUOTE=vamke]If I try to use My.Computer[/QUOTE] My.Computer? Where is the code where you try to use My.Computer? Which error message do you get? This is the same as telling me: "My car won't start, start it." | |
Re: Well thank you! I like programming as a hobby and you have given me a nice project to work on! Let you know when it's finished but it certainly won't be in two days. Deadlines, man how I hated those deadlines when I was still programming professionally... | |
Re: What is an OP? I infer from the rest of your question it might be an OS(Operating System)? Am I right? What is your native language?(Don't be affraid to tell, mine isn't english either.) | |
Re: How it is actually done I dunno. But if I would write a routine that does it I would continuously subtract 2 from b until zero or until b<2 and return that value. | |
Re: REading this will help [url]http://www.c-sharpcorner.com/UploadFile/mahesh/dll12222005064058AM/dll.aspx[/url] |
The End.