- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
60 Posted Topics
Re: That is not even C a program. It's written in C++ using C header files. C doesn't support classes. it's not object oriented. | |
Re: Well if it's a recursive function, then why are you using two functions? it's just calling function. I don't know much in detail about this recursion, but from all th examples in my books, I know that you need to all the same function (one you declare) again and again … | |
Re: A simple way to print an XM data onto the Console window is by using an object of [inlinecode]XmlDocument[/inlinecode]. here is a sample code snippet: [code=csharp] XmlDocument doc = new XmlDocument(); doc.LoadXML(("<clientinfo><servicetype>korea</servicetype><servertype>sakray</servertype></clientinfo>")); doc.Save(Console.Out); [/code] This is one way to do it. Another way is pass an XmlTextReader object to the … | |
Re: WTF.. All she asked was the difference between ++i and i++, not such weird details. Can't you just say that, ++i will first increment the value of i and then assign it., while i++ will first assign the value and then increments (so the variable assigned before gets to keep … | |
Re: out of the topic question: What does credit actually mean? In my country, we don't have those and I couldn't find much info about it on the web? | |
![]() | Re: There is no problem with your code. You just need to call the [inlinecode]this.repaint();[/inlinecode] after removing the component. |
Re: Wow! I don't know what to say to that. Are you sure you are a faculty? I'm sure your students are in the 'waiting queue of unemployment' for ever. I won't so much as tell anyone that I even glanced a code like that. | |
Re: > How to create Run as Administrator option of windows OS in c code.. Such a thing requires a direct call to the windows API. Refer to the MSDN documents in the Microsoft site. You'll also need a signed security certificate. Also the feature will differ from one OS version … | |
Re: Do a google search you'll find lots of working code lying around. | |
Re: Have you tried googling those errors? Most of the errors are simple enough to understand. If there is an error, most probably it's a syntactical error. Check your semi-colons, brackets, etc. After that you can try figuring out the logical errors you have. | |
Re: For the first problem if you require to make a new meaningful word out of a set of characters, then you need to have a dictionary with a number of words. Pass in the two strings as an array of characters. Iterate through your dictionary of words for the first … | |
Re: Seriously? You know it wouldn't hurt if you read the rules once in a while. | |
Re: [QUOTE=xponse;252551]I w'd like tom Download Turbo C (window version). Can any one sugget any site, thank in advance :confused:[/QUOTE] Well I'm also learning C. I tried the Turbo thingy, but it doesn't work that well. At our institute thy use GPP compiler, but it's real troublesome. I would suggest Visual … | |
Re: You don't need to feel down. It's just that people tend to get irritated and fed up with those who just come around here looking for ready answers. I'm sure you must have tried, but you didn't write anything about it. If you are stuck somewhere ask for help on … | |
Re: Well if you are using multiple connections, then you can try enabling pooling. MARS is also an option that uses a single connection to execute multiple queries, however is restricted to only DataReaders. | |
Re: Have you tried to use the Update method of the Adapter Class? [code=csharp] ... DataSet sqlDS = new DataSet("StudentDetails); adapter.Fill(sqlDS, "StudentDetails"); foreach(DataRow dr in excelDS.Tables["StudentDetails"].Rows) { sqlDS.Tables["StudentDetails"].Rows.Add(dr); } adapter.Update(sqlDS, "StudentDetails"); ... [/code] This will copy all data from excel to sql, if the structure of the data is the same. … | |
Re: Microsoft has books specifically for preparing those exams. You can search for them and read through those. However, I find the content there quite tough for a beginner. So I suggest you finish "Head First into C#" and get the basic done. Do some practice by taking small projects and … | |
Re: The problem is that there is no server running in your system. Install the IIS7 server in Vista. Look [URL="http://www.howtogeek.com/howto/windows-vista/how-to-install-iis-on-windows-vista/"]here [/URL]for directions. Also always use a port greater than 5000. And Do you have a ServerSocket running? I think you need it communicate with the Socket. | |
Re: The following websites might help your need. [url]http://blog.stevex.net/index.php/string-formatting-in-csharp/[/url] This MSDN article about [URL="http://msdn.microsoft.com/en-us/library/0c899ak8.aspx"]Custom Numeric Strings[/URL] has good examples | |
Re: Bondo, I'm sorry but there is no way to read not well-formed XML data in .NET. Since you want to use this XML Data into a SQL Server, it's more important for it to be well formed. You can create you own class so that it can ignore the "" … | |
Re: You can use the ComboBox class SelectedIndexChanged or SelectedValueChanged Events. Once the event is generated, you can update the DataSet and then display the data in the DataGrid. | |
Re: Didn't you post the same question in the C# forum? Have you tried searching the web? Just go into the [URL="http://msdn.microsoft.com/en-us/library/default.aspx?s=6"]MSDN [/URL]documentation, you'll find all your answers there. To print XML form a dataset, you can use the [inlinecode]WriteXml()[/inlinecode] function of the [inlinecode]DataSet[/inlinecode] class. | |
Re: You can have a class that just controls the movements. It can check the piece and move it. The board class will have the information about the pieces that are on it. If the region is free, then the piece can move also it'll check the rules defined for that … | |
Re: Can't you just store the values on a String and then accept a value for the count of recursion. Call the method passing the String and Integer. If you must use a char data type, then is a simple typecasting. | |
Re: The problem is your connection string. To connect to a SQL server Compact edition database you use the following: [code] Data Source=MyData.sdf;Persist Security Info=False; [/code] [QUOTE]How to specify the location of the SDF file Often times the .SDF database is not running in the current directory so it becomes necessary … | |
Re: In a disconnected artitechture provided by the ADO.Net will allow you connect to the database for all the DML,DDL and DQL statements. Once the results are acheved you can close the connection. The updated data will be stored in a local DataSet (DataSet follows the same artitechture as that of … | |
Re: Having different namespaces doesn't matter. Just while referencing to the form that you added, provide the full qualified path. Include the whole namespace path till your reach your desired Form Class. That should do the trick. | |
Re: Umm, Have you thought about creating separate PrintWriter objects? Define a rule collection and use switch case to check which rules match. Accordingly call the PrintWriter object's print method associated with the respective log files. | |
Re: What `masijade` is trying to say is that, JSP is a server - side scripting language. You can't only affect the server with it, to control the client side, you need to use a client-side scripts such as JavaScript, etc. | |
Re: hymm, it should be present. Either way which version of JDK are you using? I think you need the J2EE verson. Servelets are related to jsp pages and applets, right. | |
Re: First of all, there is no possible way for a function to use the [inlinecode]return[/inlinecode] keyword to return more than one value. remember, the return keyword, not only returns a value out to another variable (if mentioned) but also returns the whole control back to the function that called the … | |
I want to implement that using C#'s Generic LinkedList and the new features of C# 3.0. But I'm stuck now. the code add's the polynomials with matching exponents but doesn't add the rest of the nodes to the new LinkedList. [code=csharp] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace … | |
Re: If you want you can change the size of the char to 1 byte too. I don't really know how, but some detail might be in the specification or MSDN this might help [url]http://msdn.microsoft.com/en-us/library/system.char(VS.80).aspx[/url] | |
Re: I agree with the above poster. However it'll be easier if you implement LINQ. You can also retrieve few questions from the Database and display them, or you can use the Random Class to generate a random number, and use that number within the query to retrieve a question. This … | |
I would like to know how to apply Constraints after creating a table. I was just practicing and creating a database HomeInventory by reading the free e-book from Microsoft. But I'm trying to implement the functions using T-SQL. So How can I do so? [code] CREATE DATABASE HomeInventory USE HomeInventory … | |
Has anyone installed it? I've downloaded both express and full developer edition but I can't get past the user account stage. Can someone give me valid userID's and passowords for it? I don't have a password on my user account though.. | |
I just recently came across Shift Operators and it interests me. Though I'm beginning to learn more about it, I'm still a bit confused as where to implement them. However, the problem I'm facing is because of an example I found on [URL="http://msdn2.microsoft.com/en-us/library/336xbhcz(VS.71).aspx"]MSDN[/URL] [CODE]// expre_Shift_Operators.cpp // compile with: /EHsc // … | |
Re: >[inlinecode]#include <iostream.h>[/inlinecode] You should not use iostream.h, IOSTREAM is the standard header file for C++ I/O operations. and also de-comment your [inlinecode]using namespace std;[/inlinecode] becasue it's necessary. Also, the std::cout statement should be inside the function F(int) rather than main() because it is supposed to display the result recursively. This … | |
Re: Well I don't know the whole program, but for sure it's certain that '=' is an assignment operator. you need to use a comparison operator with if statement. If you are using = then you assigning the character '*' to the function operatorStack.Peek(). Try declaring a variable and assign the … | |
I've just looked up my homework and found that that I had to do a Project/Presentation on Microsoft .NET Development Tools and my sub-topic happens to be Visual C++. While doing research about it, I found out about Managed C++ and the recent advanced version C++/CLI by Microsoft. I know … | |
Re: Well if you want a simple command line compiler then you can go for [URL="http://www.delorie.com/djgpp/"]DJGPP[/URL] It'll work good too. | |
Re: Are you trying to find the INDEX of any one of the value in the integer array? Since you have declared only a single dimensional array, there is only one Index for it. | |
Re: Well Since you are using SQL Server Express, if you have registered it, then download the free book. It'll help you with the basics. Make sure you select Server Type as Database Engine, Server name as <Your-Computer_Name>\SQLEXPRESS, and Authentication as Windows Authentication. To create a new database, connect into the … | |
Re: >Do you think I'm a chibi anime girl with a chainsaw? It doesn't matter, I just want that chain saw.. *runs away with it* | |
Re: Well, I guess you haven't done pointers or functions yet. Today, I also got the same question for my homework. It's actually simple, if you know/understand string Length and string Reverse (without using the library) then you'll get it quickly. I just finished with it -_-' and found myself, being … | |
Re: OMG! you really must be a weirdo. Haven't you gone through the rest of the threads or something. And the questions above are the simplest in C, it's just common sense, if you don't hav that, come back here, and we'll make sure to laugh at ypu properly. ROFL Tsh.. … | |
Re: First of all decide what your question is. I cant understand, in the title you have something, and then something else. Properly describe, your question, and the answer you have come up with till now. Two weeks is enough for you to grasp the basic. If you are here looking … | |
Re: Your program is wrong. iostream.h is not a valid c++ header file, IOSTREAM is. There is no such thing in C++ as "cim". "cin" is used to input data. Here I'll give you a code that can change the case of character (assuming that only Alphabets are the input). It'll … | |
Re: The quest here is not to get the result, but to get that scenario. If you just wanted to get the sum then this is suffice : [code] #include<iostream> using namespace std; int Sum(int s) { int result; if( s == 1 ) return 1; else { result = Sum(s-1) … |
The End.