15,300 Posted Topics
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: please see [URL="http://www.daniweb.com/techtalkforums/thread13488.html"]this thread.[/URL] | |
Re: My favorite planet -- has to be Earth, because we live here. Without Earth none of us would probably be alive to tell about it.. | |
Re: Option 2 is slower because there is a lot more code to be executed. | |
Re: 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. | |
Re: line 355 is missing a comma. Your compiler should have given you errors on that line. Never ever ignore compile errors or warnings. | |
Re: 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. | |
Re: >>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 … | |
Re: >>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. | |
Re: Line 19 -- change || (or) to && (and) logical operator. [edit]Sorry Aia -- didn't see your post[/edit] | |
Re: 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". | |
Re: 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 … | |
Re: 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. | |
Re: If I put your thumbnails side-by-side and look really really hard I can see one is slightly smaller than the other. | |
Re: I don't think there is such a thing as a c++ video. do you mean mp3 files ?? | |
Re: 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. | |
Re: 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] | |
Re: >>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. | |
Re: see win32 api function [URL="http://msdn2.microsoft.com/en-us/library/ms633548.aspx"]ShowWindow[/URL]() | |
| |
Re: 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 … | |
Re: 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? | |
Re: 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] ![]() | |
Re: [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. | |
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. … | |
Re: why ? There are probably other more simpler and more portable ways to accomplish whatever it is you want to do. | |
Re: 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 … | |
Re: [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 | |
Re: 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 … | |
Re: create the function and pass the three variables (tie, player and computer) by reference to it. | |
Re: >>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. | |
Re: >> 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 … | |
Re: [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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: >>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. … | |
Re: 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] | |
Re: 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? … | |
Re: you will probably have to join [URL="http://subversion.tigris.org/"]their mailing list[/URL] to get the answers to your questions. | |
Re: 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 ? | |
Re: use a screen capture program such as [URL="http://www.hyperionics.com/"]this one.[/URL] |
The End.