15,300 Posted Topics

Member Avatar for pixrix

I won't write the program for you but here is how to declare the array. [code] char array[3][3]; [/code]

Member Avatar for pixrix
0
4K
Member Avatar for The Dude

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]

Member Avatar for joshSCH
0
282
Member Avatar for Racoon200

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 …

Member Avatar for Racoon200
0
117
Member Avatar for dcc

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.

Member Avatar for UrbanKhoja
1
619
Member Avatar for quintoncoert

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.

Member Avatar for Ancient Dragon
0
168
Member Avatar for game_fan

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 …

Member Avatar for Ancient Dragon
0
90
Member Avatar for game_fan

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.

Member Avatar for Ancient Dragon
0
139
Member Avatar for invinate

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

Member Avatar for Ancient Dragon
0
81
Member Avatar for Serunson

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

Member Avatar for lasher511
0
361
Member Avatar for kinggarden

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

Member Avatar for kinggarden
0
101
Member Avatar for ridhimasatam

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]

Member Avatar for ~s.o.s~
0
350
Member Avatar for zandiago

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

Member Avatar for zandiago
0
102
Member Avatar for hina-pande

I think you will have to write a kernel-level program to do that. search microsoft site for the Windows DDK (device driver kit)

Member Avatar for Salem
0
117
Member Avatar for ClockworkMind

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 …

Member Avatar for ClockworkMind
0
367
Member Avatar for nadith_cs
Member Avatar for psrujan

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

Member Avatar for Techpedia
0
110
Member Avatar for StockBreak

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]

Member Avatar for Ancient Dragon
0
401
Member Avatar for vinodpn

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

Member Avatar for Ancient Dragon
0
41
Member Avatar for Fusina

>> 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?

Member Avatar for dwks
0
137
Member Avatar for vladdy19

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.

Member Avatar for ~s.o.s~
0
172
Member Avatar for Hamrick
Member Avatar for Hamrick
1
207
Member Avatar for kshrini
Member Avatar for Ancient Dragon
0
56
Member Avatar for vladdy19

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.

Member Avatar for Ancient Dragon
0
116
Member Avatar for christina>you

Good luck on the test and have a great time in Chicago. Hope you have time to do some sight-seeing while there.

Member Avatar for hbk619
0
160
Member Avatar for vemanamar
Member Avatar for The Dude

>>X - Expect them to obey [URL="http://www.bbc.co.uk/doctorwho/gallery/"]children are not our slaves.[/URL]

Member Avatar for joshSCH
2
1K
Member Avatar for vladdy19

>>how can i increase the enum type to go from freshman to sophemore etc. with the assignment operator: [inlinecode]x = sophmore;[/inlinecode]

Member Avatar for Ancient Dragon
0
160
Member Avatar for vladdy19
Member Avatar for Ancient Dragon
0
200
Member Avatar for quintoncoert

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

Member Avatar for Narue
0
197
Member Avatar for dlh6213

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.

Member Avatar for ~s.o.s~
0
215
Member Avatar for gaasha

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.

Member Avatar for Ancient Dragon
0
120
Member Avatar for Jaav

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

Member Avatar for thekashyap
0
143
Member Avatar for turbopok

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

Member Avatar for Narue
0
176
Member Avatar for jan1024188

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

Member Avatar for jan1024188
0
153
Member Avatar for bvgsrs

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

Member Avatar for bvgsrs
0
2K
Member Avatar for BMP1980

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 …

Member Avatar for cressy
0
117
Member Avatar for jan1024188

I don't think you can, unless of course you add something to your program that will crash the operating system :)

Member Avatar for Ancient Dragon
0
179
Member Avatar for tonik69

>>2) Installing SparseLib++ library The instructions seem pretty clear to me assuming you are on *nix and using g++ compiler.

Member Avatar for Sturm
0
203
Member Avatar for jan1024188

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.

Member Avatar for jan1024188
0
160
Member Avatar for comCY
Member Avatar for smiles

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]

Member Avatar for smiles
0
96
Member Avatar for superlox3

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

Member Avatar for Ancient Dragon
0
110
Member Avatar for zandiago
Re: date

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 …

Member Avatar for zandiago
0
118
Member Avatar for Knightfall13x

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 …

Member Avatar for Ancient Dragon
0
121
Member Avatar for narendharg

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.

Member Avatar for Salem
0
113
Member Avatar for zandiago

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 …

Member Avatar for zandiago
0
358
Member Avatar for Cleong

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.

Member Avatar for Ancient Dragon
0
31
Member Avatar for Jaav

worked ok for me on Vista using VC++ 2005 Express. If you are using *nix maybe it does not have a pause shell command ???

Member Avatar for ~s.o.s~
0
105
Member Avatar for quintoncoert

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

Member Avatar for jan1024188
0
145
Member Avatar for amitmistry_petl

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.

Member Avatar for ThomsonGB
0
197

The End.