1,443 Posted Topics
Re: I cannot figure out what it is you are doing here. Can you rephrase the requirements? | |
Re: What type of app are you creating? There are LOTS of options. | |
Re: Something tells me listLength is going below zero before it is used. Can you check the value in the debugger right before 82? | |
Re: Switch from Unicode to MultiByte character set in the compiler options. | |
Re: Call new on your object when adding it to your array. | |
Re: It sounds like you might be using the Unicode character set and need to change to MultiByte (which will give you less problems with mixed-mode compilation). With Visual Studio, you can create a console app, a CLR app, an MFC app or mix and match. Are you still having problems … | |
Re: You would need to check the nybbles for the value of the space char...20h for example. If you put each byte of the double word in a register, it would be easier to detect. | |
![]() | Re: One thing I would suggest is to keep your Dictionary processing completely separate from your UI. The loading of the dictionary can be triggered from the form, but should not be [I]part[/I] of the form. Can these be stored in a file or database? If so, you can keep control … |
Re: Well, if this is to be a permanent WCF application, you will need to determine how you're hosting it. Is it to be self-hosted or attached to IIS? | |
Re: The <= makes the inner loop go around one extra time. | |
Re: [QUOTE=zemzela;1705944]Print all small Cyrillic letters from A to Z with spaces between letters: A B C D ... Jay Z using the instruction LOOP. I need help to solve this task, if someone know please help me...[/QUOTE] Do you have the Cyrillic font installed? | |
Re: You should create at least 3 CRecordsets -- one for table1, one for table2 and one for the joined table1+table2 (based on primary and foreign keys). That way, you can use (insert, update, delete, select) for each table individually or you can just read the combined/joined table. | |
Re: Can you use Linq? If not, use the GetMaxFromArray and GetMinFromArray methods. [These are just options] [CODE]using System; using System.Linq; namespace DW_397808 { class Program { private static int GetMaxFromArray(int[] ia) { int iMax = ia[0]; foreach(int i in ia) { if(i > iMax) iMax = i; } return iMax; … | |
Re: Since there is no mention of ["what's NOT allowed"], I think a final method for isDoubleSorted could look like this (in C#) [CODE] private static bool isDoubleSorted(int[] a) { if (!isSingleSorted(a, isOdd)) return false; return isSingleSorted(a, isEven); } [/CODE] | |
Re: I personally have tried [CODE] Runtime.getRuntime().exec("command.com /c cls"); System.out.print("\f"); System.out.print("\033[2J\033[H"); [/CODE] ALL of which did not work on Windows XP. Also, check out the answers here: [url]http://www.daniweb.com/software-development/java/threads/381318[/url] | |
Re: The if statements still need to compare to s3: [CODE] if((s3=="Y" || s3=="y")) { ... //etc } [/CODE] | |
Re: This will really depend on what you're trying to do. A hashmap will be beneficial when you already know what things belong together (key, value pairs). Will the program need to unscramble (or scramble) the words? | |
Re: You posted this in the C# forum. I'm sure a moderator will soon move it to the Pascal/Delphi forum: [url]http://www.daniweb.com/software-development/pascal-and-delphi/124[/url] | |
Re: If you don't re-check AND re-set the value of userName inside the while, it will be infinite. [CODE] while (userName != "0") { // <-Needs to ask for userName HERE CheckPassword(password); } [/CODE] | |
Re: When you say "print", do you mean to the screen or to a PRINTER? When you say the tabs disappeared, do you mean the words now have NO delimiter or did something else happen? | |
Re: Duplicate? [url]http://www.daniweb.com/software-development/java/threads/395756[/url] | |
Re: 1) What error are you getting? 2) Can you convert the inner portions of the case statements to function calls instead? Grouping your code into functions will probably reveal the flaw or oversight. | |
Re: Are you using: [CODE]using System.Collections.Generic;[/CODE] Try this: [CODE] using System.Collections.Generic; namespace DW_397605 { public class Commodity { public string strName { get; set; } public double dblValue { get; set; } public Commodity() { strName = ""; dblValue = 0.0; } public Commodity(string strName, double dblValue) { this.strName = strName; … | |
Re: 1) You are calling "Call WriteString", but there is nothing called WriteString except a line that is commented-out. 2) ReadInt (same) 3) You have an End Main, but no start or begin Main | |
Re: How about this? [CODE] // GuessTheNumberTest.java //Written by Sean Kelley for IS109-8b //Week 3 homework //Test the game GuessTheNumber import java.util.Scanner;//uses Scanner public class GuessTheNumberTest { public static void main(String[] args){ Scanner input = new Scanner(System.in);//initializes Scanner do {//begin while to play again (new GuessTheNumber()).play();//call method play System.out.println("Play again? 1 … | |
Re: Yup [CODE]StreamWriter fileOut = new StreamWriter("file.txt"); fileOut.WriteLine("stuff goes here"); fileOut.Close();[/CODE] then... [CODE] string strData = ""; StreamReader fileIn = new StreamReader("file.txt"); while(!fileIn.EndOfStream) { strData = fileIn.ReadLine(); } fileIn.Close(); [/CODE] | |
Re: On way would be to use sprintf to format your insert/update string. The parameters will be the elements of the struct. | |
Re: [url]http://www.cplusplus.com/reference/algorithm/max/[/url] Well, first you would find the min, then find the max and subtract the min from the max, right? | |
Re: The double-scan technique would work well. It might be better to do this as a command-line app -- that way, the user can redirect the output easily and manually where necessary. | |
Re: First, don't attempt to define classes inside Main. Second, you have some unreachable code. VS should underline these for you. [Technique] Remove all printing statements from your class. It might not always be used with a Console app. Determine the need to print and the output mechanism outside the class. | |
Re: If you used a text editor to create the file, make sure it saves in Unix format. If your code created the file, use \n for linefeeds instead of \r\n. If you are sending the file via FTP, make sure it transfers in text/ASCII mode. | |
Re: What type of control is your browse? If it is of type "File" (in HTML), you will get a dialog box [CODE] <body> <form id="form1" runat="server"> <div> <input id="fileIn" type="file" name="fileIn" runat="server"/> </div> </form> </body> [/CODE] ...but are you trying to reference on the on the server or the client … | |
Re: Check this page: [url]http://www.learn-programming.za.net/programming_pascal_learn11.html[/url] You will need to "Seek" to a location in the file to overwite a record. | |
Re: On line 130, you're closing the outfile on every loop. | |
Re: Make another container that keeps track of which elements have been randomly chosen. | |
Re: It confuses the compiler. | |
Re: Is this the same? : [url]http://www.daniweb.com/software-development/csharp/threads/396941[/url] | |
Re: Start by removing the word void from lines 35 and 36. Re-compile and work on the first error first. | |
Re: Yes, insert 0ah where you want the line to break. [CODE] org 0100h mov dx, msg mov ah, 09h int 21h mov ah, 4ch int 21h msg: db 'Hello World!',0ah,0ah,'This is my',0ah,'first program',0ah,'using Assembly$' [/CODE] | |
Re: If you're still getting this error, can you post the error message? | |
Re: Do you currently know C#? If you do, I recommend you run a web service on your server that gives the filename for the client to download over FTP. This would be a solution that would not be too complex. | |
Re: Just a quick glance at 160 shows you're rebuilding the string named "Length" every time. Is that correct? ...and at 95, you're displaying and adding simultaneously. Is [I]that[/I] correct? | |
Re: Try something like this: [CODE] #include <fstream> #include <iostream> using namespace std; int main(void) { ifstream fileIn("c:/science/TomDigs.txt"); char strData[128] = {0}; string words[500]; int intCount = 0; while(!fileIn.eof() && intCount < 500) { fileIn >> strData; words[intCount++] = strData; } fileIn.close(); return 0; } [/CODE] But I have to ask: … |
The End.