1,443 Posted Topics
Re: You will need to try different ones to see what best fits your purpose. You will probably find one you like better than others and stick to that one until you REALLY need something else. | |
Re: 1) Everywhere you use cin, you are SETTING the value instead of displaying it. 2) Missing semi-colon on lines 25 and 34 | |
Re: You still need to (at least) remove that first semi-colon. | |
Re: When I compile this as C++, I get a compiler error that says: error C2360: initialization of 'x' is skipped by 'case' label It means that line of code might not be executed, so the initialization can fail. [QUOTE] The initialization of identifier can be skipped in a switch statement. … | |
Re: Yes: StreamReader System.IO.StreamReader Example: [CODE] Imports System.IO Module mod378486 Sub ReadFile() Dim strData As String Dim fileIn As New StreamReader("c:\science\test.txt") While Not (fileIn.EndOfStream) strData = fileIn.ReadLine() Console.WriteLine(strData) End While fileIn.Close() End Sub Sub Main() ReadFile() End Sub End Module [/CODE] | |
Re: [One option] You can insert an if statement that makes sure the line length is greater than two before writing to the output file. | |
Re: You can use strcpy() to capture the strings (from tokens) into other variables. | |
Re: You could also convert the number to a string and count the characters or get the strlen(); Is that giving too much away? | |
Re: [Duplicate] [url]http://www.daniweb.com/software-development/cpp/threads/378448[/url] | |
Re: If you are using Window (or DOS) and the code is for 80x86, you can use DEBUG to see the code running (and step through it one command at a time). After you see HOW it is written, you can better determine how to modify it by adding on to … | |
Re: You are incrementing the variable "i" instead of the variable "num". | |
Re: Use "and" instead of "or" | |
Re: You probably need to specify the full path of both input files, too. | |
Re: The first row is the column header. Have you looked at the split() function (depending on which version of C++ you're using)? Also look at strtok(). If you're using dot net, just use the Split() method on the string giving it your list of separators which in this case will … | |
Re: What is the jar command you used and did you make a manifest file? | |
Re: Your code will be the intermediary between the two. Do you have a list of commands for the processor(s) involved? I'll see if I can help. I'm looking at the manual, now: [url]http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit_3_User_Guide_51795A.pdf[/url] and this one: [url]http://ww1.microchip.com/downloads/en/DeviceDoc/33014J.pdf[/url] And this project to use the LED as a light sensor: [url]http://www.micro-examples.com/public/microex-navig/doc/096-led-light-sensor[/url] It … | |
Re: No. The .h files do not need to have an equivalent .cpp file. Also, a .cpp file can include many .h files and a .h file can include .h files. If you're looking for something specific, you might need to search through all of the .cpp files under Visual Studio … | |
Re: If you are entering these on the command-line, you will access the values through argv. Argv is zero-based, but the first argument (0) is the program name, so start with argv[1]. argv[1] will contain a string containing "123456", so you will need to access each element as a character (or … | |
Re: Can you wrap the whole thing in a try/catch block so you can see the message returned from the exception? | |
Re: Let's first start with the user input. Check out this post: [url]http://www.daniweb.com/software-development/assembly/code/270832[/url] | |
Re: Instead of reading the file to the console, read the file into the FlashText.Text with something (maybe at line 6) like: [CODE] System.IO.StreamReader file = new System.IO.StreamReader(filePath); FlashText.Text = file.ReadToEnd(); file.Close(); [/CODE] | |
Re: Arguments in batch files are passed on the command-line. Inside the batch, you use %1, %2, %3, etc. to receive each argument. | |
Re: The class and the application that instantiates it should be separated. | |
Re: If you wrapper your functions inside the std namespace, they belong to the std namespace. Namespaces are used to help avoid collisions, so (in essence) the same named function/class/etc. can exist in multiple namespaces without interfering with others. | |
Re: All you need to do is actually set the position in "char cinemas[17][20];" to 'X' when a seat is occupied. The displaySeat() function will take care of whatever is in the 2-dimensional array. But it looks like you're doing too many things at once. You should break this into smaller … | |
Re: I use: [CODE] excel.Workbooks.Close() excel.Quit() [/CODE] | |
Re: I agree with GunnerInc. With that said, you should write both ends in assembly, first. Start with a .com file so you can practice small jumps. Once you get that trick down, try it with a exe file. Keep in mind, these same tricks are used to create and attach … | |
Re: Yes. Ensure that the code that makes the first list of words returns that list (or array) of words from a function and use it as input to the next function that will further pair-down the list. | |
Re: There is nothing wrong with using an underscore in a file name. If you take it out, does the problem go away? | |
Re: use commas instead of + on line 55 | |
Re: It seems as if your library directory is not set up properly. If I remember correctly, you put the library path in a configuration section of the IDE or in environment variables in Windows/DOS. | |
Re: Does fortran use the C style calling-convention for exporting or the Pascal? ...as in extern "Pascal" [header] void PASCAL _extern hello(void); I'll have to check the syntax, byt you probably know what I mean. | |
Re: ...don't forget about packaging and distributing with an "installer". | |
Re: You have way too much code and adding a class is too complicated for what you are doing. If you're using Visual Studio, start over with a clean project, compile it before doing anything else and then think about the problem. Think character-array and characters. | |
Re: scanf("%8s", &name); //??? Think about the %8 for this line. | |
Re: Where does it fail? What result are you expecting? | |
Re: Well, one thing that's an issue is the scores[20] on line 23. This is zero-based, so scores[20] is the 21st element in a 20 element array. (Outside the bounds of the array) | |
Re: Start with this: [url]http://msdn.microsoft.com/en-us/library/3y1sfaz2.aspx[/url] [CODE] __declspec ( dllexport ) void funcall() { printf("hello"); } [/CODE] | |
Re: Instead of override, use "new" in front of the method. | |
Re: You might need to spawn a thread, depending on how complicated of a program you are creating. What do you mean it gets stuck? Do you have a small sample to show? | |
Re: If you can't get this straight with TASM, can you use a different assembler? I compiled your code with A86 ([url]http://eji.com/a86/[/url]) and it compiled and ran fine without error or warning. Also, did you try the tiny model? [CODE] .model tiny .code org 100h [/CODE] | |
Re: I would use TimeSpan: [CODE] static void Main(string[] args) { /******************************************************** * Uses a date 7 days before today * compared to NOW, which will result in "Time to update" *******************************************************/ DateTime dtThen = DateTime.Today - TimeSpan.FromDays(7); DateTime dtNow = DateTime.Now; TimeSpan tsDiff = (dtNow.Subtract(dtThen)); if (tsDiff.Days >= 7) { … | |
Re: Well, if MATLAB is sufficient, I recommend using it. At least you will get lots of user experiences and documentation. It will integrate with C++ (unmanaged or managed). | |
Re: It could be that you did not need two 10000 string arrays. A single string could be used for capturing the output. | |
Re: Since the size of a voice file can vary, I would not attempt to store the ACTUAL binary data in the database. I would put the data on a server (file-share, ftp., etc.) and store a link to it in the database. When it's needed, take the address from the … | |
Re: I saw [URL="http://objectmix.com/asm-x86-asm-370/737288-understanding-clobber-list-gnu-inline-asm.html"]a forum[/URL] with this statement [QUOTE]The clobber list tells gcc which registers (or memory) are changed by the asm, but not listed as an output.[/QUOTE] | |
Re: I have both VS2008 and VS2010 installed and I see a reference/assembly I can add called System.Data.SqlServerCe. I added that to a VS2008 project (so I can use IntelliSense) and added the namespace: using namespace System:: Data:: SqlServerCe; //spaces added to prevent emoticons At that point, I could issue code … | |
Re: I've noticed that even if you save a shortcut to an HTML FILE to your desktop, it strips off the bookmark before it saves. The bookmark code interferes with the filename. So, something like: file:///C:/Documents%20and%20Settings/mememe/Desktop/fred.htm#bookmark2 becomes: file:///C:/Documents%20and%20Settings/mememe/Desktop/fred.htm when saved. You *can* however, create a second page (let's say Joe.htm) that … | |
Re: A web-service call can get the data, but the website itself will need to pass that data to the engine that creates the graphic. | |
Re: Does it crash on NEW projects or just old ones? Did you try a "build -> Clean Solution"? If this is an upgraded project from VS 2008 or before, you might try deleting the .ncb file (before loading the project). |
The End.