- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 7
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
64 Posted Topics
Re: This is going to be harder than you think due to the fact that numbers are represented differently depending on the position in the number the specific digit is in. For example, if a 5 is in the one's slot, it is represented as "five", whereas in the ten's spot … | |
Re: [quote=foo;273662]What is the difference between string and String? If I want string name = "Joe"; String name = "Joe"; which is the correct usage? Is there a difference? Thanks in advance.[/quote] Well, "string" is actually an object type of the System.String class. So if you omit "using System" from your … | |
Re: All it looks like that's showing you is that an object of type wheat can be stored in a grain variable, since wheat extends grain, but the proper method will be called even though the variable is of type grain. | |
Re: Well, If you are checking after each entered number (which is what it looks like) you need to compare the entered number to the answer matrix (you could have this as a variable in the program somewhere) for the indicies input by the user. Return 1 if the same, 0 … | |
Hey guys, I was wondering if anyone knows a good VB.net tutorial. I'm not a beginner programmer by any means, I have experiance in another .net language, C# but I have a course in VB.net next semester and wanted to get a head start. Any help you could give would … | |
Re: I dont think java provides any convienient way of doing this, you'll probably need to do it out longhand with loops and the % operator. | |
Re: [QUOTE=Tank50;833016]Hi guys I have a problem in my project.Below I mention the coding I wrote it for testing purpose. In below coding the second while loop never run,only [CODE] SqlDataReader reader = DbCon.Get_Invoices(); int x = 0; while (reader.Read()) { x++; [B][COLOR="Red"] 1[/COLOR][/B] } MessageBox.Show(x.ToString()); chart2.DataBindCrossTable(reader, "ExecutiveCode", "Date1", "Total", ""); … | |
Hi Guys, I'm getting on odd error on compilation, "Procedure too large to compile". The reason I say it's odd is that I know for a fact the procedure is not too large to compile. We have daily builds and others are able to pull the source down and compile, … | |
Re: Your issue may be with the multiple line input statements within the loop. I'd throw a breakpoint in and be sure the error isn't coming from the second input line. It may be that the first input line reads, then you acheive EOF, but then you try to do another … | |
I'm running a vista certification practice test for a product at our company, and I was wondering what the installation paths should be for All users (I presume program files, since an admin is required to install as all users anyways) and current user (as underprivliged users have no access … | |
Re: [quote=mattyd;303218]Hello. I am new to Java and I am easing into this new language via some basic tutorials. I am using the Borland 2005 IDE; it is powerful and I quite like it save for that it seems [I]incredibly[/I] bulky, hogs [I]all[/I] resources, freezes, tries to shut itself down, etc, … | |
I am having a problem accessing a windows xp shared folder on my network from my laptop (running windows media center). I cannot access the computer by \\computer-name or by \\ip-address. In fact, I cannot and never have been able to access any shared computer with this laptop (as far … | |
Is there a way to recognize when a key is pressed in 32-bit masm? I know you can use interrupts in 16 bit, but how can this be done using 32-bit, since 32-bit is protected by the OS. Thanks, Tyler S. Breton | |
Re: [quote=the-new-guy-;298474][inlinecode] hi in school we have been set a homework task of making a game with a few simple programs! Our teacher asked us to team up and make a game lol just like that we have one month and we have sketched out some plans backgrounds ideas etc please … | |
Re: [quote=hex2007;303532]pick whichever u like the most, none of them is better than the other.[/quote] This depends on the school you are attending and/or who you ask :cheesy: . I know my school has a very good engineering program, however deals next to nothing with actual programming. Comp. Sci. on the … | |
Re: Shouldn't [inlinecode]MyTime = DayOfWeek.Now;[/inlinecode] be something like [inlinecode]MyTime = (DateTime.Now);[/inlinecode]. Then you should be able to do MyTime.DayOfWeek since DayOfWeek is a property of the DateTime class, so should be called on an instance variable of that class. I havent fiddled too much with the DateTime mechanism yet in C#, … | |
Re: [quote=sosina abraha;291769]Hello everyone. What are the disadvantages/shortcomings of object oriented Programming?:eek:[/quote] Google provided a ton of results..... here is just the first hit: [URL]http://wiki.tcl.tk/13398[/URL] | |
Re: [quote=Lynqu2;293258]Hi everyone, I'm new here and this is my first post. Like the title says - I'm new to the whole coding and programming thing, I really LOVE the thought and the idea, I've started out with XHTML and CSS, it's going easy so far and I think I have … | |
Re: Just a side note...this post is so long that Java has already changed to just Java SE 6, not Java 2 SE anymore. Basically, leave it alone....it's done. Regards, Tyler S. Breton | |
Re: That's one of the fallbacks of a "strong" language such as C# over a "weak" one such as C (this is not a comparing of the strength of the language but the strength of the safeguards build into the language). You might just have to use nested if blocks to … | |
Re: Shouldn't you be using strcmp instead of == for comparing strings? Or am I just as baffled as you? :eek: | |
Re: Try virus software. (Norton Antivirus, or McAfee) Or spyware software. (Lavasoft's AdAware) Or protecting your computer with a firewall. (MS Windows XP comes with one) By the way....this post is in the wrong category. Best Regards, Tyler S. Breton | |
Re: It will work fine but as stated above, try to follow better naming guidelines. <Pizza> in your case describes a list of what looks to be orders...whereas <description> IS a description, but of a Pizza. You should also possibly consider enclosing each order in a seperate tag, possibly <order>. The … | |
Re: [quote=ashneet;288901]That helps a little but it does not work on files which are less then a KB. [/quote] Why would you even need a progressbar for a file less than a KB....thats like needing a photo finish for a race where the lead car is a lap up. Unless your … | |
Re: [quote=dubeyprateek;292022]I am a C++ programmer, I have a good hands on C, C++ and WIN32, however i don’t know MFC much. I am willing to learn C# and i am looking for few guidelines. It will be a great help if anyone can tell me how to start with it. … | |
Re: [quote=vatsal17;295610]I want to write various programs using ' Loops' in C language but new to C .please solve my query[/quote] [URL="http://www.geocities.com/learnprogramming123/Clesson8Beginner.htm"]This[/URL] is a decent basic tutorial on loops in the C language. You will find them similar to the ones in C++, C#, or Java, as C is a "parent" … | |
Re: Another C#: [CODE] public class Count{ public static void main(){ int [] a = {1,2,3,4,5,6,7,8,9,10}; foreach(int i in a) System.Console.Write(i + " "); } } [/CODE] | |
Re: Can't you just double click each combobox and edit the code for when each combobox is changed? It might provide you with a different event by default, not sure, but I think there is one for combobox changed. Regards. ~Tyler S. Breton | |
Re: Are you trying to run this program as a console application? Applets are not run the same way console applications are in Java. Java.exe is used to run applications whereas AppletViewer.exe is used to run applets. Regards, ~Tyler S. Breton ![]() | |
Re: In reguards to C#, I believe there is also a free command line compiler called MONO, although the features in VC# make it a more promising choice seeing as you can get the express edition from M$ for free. ~Tyler S. Breton | |
Re: It is similar to the foreach loop in C#, i believe they call it an "advanced for loop" or something. | |
Re: Well he (the programmer of the DOS version) rewrote it from the original nintendo version, so YES you can by rewriting the whole thing. Good luck with that. Regards and best of luck, ~Tyler S. Breton | |
Re: You are setting an integer variable to "", which is a string, thus a char*. You could probably use ' ' but why initialize it to anything? ![]() | |
Re: Sounds like an assignment for a compiler class....otherwise I don't see the purpose of such a compiler. Show a little work before you expect someone to just jump in and give you the code. Do you want it to compile the loop to machine code? Seems like reworking the wheel … | |
Re: Please post the code (in code blocks) which is having a problem. Otherwise it's hard to tell what the problem is....but it sounds like your trying to call a print method on an object with no print method in the class definition....but the code would be nice. ~Tyler S. Breton | |
Re: Recursively or iterively should have been your first specification. Nobody is just going to give you code to "study" from and "attempt to write" the same thing (or similar). Sound fishy to you? ~Tyler S. Breton | |
Re: I think he wants help with implementation of the whole system itself, not just sleeping the thread.... Maybe you could be a little more clear on how you want this implemented and such...where the data comes from....what type of practicality does it have...etc. etc. ~Tyler S. Breton | |
Re: I'm a bit confused. Do you want to input an array of strings and then alphabatize them? I can't understand your wording, maybe you could make it a bit clearer for us. | |
I've been recently reading the forums a lot, seeing people throw around the phrase "pass-by-reference" in normal C. As far as I've been taught, C only provides pass-by-value. Now.....the developers of C came up with this genious idea of passing an address (which is still a value) through the parameters … | |
Re: I might be mis-interpreting what your saying, but did you implement a main method in the program you are trying to run? | |
Re: youll need an outer loop which loops as high as the amount of factorials you want to compute, and an inner loop which will compute the factorial at the outer loops number. pseudocode: input n set x = 1 loop n times set num = 1 set y = 0 … ![]() | |
Re: Unable to correct this void main() { char string[20]; char *aString=string; function (aString); } void function(char *name) { cout<< "enter name"; cin >> *name; cout << name; } Learn something about the language and how it works before you post code like that here and ask for help. How are … | |
This block of code will compile, but gives me a runtime error: before the first comment is a header that is included in the file that you may need to analyze my code. [code= c] typedef char *string; typedef struct { string fieldName; string value; }oneField; /* this starts the … | |
Re: Your going to need a dictionary file, or at least a file with all the words in the US language in order to implement that. And the implementation will depend on the internal format of that file. I also must warn you that autofill requires an constant amount of checking … ![]() | |
Re: i believe your missing a close bracket "}" from your initial if block | |
| |
Re: Sounds like you're going to need a loop to traverse through each row? I dont know if thats what you're asking or not though because your question was quite general and hard to understand. Reguards, Tyler S. Breton | |
Re: if a and b are integers..... quotient = a / b; remainder = a % b; | |
Re: there's a function in C called strlen which returns the length of the string (in characters) you should probably use this method in your program. This website describes the function: [URL]http://www.space.unibe.ch/comp_doc/c_manual/C/FUNCTIONS/strlen.html[/URL] |
The End.