- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 5
- Posts with Downvotes
- 4
- Downvoting Members
- 4
37 Posted Topics
Re: I'm not sure of your problem, but the only compiler errors I see are the clrscr() (not really a "c" function. That said in testing I found errors after Withdraw and Fast Cash. After Withdraw you display a balance of 0 (zero). After Fast Cash you display a balance of … | |
Re: Certain virus programs stop your internet access by setting the "use proxy server for your lan connections" option. Turning this option off will usually correct the problem. | |
Re: wow "for" is a complete loop control statement. for(assignment component; test component; indexing component) i.e. for(int i = 0; i < 10; ++i) "while" is a limited "for" while(test component) i.e. while (i < 10) You could code while (i++ <10) but that would be rather convoluted. | |
Re: I am not sure I understand. It seems like you could just start outlook, Hi-lite personal folders and create the folder structure you need. Then Hi-lite inbox and drag the messages from inbox to their respective folders/subfolders>. not sure I understand. It seems like you could just start outlook, Hi-lite … | |
Re: Cool but probably slow to execute due to all the math. Seems like handling it as an array of characters and using xor swap would be faster. | |
Re: // On what day were you born? #include <stdio.h> #include <conio.h> #include <iostream> #include <fstream> using namespace std; long jd(int y, int m, int d); void main() { int Year, Month, Day, DayOfWeek; long Julian; Year = 2001; // If only one time doing might I hard code the date … | |
Re: Seems to me I remember that you can estimate the square root by subtracting consecutive odd integers and counting the number of subtractions until you get to zero or less. If less than zero extrapolate to get the final answer. | |
Re: I think there is a free version "Visual Studio Express". It is not supposed to be used for commercial applications. | |
Re: Try: http://www.codeproject.com/Articles/2353/Model-View-Controller-MVC-Using-C-Delegates-and-Ev | |
Re: Simple. A matrix is made up of rows and columns. Given a matrix with 3 rows and 3 columns: 1 2 3 4 5 6 7 8 9 After transpose you have: 1 4 7 2 5 8 3 6 9 | |
Re: Maybe this will clear it up: [CODE]void main(void) { int *p, i; // integer i & uninitialized pointer to an integer *p i = 10; // put a value in i p = &i; // initialize the pointer *p to the address of i printf("%d\n",*p); // printf the value stored … | |
Re: Please define original state? Are you attempting to decrypt previously encrypted data? If so please post the encryption code or at least a copy of the data. | |
Re: First the post-increment p++ has no effect because it happens after the function. Second ”,++*(p)); // got rid of post-increment but still invalid memory write and system crash. If you want to print the second character and, for some reason, do not want to code the standard p[1], then move … | |
Re: Older "C" compilers actually converted "C" source to assembler source and then assembled and linked the code to create the final object. | |
Re: In this code, calay is definately being called. calday might be a good place for switch/case. | |
Re: Here's java script for straight-up AES. It should be easy to converted to C. It is not inverse but there are plenty of explainations on the web. [url]http://www.movable-type.co.uk/scripts/aes.html[/url] | |
| |
Re: Change: char bin[8] = {'0', '0', '0', '0', '0', '0', '0', '0'}; To: static char bin[8] = {'0', '0', '0', '0', '0', '0', '0', '0'}; So that the variable hangs around after the function ends. | |
Re: If I understand correctly you can't print tax because, in the function orderMeals(), the lines that print it are commented out. Even if it weren't it would not print anything because tax is initialized with taxAmount and taxAmount is not initialized with anything. Also the same for totalAllManu. Finally, tax … | |
Re: Seems like that 80 is less than 100 satisfying your first compare. | |
Re: Looks like you only get one character at a time so character[i+1] and character[i+2] are not loaded from the file. Unless 'E' can exist somewhere besides the end of good data, just checking for 'E' will make it work. Why not leave END out of the file and use the … | |
Re: The goto after a miscompare seems un-necessary. I might be tempted to move the read file, get search name, inside the while loop. This would eliminate the need for the redundant code at END: If you simplify the code in this way it will be much easier to follow the … | |
Re: You might try: [url]http://www.thefreecountry.com/sourcecode/cpp.shtml[/url]. Also search for "open soruce C code" | |
Re: 0xff in the extended ascii table is displayed as 'ÿ'. In some cases you can enter it from the keyboard by holding dowm the Alt key and entering 255 on the numeric key pad. | |
Re: I'm not sure but I do not think "char *input" reserves any space for input just defines a pointer. so as soon as typing starts you are writing into a undefined memory location. You would most likely receive some kind of runtime error. | |
Re: Todays date modulo 7 = day of week. 0 = Sunday 6 = Saturday. | |
Re: I suspect it has something to do with how your compiler handles the different types of variables. Both static and global variables remain intact for the entire run of the program. On the other hand local variables are allocated on the stack and remain intact only during the current execution … | |
Re: I'm not sure but it looks like all your for loops are using "i" as an index. Maybe you should use i1,i2,i3 or something.You are also using a secondary index j but I do not see where j is initialized. Finally I think your file problem might stem from c:\\. … | |
Re: I don't think it is all that hard. Try something like this. [code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> #include<conio.h> #define backSpace 8 #define newLine 13 // you can make it better by passing the length of the password // and testing for the length as well as newLine. int GetPassword(char *str); void … | |
Re: I would just bitwise "or" with 0x20 (ie. a |= 0x20;) . If 'A' it becomes 'a'. If 'a' it stays 'a'. | |
Re: [code=c] #include <stdio.h> #include <stdlib.h> #include <String.h> void DropMiddle2(char *Orig, char *New); void DropBlanks(char *Str); void main() { char Number[9],NewNumber[9]; strcpy(Number, "12344321"); printf("Orig %s\n",Number); for(int x = 0; x <3; ++x) { DropMiddle2(Number,NewNumber); printf("%s\n",NewNumber); DropBlanks(NewNumber); strcpy(Number,NewNumber); } } void DropMiddle2(char *Orig, char *New) { int lengthorig = strlen(Orig); int lengthnew … | |
Re: You can get the code here: [url]http://webscripts.softpedia.com/script/Games/KBC-Quiz-23899.html[/url] It is for Turbo C++ but should be easy to modify to any compiler. | |
Re: I use PrimoPDF. It is free and creates a Windows printer. Any document you send to this printer ends up as a .PDF file. Check out ---> [url]http://www.primopdf.com/index.aspx[/url] . | |
Re: At the command prompt enter: PATH %PATH%;YourNewVariable | |
Re: The history of operating systems and their kernel designs might be an interesting project. This could turn into a very large undertaking what with IBM, DEC, Data General etc. Might be less stressing to concentrate on micro computer operating systems. You could get a pretty good story if you look … |
The End.