15,300 Posted Topics
Re: [QUOTE=spatzky;646219]Does anyone have earned bigbucks in PPC? I really need to earn money today.[/QUOTE] So get off your duff and get a paid job. | |
Re: parsers start at the top of the program (line 1) and work themselves down. The bottom up approach would be a little like you trying to read a book backwards. | |
Re: >>Is there any quick way i can do a goto line without seeking through the whole file or is that asking too much? Depends. If it is a file that you want processed only once, then the answer would be no. But if you need to process the file multiple … | |
Re: 1. unless you want it for some other reason there is no need for the length member of the structure. You can easily get the word's length by calling strlen() 2. The program looked ok until the last loop where it is supposed to print each of the words. It … | |
Re: [QUOTE=The Dude]Sorry buddy,im not yelling... I meant to say "I figured all spammers come from the USA"[/QUOTE] Very few of them do. | |
Re: Have you read [URL="http://www.winprog.org/tutorial/controls.html"]this tutorial[/URL]? | |
Re: [URL="http://lmgtfy.com/?q=QT"]Where to get QT[/URL] OpenGL might be your best choice for cross platform. | |
Re: [URL="http://msdn.microsoft.com/en-us/library/aa716587(v=vs.60).aspx"]Here[/URL] is a complete tutorial on how to access database from MFC programs. | |
Re: I'm assuming client and server are two separate programs. Two processes can not share the same memory location. How to pass data between client and server will depend on the operating system. Its even more complicated when client and server run on different computers. | |
Re: [URL="http://www.daniweb.com/software-development/cpp/code/217091"]This[/URL] might be one place to start | |
Re: Put $5,000.00 USD in my PayPal account and I'll write it for you. | |
| |
Re: The first problem I see is that you need to surround the structure with { and } braces and put the typedef statement outside the structure [code] typedef struct menu RECORD; struct menu { void addRecord(RECORD input[], int arraycounter); void printRecord( input[]); void printAllRecord( input[]); }; [/code] | |
Re: [URL="http://www.cyberarmy.net/forum/prog/messages/236398.html"]This was the very first hit [/URL]with google | |
Re: Some colleges/universities have programming under two different departments: Computer Science in the math department and Computer Programming in Business Admin. Some also have computer programming in its own department. In USA it might also depend on which Bachelors degree you want: Bachelor of Science (lots of science and math) or … | |
Re: >>And I also know that it's not allowed to declare functions in headers unless they are inlined Wrong -- see your second example. >>Will it still be inlined? No (assuming lines 6-16 are in a *.cpp file and not *.h; there will be lots of other problems if you put … | |
Re: what are you trying to do?? If you just read the bytes from the file you don't need floating point matrix but unsigned char matrix as it will consume a whole lot less memory and more accurate. | |
Re: This will work ok because it isn't trying to change a string literal [code] char s[] = "hello world"; *(s+1) = 'a'; [/code] | |
Re: line 43, the scanf() is wrong. Use "%s" (for string), not "%c" (for a single character). scanf() will not work at all if there are spaces in the filename. In that case call fgets() instead of scanf(), e.g. [icode]fgets(filename, sizeof(filename), stdin);[/icode] Then you will have to remove the '\n' that … | |
Re: If you are using Microsoft's MFC you can use a[URL="http://msdn.microsoft.com/en-us/library/aa733768(v=vs.60).aspx"] splitter window[/URL]. | |
Re: If your program is being compiled for UNICODE and the string is non-English, then more than likely it can not be converted. If English, then there are conversion functions. | |
![]() | |
Re: Is [URL="http://www.adbrite.com/"]this[/URL] the Adbrite site? I didn't have any problems with it. | |
Re: [URL="http://www.functionx.com/cppcli/fileprocessing/Lesson01c.htm"]tutorial here[/URL] | |
Re: The loop counter [b]i[/b] IS the index value you want. Declare that loop counter above the loop so that its global to the whole function. Then on line 13 just use it [b]name[i][/b] line 4: change the data type of variable [b]highest[/b] from int to double because array average is … | |
Re: why did you include stdafx.h? That's only needed for MFC programs. Why did you write it in c++ if the requirement was to write it in C? To convert to C you have to [list] [*]change the header files, include stdio.h and string.h. Others may also be needed depending on … | |
![]() | Re: did you use "Add/Remove Programs" to uninstall Abode? |
[URL="http://www.youtube.com/watch?v=kNMjx6tnJbQ&feature=g-pop&context=G235279bYPAAAAAAAAAA"]Youtube Video[/URL] | |
Re: How can you tell the difference between LABEL and OPCODE? If there are two words on a line, how do you know the first word is LABEL or OPCODE? | |
Re: I'm not into this kind of games but I showed this thread to a friend who is into them and he told me that bodyguards are not all that unusual in online gaming, but what is unusual about this one is that the bodyguard is a 15-year-old kid. | |
Re: How the data is interpreted depends on the operating system. MS-Windows and *nix are opposite -- *nix interprets them left to right and MS-Windows right-to-left. That's termed endianness (see [URL="http://en.wikipedia.org/wiki/Endianness"]wiki article here[/URL]) | |
Re: cin is getting an error on the first character because it is not numeric digit. You declared variable [b]character[/b] as int, so cin expects to read numeric digits. Change the data type of [b]character[/b] to char and it should work as expected. Suggestion: Change the while loop to read all … | |
Re: >>i need the code in MASM615 And I need $1Billion too, but like you I'm not likely to get it without some effort on my part. Post the code you have written. | |
Re: Just call sscanf() to convert the string, like this [code] int main() { char text[] = "0x1C"; int x = 0; sscanf(text,"%x", &x); printf("%d\n", x); } [/code] | |
Re: ftell() returns the position of the file pointer within a file, not the number of characters in the file. Each time you hit the Enter key getchar() will read that key too and write it out to the file. MS-Windows operating system changes the '\n' (Enter key) to '\r' and … | |
Re: Add a line at the end of main() (e.g. cin.get() )to keep the window open | |
Re: Microsoft compilers do not define s16, s32, or u8 so you would have to typedef them yourself if you want to use their compiler. I think the best compiler for you would be Code::Blocks and MinGW compiler, which is supported on by *nix and MS-Windows. MinGW compiler has already ported … | |
Re: That has been a common problem for many years with MFC. The way to solve it is to hook the keyboard event and ignore the Enter key. [URL="http://www.codeguru.com/forum/showthread.php?t=231075"]Here[/URL] are a few more suggestions | |
Re: Is .NET framework installed on the XP computer? As for Win7 computer, inpout32.dll may not be compatible with it -- just a guess. If you google for that library there is no mention of any version of MS-Windows newer than XP. | |
Re: compressing files is a very complex algorithm. gzip is a free open-source library. Or if you want to spend the $$$ you can buy the libraries from pkware, the originator of the zip format. | |
Re: [QUOTE=imrandavidm;1716276]why doesnt getch() ,cin , cout etc work...?[/QUOTE] They work great when you include the correct header files. ![]() | |
Re: controller.h has no clue what [b]registration[/b] is. db.h -- you will have to rename that function because [b]register[/b] is a c++ keyword. | |
Re: You can not use != or == operator to compare two character arrays, you have to call strcmp() to do that [icode]if( strcmp(A.signup.username,A.login.username2) != 0)[/icode] | |
Re: >>average= (wins[numItems]*100)/losses[numItems]; That will crash when losses[numItems] is 0 because division by 0 is undefined. Test losses[numItems] for 0 before performing that division. I think the whole algorithm in that function is incorrect. To get the average you have to sum them all up and then perform the division [code] … | |
Re: >>With the two additions, it skips to the end after I enter the number of numbers Because scanf() leaves the Enter key '\n' in the keyboard buffer, and fgets() stops reading at the first '\n' it encounters. Call getchr() after scanf() to remove '\n' from the keyboard buffer. | |
Re: Can't you use loops and division and multiplication to get the square root ? For example, the square root of 16 can be found by trial-and-error multiplying 1*1, then 2*2, then 3*3, then 4*4 until you get a number that is close to the original number. | |
Re: Not all 255 possible ascii characters are printable and you will just see blanks or funny looking squares for them. [URL="http://www.asciitable.com/"]Here[/URL] is one way the table should be printed. | |
Re: For Microsoft MFC CString to char*, see [URL="http://msdn.microsoft.com/en-us/library/ms235631(v=vs.80).aspx"]this post[/URL]. Just use CString's GetBuffer() to get the pointer to the wchar_t*. |
The End.