15,300 Posted Topics
Re: I won't write the program for you but here is how to declare the array. [code] char array[3][3]; [/code] | |
Re: what's even more supprising to me is that the baby's grandfather bought him a shotgun as a gift :S [quote] You know you are a rednick when your 15 month old son has his very own shotgun[/quote] | |
Re: Do you mean you want to a C program that will copy all the files in the folders you mentioned into another folder? That isn't very difficult if you using FindFirstFile() and FindNextFile(), then for each file found call the win32 api function CopyFile(). >>can somebody do an icon compiling … | |
Re: I don't [b]hate[/b] anyone. But it annyoed me that I my supervisor and I would discuss a problem and agree upon a solution, then a week later she would deny the whole thing.:@ I threatened to use a tape recorder next time. | |
Re: you can make it write the output to a file and then your program will have access to it. Or instead of system() use pipe() and your program can read the program's output into a variable such as a character buffer. | |
Re: For the year in DD-MM-YYYY format, convert day, month and year into individual integers then validate each of them. For example month must be between 1 and 12, day must be between 1 and the maximum number of days in the month (create an array of integers that contain the … | |
Re: After entering an integer and pressing <Enter> key the Enter key '\n' is still in the keyboard, cin does not remove it. You need to call a function to flush it -- such as cin.ignore() -- after line 47. | |
Re: I saw seen similar constructs several years ago in a VC++ 6.0 MFC program. The parameter to push() mearly creates a temporary instance of the Edge structure and passes that to push(). | |
Re: [QUOTE=joshSCH;397281]Yea, man.. It's been all over the U.S. news the last couple days.. The U.S. did not raise our warning level though.[/QUOTE] I live 7 miles from Scott Air Force Base, went there twice today, and I can assure you the military is on hightened alert since the happenings in … | |
Re: >>How can I draw this line with DrawBreakLine func did you try calling the function twice -- first time with {0xff,0xff} and the second time with {0x00,0x00} ? If that doesn't work then it probably can't do what you want it to without modifying the function. | |
Re: pass char** which is a pointer to a pointer, like this [code] void foo( char ** ptr) { *ptr = new char[255]; } int mian() { char *ptr = 0; foo( &ptr ); <snip> return 0; } [/code] | |
Re: >>How do I get the program to request for a player's name declare a std::string object to hold the name, then call getline() to get the name from the keyboard. >>How can I keep track of the user's guesses with a counter declare an integer object to be the counter … | |
Re: I think you will have to write a kernel-level program to do that. search microsoft site for the Windows DDK (device driver kit) | |
Re: in c++ use the fstream or ifstream class that is declared in <fstream> and <iostream> header files. fopen() works too, but its declared in <stdio.h> and is C, not C++. Look in [URL="http://www.daniweb.com/code/cplusplus.html"]cplusplus code snippets [/URL]and you will find quite a few examples. >> fopen ("DIR C:\\WINDOWS\\system32\\sol.exe", "\n"); That line … | |
Re: Your compiler should have given you a bunch of compile errors. Here is the list I got with VC++ 2005 Express (yes I know you are using *nix but your compiler should have given you similar errors). [code] d:\dvlp\test2\test2\test2.cpp(110) : error C2065: 'm' : undeclared identifier d:\dvlp\test2\test2\test2.cpp(111) : error C2065: … | |
Re: using VC++ 2005 express [code] int main() { unsigned char array[] = {1, 2, 3, 4, 5, 6, 7}; // Assembly __asm { MOV AL,array[0] ; ok MOV AL,array+2 ; ok lea ebx, array MOV AL, [ebx] ; ok } [/code] | |
Re: >>Can anyone help me in getting information about the other two buttons at the application Not likely since we don't have the hardware. Sounds like a hardware problem since all the other 5 buttons work as expected. | |
Re: >> The program then looks for the 7th occurence of all phrases if they exits I don't understand that one either. Did you quote the assignment correctly or did you just attempt to paraphrase it? | |
Re: Objects of type Personnel can not be converted to PersonnelNode because it knows nothing about the data and methods of the child class. Its a matter of inherentence -- PersonnelNode inherits from Personnel, not the other way around. | |
Re: >>Did I do anything wrong? Don't know -- why do you ask? | |
Re: [URL="http://support.microsoft.com/kb/290627"]maybe this[/URL] will help ????? | |
Re: with such a small amount of code how do you think anyone is going to know the answer to your question? But my guess is that the display() function is never called. | |
Re: Good luck on the test and have a great time in Chicago. Hope you have time to do some sight-seeing while there. | |
Re: >>X - Expect them to obey [URL="http://www.bbc.co.uk/doctorwho/gallery/"]children are not our slaves.[/URL] | |
Re: >>how can i increase the enum type to go from freshman to sophemore etc. with the assignment operator: [inlinecode]x = sophmore;[/inlinecode] | |
Re: Line 4: the next pointer in struct Book should be struct Book *, not struct node * | |
Re: [QUOTE=Narue;394222] >Not letting something work is a good way of being paid for it again. Not letting something work is a good way to go out of business. You don't seem to understand that if you break things in a new system that worked on the old system, nobody will … | |
Re: does your browser allow cookies on your computer? I never (hardly) have to specifically log in -- I'm auto logged in every time I visit DaniWeb and have never had a login problem. | |
Re: You can't invoke one executable program (*.exe) from another by merly including a header file and calling new to create an instance of it. You have to use CreateProcess(), ShellExecute() or another similar function to launch an instance of that program. | |
Re: >>I really doubt this is working correct because if you run this program everything equals '-6' except the last line which equals 41 million. its because the printf() statement does not have enough parameters. Count the number of %d's in the format string then count the number of actual parameters … | |
Re: >>I just lost mine a few days ago and my parents insist me on paying for it myself Sounds like you have good parents -- teach you that money doesn't grow on trees and you have to be responsible for your own actions. You might check with a local employment … | |
Re: No. [URL="http://forum.jerrata.com/index.php?topic=4.0"]here[/URL] is one of many tutorials found with [URL="http://www.google.com/search?hl=en&q=winsock+tutorial"]google[/URL]. | |
Re: [URL="http://www.winprog.org/tutorial/"]Here is a link [/URL]to basic win32 api gui programming. It doesn't teach you how to write games but it does introduce you to adding buttons and other controls/resources to windows. | |
Re: Most IT jobs are never advertised. One place to look is a head hunter who charges the company not the prospective employee. You will probably have to get an entry-level job but with your education you should advance in your career faster then others with only a BA/BS or no … | |
Re: I don't think you can, unless of course you add something to your program that will crash the operating system :) | |
Re: >>2) Installing SparseLib++ library The instructions seem pretty clear to me assuming you are on *nix and using g++ compiler. | |
Re: The error indicates the program does not have a main() function -- maybe you did not create the correct type of project, such as you created a console project when you should have created a windows project. | |
Re: read your textbook -- its probably there somewhere. | |
Re: c-style character arrays can not be copied like you are attempting to do in lines 56-58. You have to use strcpy() to do that [code] strcpy(temp.w,myArray[i].w); [/code] | |
Re: The if statements on line 103 and others similar are coded incorrectly. Using || is coded just like using &&. I'm not going to waste my time correcting your work so I'll just post line 106. [code] if(a==19||20 && b==20 && c==20){ // WRONG should be if((a == 19 || … | |
Re: lines 27-36 are invalid variable names -- variable names can not be numbers. Maybe you just forgot to delete those lines ??? >>“Q” through “Z”, (where “Q” is 0 and “Z” is 9) that is wrong -- if 'Q' = 0 then 'Z' must be 10 when I count them … | |
Re: I just compiled and linked your program without any error messages after adding pragma to remove warning C4996. So your problem must be that you did not set up the paths to the SDK correctly. recheck the tools to see that you added the path to the platform sdk libraries … | |
Re: what compiler are you using? If its a 16-bit compiler such as Turbo C there is functions such as int86(). Or you can use inline assembly if your compiler supports it. | |
Re: That error message means that when line line 12 is executed variable x has not been assigned a value yet so it just contains some random value. Programs are normally executed in the same order that you code them, so line 12 is executed immediately after line 11, and line … | |
Re: do you mean multi-threaded program? Its the operating system that does multi-tasking, not the individual program. How to do that depends on the operating system you are using. | |
Re: worked ok for me on Vista using VC++ 2005 Express. If you are using *nix maybe it does not have a pause shell command ??? | |
Re: There is [URL="http://www.microsoft.com/downloads/details.aspx?FamilyID=371f6ba4-2737-46ab-b275-0dcab31459b5&DisplayLang=en"]DirectX[/URL] and OpenGL libraries, but I know next to nothing about them. I know DirectX makes heavy use of c++ features and the download file contains several example programs | |
Re: A process is a program that is running, a DLL is just a collection of functions or resources that can be used by processes. The contents of a DLL can be shared by many processes. |
The End.