15,300 Posted Topics

Member Avatar for Sacky

argv[0] contains the full path to the program. I don't think the PATH environment variable will help you because it contains a huge number of semi-colon separated directories.

Member Avatar for Salem
0
88
Member Avatar for keatsey-9

lines 9, 11, 17 and 19 -- they are looping too many times, causing data overflow. Replace "<=" with just "<". line 16: accessing a row in the array that does not exist. Since array elements begin with 0, there is no 6th row.

Member Avatar for Ancient Dragon
0
87
Member Avatar for CRD

you should read the [b]Read Me[/b] threads at the top of this board. They contain all (or probably most) of the information you are looking for. If you want to print simple text files you can treat the printer as any other ordinary text file. The file name of the …

Member Avatar for CRD
0
176
Member Avatar for Dani

yes I have too, but thought it was just my internet provider or something. Its also somewhat slow loading the whole page, half will load ok but the ramainder (probably menus) takes a while. In the meantime I can't use the vertical browser scrollbar.

Member Avatar for jbennet
0
610
Member Avatar for shamma

please see [URL="http://www.daniweb.com/techtalkforums/thread13488.html"]this thread.[/URL]

Member Avatar for Ancient Dragon
0
95
Member Avatar for mattyd

My favorite planet -- has to be Earth, because we live here. Without Earth none of us would probably be alive to tell about it..

Member Avatar for lol_hacker101
0
488
Member Avatar for wilj
Member Avatar for wilj
0
87
Member Avatar for amt_muk
Member Avatar for vijayan121
0
128
Member Avatar for Lavitz

One way to do it might be to convert the integer to a string to make it easier to manipulate the individual digits. sprintf() function will convert the int to a string.

Member Avatar for Lavitz
0
161
Member Avatar for fightfox06

line 355 is missing a comma. Your compiler should have given you errors on that line. Never ever ignore compile errors or warnings.

Member Avatar for thekashyap
0
157
Member Avatar for jamello

benefits: none implications: post stuff that is helpful to others. The more people like what you post, the more of those little green squares you get. The opposite is true also, you can get bad rep too.

Member Avatar for jamello
1
280
Member Avatar for RaCheer

>>The code I have written so far works, but it prints the entire code If it prints the entire code then it doesn't work, does it.;) line 8: this is a c++ program, so replace the char array with std::string, which will allow you to enter a file name of …

Member Avatar for RaCheer
0
142
Member Avatar for squinx22

>>Is this possible? If it is, How? yes, use the -o option and specify the full path to the name of the object file. BTW: *nix doesn't use MS-Windows .EXE naming convention -- executables can, but normally do not have an extension.

Member Avatar for Ancient Dragon
0
81
Member Avatar for mcole50

Line 19 -- change || (or) to && (and) logical operator. [edit]Sorry Aia -- didn't see your post[/edit]

Member Avatar for ndeniche
0
146
Member Avatar for monkeyhead

post your code. It doesn't matter whether it is a float or double -- the problem is not the data type but how you are trying to display it. If this is a C program and you are using printf(), then the format string needs to be "%.1f", not "%d".

Member Avatar for ndeniche
0
110
Member Avatar for wallish

it won't matter how many spaces are between the marker and the '=' symbol. After reading the whole line into memory take the first word (which starts with the first space on the line). If its the marker you want search for the '=' symbol and the text you want …

Member Avatar for wallish
0
330
Member Avatar for dm215

That for loop will iterate 11 times, not 10. 0, 1, 2, 3, ... 10 are 11 numbers. Either increase the size of vec to 11 or correct the loop.

Member Avatar for thekashyap
0
161
Member Avatar for Ancient Dragon
Member Avatar for Dani
0
58
Member Avatar for ~s.o.s~

If I put your thumbnails side-by-side and look really really hard I can see one is slightly smaller than the other.

Member Avatar for ~s.o.s~
0
157
Member Avatar for revenge2
Member Avatar for qwertydid
0
85
Member Avatar for toiletduck

You could create a structure to hold the data for one candidate, and create an array or linked list of that structure for each candidate in the input file. After the file is read, sort the array in ascending order. Finally print the array as desired.

Member Avatar for Ancient Dragon
0
93
Member Avatar for ondrej97

use ShellExecute() see [URL="http://www.sourceinsight.com/docs35/ad917966.htm"]here[/URL] and [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp"]here[/URL]

Member Avatar for Ancient Dragon
0
55
Member Avatar for zak2710

>>this codes have alot of erro Well, you need to fix them :-/ Look at the first error, fix it, then recompile. If more errors then repeat the above.

Member Avatar for Ancient Dragon
0
102
Member Avatar for virus.exe

see win32 api function [URL="http://msdn2.microsoft.com/en-us/library/ms633548.aspx"]ShowWindow[/URL]()

Member Avatar for Ancient Dragon
0
55
Member Avatar for louis7370
Member Avatar for machspud

I didn't read your code, but what I would do is put the rainfall amount and month in a structure to keep them together. Then sort the structures by rainfall amounts. That makes it pretty easy to then just print the sorted array of structures and associated months. [code] struct …

Member Avatar for WaltP
0
2K
Member Avatar for mcfunpants

what operating system? If MS-Windows, what version ? >>I did everything it said to do in the menus what menus? what program are you using to do this?

Member Avatar for mcfunpants
0
107
Member Avatar for kendell
Member Avatar for wujianwei

ConvertToInteger can be reduced to this: [code=c] void HugeInteger::convertToInteger() { array1 = new int(strlen(a)); for (int i=0;i<strlen(a);i++) array1[i] = a[i] - '0'; array2 = new int(strlen(b)); for (int i=0;i<strlen(b);i++) array2[i] = b[i] - '0'; } [/code]

Member Avatar for iamthwee
0
143
Member Avatar for squinx22

[URL="http://www.daniweb.com/techtalkforums/post347646.html#post347646"]same answer[/URL] we gave you last week. Join their mailing group and ask them your question.

Member Avatar for jwenting
0
118
Member Avatar for Ancient Dragon

My son bought this for me a couple weeks ago, and now I'm hooked :-O My only real problem is my character dies quite often and then I have to go hunting for his stuff (he loses all his cloths when he dies). I really hate that in a game. …

Member Avatar for ~s.o.s~
0
99
Member Avatar for linux

why ? There are probably other more simpler and more portable ways to accomplish whatever it is you want to do.

Member Avatar for Nick Evan
0
105
Member Avatar for bigben09

line 30 is illegal syntax. just initialize the int to 0 [code] int grade = 0; [/code] now after the user enters the grade at line 37 you need to validate it. If not valid then make him enter the grade again. You probably need to do all that in …

Member Avatar for Ancient Dragon
0
97
Member Avatar for hassanmushtaq

[URL="http://www.microsoft.com/downloads/details.aspx?FamilyID=f663bf48-31ee-4cbe-aac5-0affd5fb27dd&displaylang=en"]Install this c++ compiler[/URL], which includes an emulator

Member Avatar for Ancient Dragon
0
74
Member Avatar for louis7370

Have no idea what class Node is because I'm not reading your text book and listening to your teacher. Don't just post your assignments and expect us to do your work for you. Will be glad to help you if you post the code showing you are attempting to solve …

Member Avatar for Ancient Dragon
0
98
Member Avatar for kylcrow

create the function and pass the three variables (tie, player and computer) by reference to it.

Member Avatar for Madzts
0
164
Member Avatar for louis7370

>>can help me solve this question? Can we [b]Help[/b] ? Yes. Will we [b]write it for you[/b]? No. Do you know how to create a class ? If not then you should re-read the material in your text book. You can also see thousands of examples here at DaniWeb.

Member Avatar for WaltP
0
105
Member Avatar for alejo

>> my instructor says it doesnt really matter... what gives? tell your instructor to RTFM! The c and c++ iso standards dictate that main() must always return an integer. I think you will find a lot of references to it here at DaniWeb. And [URL="http://www.google.com/search?hl=en&q=void+main"]here[/URL] are quite a few references …

Member Avatar for alejo
0
107
Member Avatar for Futchy

[QUOTE=Futchy;351534]im not very good with c, im a web student not a programming one lol i would be imbarrased to post my effort ;;[/QUOTE] that doesn't matter -- we are all in your situation at one time. Just post what you've tried so that someone can help you out.

Member Avatar for Ancient Dragon
0
81
Member Avatar for jan1024188

There are several wn32 api functions: CreateProcess() gives you the most control over the process. But SHExecute() mabe a little simpler to use. >>but this is not portable if you mean portable across operating systems, then that is nothing to worry about because neither are any of the win32 api …

Member Avatar for Ancient Dragon
0
119
Member Avatar for virendra_sw

what version of vista do you have ? I'm using Home Premium and SQL Server Express installed and starts without any problem. I also have VC++ 2005 Express, but don't know if that is a prerequisit to the sql server.

Member Avatar for jbennet
0
160
Member Avatar for MiloTN

RandInvNormal() on line 10 is prototyped to take two double arguments. On line 27 you are attempting to pass two pointers. One or the other is wrong.

Member Avatar for Ancient Dragon
0
384
Member Avatar for Ortal

the formatting is really horrible -- how did you get all those color code tags there? I just simply removed the code tags to make your code readable.

Member Avatar for Ortal
0
448
Member Avatar for jan1024188

what kind of prorogram did you write? .NET ? does the other computer have .NET installed? does it have the correct version of the windows DLLs ? The compiler bin directory has a depends.exe program that will show you all the DLLs that your program needs. Run it against your …

Member Avatar for jan1024188
0
93
Member Avatar for olams

>>I don't know what a half adder Neither do I. It must have been explained in class or in your textbook. >>I need help as to write the driver .cpp and the other .cpp Yes we will be glad to help you when you post the code you have written. …

Member Avatar for Dani
0
127
Member Avatar for lats

do you want to convert to a string? sprintf() can do that. [code] char hexval[8] = {0}; int n = 49; sprintf(hexval,"0x%X", n); [/code]

Member Avatar for Ancient Dragon
0
135
Member Avatar for fatboysudsy

Just make the menu option the first character of the string that the client sends to the server. But I think that is what you already said. I have no idea what the remainder of that string will be. >>and how it can be done using tab spacing ? Huh? …

Member Avatar for Ancient Dragon
0
99
Member Avatar for jk_bscomp

you will probably have to join [URL="http://subversion.tigris.org/"]their mailing list[/URL] to get the answers to your questions.

Member Avatar for Ancient Dragon
0
105
Member Avatar for Priya.K

That's a mighty tall question that can have millions of answers. What kind of database? SQL or someting else? What are the names of the tables and fields ?

Member Avatar for Ancient Dragon
0
68
Member Avatar for sukhmani

use a screen capture program such as [URL="http://www.hyperionics.com/"]this one.[/URL]

Member Avatar for Ancient Dragon
0
40

The End.