1,443 Posted Topics

Member Avatar for sha11e

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.

Member Avatar for OblibSystems
0
179
Member Avatar for r.cromwell

1) Everywhere you use cin, you are SETTING the value instead of displaying it. 2) Missing semi-colon on lines 25 and 34

Member Avatar for r.cromwell
0
363
Member Avatar for jt1008
Member Avatar for Efficience

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. …

Member Avatar for Efficience
0
459
Member Avatar for zoraster01

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]

Member Avatar for GeekByChoiCe
0
162
Member Avatar for ksm092

[One option] You can insert an if statement that makes sure the line length is greater than two before writing to the output file.

Member Avatar for ksm092
0
96
Member Avatar for techie929
Member Avatar for thines01
0
100
Member Avatar for D33wakar

You could also convert the number to a string and count the characters or get the strlen(); Is that giving too much away?

Member Avatar for TrustyTony
0
453
Member Avatar for clyo cleopas

[Duplicate] [url]http://www.daniweb.com/software-development/cpp/threads/378448[/url]

Member Avatar for thines01
0
106
Member Avatar for AceStryker

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 …

Member Avatar for thines01
0
95
Member Avatar for clyo cleopas
Member Avatar for thines01
0
305
Member Avatar for uid1
Member Avatar for DesignGhosts
Member Avatar for DesignGhosts
0
482
Member Avatar for sadsdw

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 …

Member Avatar for Ancient Dragon
0
132
Member Avatar for sathya88
Member Avatar for Marvin Danni

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 …

Member Avatar for thines01
0
107
Member Avatar for lukename

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 …

Member Avatar for venomxxl
0
108
Member Avatar for ljohan

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 …

Member Avatar for pratikkamble
0
176
Member Avatar for Cross213

Can you wrap the whole thing in a try/catch block so you can see the message returned from the exception?

Member Avatar for Cross213
0
234
Member Avatar for dadisimo

Let's first start with the user input. Check out this post: [url]http://www.daniweb.com/software-development/assembly/code/270832[/url]

Member Avatar for thines01
0
317
Member Avatar for mrjimoy_05

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]

Member Avatar for nick.crane
0
1K
Member Avatar for betny

Arguments in batch files are passed on the command-line. Inside the batch, you use %1, %2, %3, etc. to receive each argument.

Member Avatar for thines01
0
321
Member Avatar for vishal1949
Member Avatar for thines01
0
2K
Member Avatar for sergent

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.

Member Avatar for mike_2000_17
0
135
Member Avatar for teha_toshio

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 …

Member Avatar for teha_toshio
0
174
Member Avatar for bklynman01
Member Avatar for ShahanDev
0
141
Member Avatar for bd338

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 …

Member Avatar for Narue
-1
615
Member Avatar for IndianaRonaldo

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.

Member Avatar for thines01
0
214
Member Avatar for srikanth2321

There is nothing wrong with using an underscore in a file name. If you take it out, does the problem go away?

Member Avatar for Ketsuekiame
0
706
Member Avatar for PratikM
Member Avatar for ashu12v

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.

Member Avatar for N1GHTS
0
478
Member Avatar for keerti_somu

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.

Member Avatar for thines01
0
345
Member Avatar for Panathinaikos22
Member Avatar for Ketsuekiame
0
148
Member Avatar for king03

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.

Member Avatar for duke_swh
0
390
Member Avatar for kooletz
Member Avatar for stfent
Member Avatar for Towmator

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)

Member Avatar for WaltP
0
113
Member Avatar for manugm_1987

Start with this: [url]http://msdn.microsoft.com/en-us/library/3y1sfaz2.aspx[/url] [CODE] __declspec ( dllexport ) void funcall() { printf("hello"); } [/CODE]

Member Avatar for thines01
0
394
Member Avatar for dotancohen
Member Avatar for afi@alvi

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?

Member Avatar for Duki
0
94
Member Avatar for bettybarnes

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]

Member Avatar for thines01
0
277
Member Avatar for kapojian

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) { …

Member Avatar for bhagawatshinde
0
783
Member Avatar for MareoRaft

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).

Member Avatar for L7Sqr
0
154
Member Avatar for zeulb

It could be that you did not need two 10000 string arrays. A single string could be used for capturing the output.

Member Avatar for thines01
0
612
Member Avatar for smokepk

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 …

Member Avatar for zachattack05
0
660
Member Avatar for wildplace

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]

Member Avatar for thines01
0
103
Member Avatar for vincezed

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 …

Member Avatar for thines01
0
386
Member Avatar for ron92

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 …

Member Avatar for thines01
0
157
Member Avatar for greyhound

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.

Member Avatar for thines01
0
135
Member Avatar for basement24

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).

Member Avatar for thines01
0
220

The End.