15,300 Posted Topics
Re: now that you have posted the problem, what exactly do you expect of us? We will NOT write your program for you but we will help you to write it yourself. So post your code and ask questions. | |
Re: that is not a circular queue. Circular queues do not have free space anywhere but at the queue's tail. A circular queue uses two pointers -- head points to the byte for the next insertion, and tail points to the byte for the next extraction. when tail+1 == head the … | |
Re: I accept PMs only from other mods and admins. There is no reason for others to PM me -- if you have a question just post it in the appropriate board for anyone to answer. | |
Re: never have that problem -- I learned touch typing in HS and have been touch typing every since (probably about 43 years). I think a lot of young people today learn to type on computer keyboards before they are HS age, and consequently learn typing incorrectly -- hunt-and-peck. Typing should … | |
Re: your coding style leaves a lot to be desired. Do you really code your program with everything left justified on the page as you posted it? I wanted to edit your post to add code tags but that would not have helped. Not very many (if any) people will even … | |
Re: you will probably have to write it as a [URL="http://www.google.com/search?hl=en&q=how+to+write+plugin+for+visual+studio&btnG=Google+Search"]plugin[/URL] | |
Re: The first parameter is the HWND of the function calling MessageBox(). When its NULL it means either the HWND doesn't exist, such as from a console program, or you don't care. If you don't know what a HWND is, then here is a good [URL="http://www.winprog.org/tutorial/"]tutorial[/URL] intruduction into MS-Windows programming. | |
Re: I think most math operations are performed on the math coprocessor instead of in code. So the functions are probably optimized as much as possible. | |
Re: see [URL="http://www.uv.tietgen.dk/Staff/Mlha/PC/Prog/asm/int/21/index.htm"]int 21[/URL], function 5700 and 5701. to get current date/time Once you get that, then learn how to convert the data in the registers to human readable form. If you read some of the [URL="http://www.daniweb.com/techtalkforums/thread64614.html"]other threads[/URL] here there are example of how to do that. | |
Re: create a loop that repeatedly divides the value by 10 until its value becomes 0. increment a counter on each loop iteration. see the description for the idiv instruction if you do not know what it does. | |
Re: [QUOTE=umairsaleem_88;296020]hello!!! i need a tutorial or source code of any graphical programm (animation is preferred) in c++ using borland turbo c compiler v3. i shall be very thank full to any one who help me in this regard. thanks![/QUOTE] that compiler does not compile c++ code -- its a C … | |
Re: same problem as in old days. when you enter a number and press <Enter> cin does not remove the "\n" from the keyboard -- you have to do that [code] int x; cin >> x; cin.ignore(); // remove '\n' key [/code] | |
Re: you can compare times directly. For example [code] if Time$ < Text1.text [/code] | |
Re: see some of [URL="http://www.google.com/search?hl=en&q=assembly+language+tutorial&btnG=Google+Search"]these tutorials[/URL]. | |
Re: you have a couple options: (1) put each of the strings in an array of strings, or (2) keep a linked list of the lines that are read. Here is an example of using the array. [code] #include <stdio.h> int main() { int linecount = 0; char *array[255] = {0}; … | |
Re: Did you browse [URL="http://www.mathworks.com/products/netbuilder/"]their web site[/URL]? The quickest way to get answer to your question is to ask mathlib people. Also, [URL="http://www.codeproject.com/com/COMBuilder_1.asp"]here[/URL] is a tutorial if you need it (I haven't read it). | |
Re: First you need to learn SQL query language. There are tutorials on the net as well as books that will teach you. SQL isn't something that you can just pick up in a few minutes. I would suggest you download and install MySql database in your own personal computer so … | |
Re: It appears the only differences are the graphics card and the size of the hard drive. The hard drive difference in price is minimal -- you can buy a [URL="http://www.directron.com/200gb.html"]250 gig hard drive[/URL] in USA for about $75.00 So that leaves just the graphics card. Do you like to play … | |
Re: never heard of the language. But did you try [URL="http://www.google.com/search?hl=en&q=Ruby+programming+language&btnG=Google+Search"]google[/URL] ? [quote]Results 1 - 10 of about 1,710,000 for Ruby programming language. (0.18 seconds)[/quote] Now I'm not saying you have to read each and every one of those hite, but the first few will probably be helpful. Nearly 2 million … | |
Re: I will buy it in about a year. By then M$ will have at least one service pack out for it. | |
Re: From my observations it doesn't look like spam and porn stay up on DaniWeb very long -- there are now a lot of moderators from all over the world (timezones) who can delete those posts within the hour or less. | |
Re: [QUOTE=Elfshadow;296631]I'm a learning C++ programmer but one of my friends is a VB 6 programmer.He wants to go to vb.net but it makes him mad because it's so different from VB 6.Could someone please tell me any good tutorials for VB 6 to VB.net programmers.;)[/QUOTE] might try some of [URL="http://www.programmingtutorials.com/vbnet.aspx"]these[/URL] … | |
Re: we also have no snow -- and it pleases me to no end! I hate the stuff, shoveling it off the roads and driveways is a lot of work. If I want to see snow I'll drive into the mountains (which I have not done in the past 25 years). … | |
Re: Here in St Louis they usually rerun it when its midnight central time zone. I've watched it here every since I can remember. Years ago we also watch all (or many) live big-band parties in various cities. Unfortunately TV doesn't do that any more -- what a pitty young people … | |
Re: Getting the list of files from a directory is not too difficult but is os-dependent. In C there is no portable way to do it. In C++ boost libraries have portable functions. [URL="http://www.daniweb.com/code/coder46588.html"]these code snippets[/URL] show how to do it in both linux and ms-windows. | |
Re: I would suggest getting input as a string so that you can detect invalid characters. scanf() won't necessarily do that for you. For example you might type "123.45abcd" and scanf() will accept everything up to the first non-numeric character -- 'a' -- without any complaints. But if you want to … | |
Re: Dam edit button! Sorry Irfan I didn't mean to edit your post. At least I didn't destroy anything that's a great idea!:idea: But I'll bet you soon get millions of spam faxes in your email | |
Re: [URL="http://en.wikipedia.org/wiki/Pseudocode"]pseudocode[/URL] and flow charts are two different things. see link for description and brief examples. | |
Re: what assembler are you using? it can not be assembled with any 32-bit assembler because 16-bit MS-DOS interrupts can not be used in protected mode programs. also the program is not complete -- it does not terminate back to the os when done but instead keeps executing random instructions that … | |
Re: [QUOTE=stoopidnerd;294508]Where would i be able to purchase visual basic or a similar .EXE creator? is there any free versions?[/QUOTE] [URL="http://msdn.microsoft.com/vstudio/express/vb/"]Here[/URL] | |
Re: [URL="http://msdn2.microsoft.com/en-us/library/ms724381.aspx"]GetSystemInfo()[/URL] | |
| |
Re: please post how the array was declared, or better yet post the entire function. what's the max value of each dimension? | |
![]() | |
Re: There are a couple ways you can do it. 1. The program that is to get the numbers should get then from argv. The program that passes the numbers just passes them in the argument list as if you passed them on the command line. [code] // Program A int … | |
Re: [URL="http://www.codeproject.com/buttonctrl/"]Here[/URL] are several MFC button controls -- if you are using pure win32 api functions you can just strip out the MFC code and call win32 api functions directly. | |
Re: MS-Windows -- [URL="http://msdn2.microsoft.com/en-us/library/aa376873.aspx"]InitiateSystemShutdown()[/URL] | |
Re: [code] {'J', 10},{'Q', 10},{'K', 10}, {'A', 1} [/code] The above are all wrong. the values of J, Q, K and A are incorrect, should be 11, 12 , 13 and 14 respectively. | |
Re: So, in otherwords you bought this game (or Santa gave it to you) and you want someone to tell you how to run the game from the hard drive without having the CD in the CD drive? Smells like it might be illegal. | |
Re: >>cin >> cardname[ORDER][COLUM]; I don't understand the problem you are trying to explain. But above line is certainly wrong. The array has 3 rows and 4 columns. Rows are numbered 0, 1 and 2, and the columns are numberd 0, 1, 2, and 3. The line above is trying to … | |
Re: 0x10 is an [URL="http://en.wikipedia.org/wiki/Interrupt_vector"]interrupt vector[/URL], which is a hard-coded memory address where an interrupt handler begins. This can only be used in old 16-bit MS-DOS programs. [URL="http://win32assembly.online.fr/tutorials.html"]Here[/URL] are assembly language tutorials. If you want to learn interrupts then you will need to know basic assembly language. [URL="http://spike.scu.edu.au/~barry/interrupts.html"]Here[/URL] is information about … | |
Re: got a cell phone, now I just have to learn how to use the blasted thingamabob. | |
Re: [QUOTE=nuwan243;294298]Hi everybody, How to crack a password of a simple C++ Programme? Please give me a simple code sample????????? heres to, Nuwan[/QUOTE] passwords are encrypted for a good reason -- to keep people like you from reading them. | |
Re: you will probably have to go to the barcode reader manufacture's web site and see if you can find some programmer's information and device driver. | |
Re: you can use [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry_functions.asp"]win32 api functions[/URL] (scroll down to bottom for GetPrivateProfile??? functions) | |
Re: look at an [URL="http://www.asciitable.com/"]asscii chart[/URL] and you find that the ascii value of the letters 'a' to 'z' are 97 thorugh 122 respectively. This will return a character beteween 'a' and 'z'. Use the same technique to get a number between 1 and 10. [code] rand() % ('z' - 'a' … | |
Re: baud rate described [URL="http://en.wikipedia.org/wiki/Baud"]here[/URL] >>? Why we cannot transmit data than that (maximum ) data rate? how fast can you talk? why can't you talk any faster? | |
Re: you already have a schedule of doctors and times. Convert the times from HH:MM into just minutes for easy comparison. For example: 5:14 AM is (5*60)+14 = 314 minutes into the day. [code] beginning of loop: get current time, convert current hour and minutes to just minutes and compare it … | |
Re: [QUOTE=nuwan243;294191]12) what are the I/O ranges?funcitons of it? is it useful to a programmer ? if How ? 13) can we use a C++ programme without windows? I mean can we use C++ programme in MS-DOS mode? Can we run a C++ programme before windows boots?if can how to do … |
The End.