15,300 Posted Topics

Member Avatar for sunnykaa

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

Member Avatar for maugc
0
257
Member Avatar for stevanity

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.

Member Avatar for stevanity
0
871
Member Avatar for Kanoisa

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

Member Avatar for Kanoisa
0
1K
Member Avatar for permutations

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 …

Member Avatar for x_bharg
0
3K
Member Avatar for happygeek

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

Member Avatar for Dani
2
1K
Member Avatar for BDove
Member Avatar for BDove
0
215
Member Avatar for Karlwakim

[URL="http://lmgtfy.com/?q=QT"]Where to get QT[/URL] OpenGL might be your best choice for cross platform.

Member Avatar for Karlwakim
0
97
Member Avatar for Aravind Gumataj

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

Member Avatar for Ancient Dragon
0
269
Member Avatar for secret-code

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.

Member Avatar for adityatandon
0
217
Member Avatar for Amina Mishu

[URL="http://www.daniweb.com/software-development/cpp/code/217091"]This[/URL] might be one place to start

Member Avatar for adityatandon
0
117
Member Avatar for ila_asia
Member Avatar for adityatandon
0
205
Member Avatar for khelly
Member Avatar for 3435
Member Avatar for khelly

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]

Member Avatar for khelly
0
372
Member Avatar for pspwxp fan

[URL="http://www.cyberarmy.net/forum/prog/messages/236398.html"]This was the very first hit [/URL]with google

Member Avatar for pspwxp fan
0
1K
Member Avatar for MooGeek

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 …

Member Avatar for vegaseat
0
163
Member Avatar for sergent

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

Member Avatar for mike_2000_17
0
220
Member Avatar for brcondor

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.

Member Avatar for Ancient Dragon
0
48
Member Avatar for see_bharath

This will work ok because it isn't trying to change a string literal [code] char s[] = "hello world"; *(s+1) = 'a'; [/code]

Member Avatar for Schol-R-LEA
1
307
Member Avatar for mnNewbie

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 …

Member Avatar for WaltP
0
290
Member Avatar for sasho648

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

Member Avatar for sasho648
0
137
Member Avatar for twek

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.

Member Avatar for easysir
0
3K
Member Avatar for joankim
Member Avatar for labariasoft

Is [URL="http://www.adbrite.com/"]this[/URL] the Adbrite site? I didn't have any problems with it.

Member Avatar for John Summer
0
212
Member Avatar for esesili

[URL="http://www.functionx.com/cppcli/fileprocessing/Lesson01c.htm"]tutorial here[/URL]

Member Avatar for esesili
0
241
Member Avatar for mc3330418

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 …

Member Avatar for Ancient Dragon
0
72
Member Avatar for roona

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 …

Member Avatar for VernonDozier
0
242
Member Avatar for ingeborgdot@yah
Member Avatar for newbiecplusplus
Member Avatar for Ancient Dragon

[URL="http://www.youtube.com/watch?v=kNMjx6tnJbQ&feature=g-pop&context=G235279bYPAAAAAAAAAA"]Youtube Video[/URL]

Member Avatar for Tim Elsky
0
58
Member Avatar for jeevsmyd

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?

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for happygeek

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.

Member Avatar for jammerjoe
0
1K
Member Avatar for johnnyboy567890

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

Member Avatar for Ancient Dragon
0
98
Member Avatar for snowhite89

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 …

Member Avatar for Moschops
0
268
Member Avatar for VirusS

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

Member Avatar for VirusS
0
268
Member Avatar for jeevsmyd

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]

Member Avatar for jeevsmyd
0
72
Member Avatar for Rupindersingh

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 …

Member Avatar for Ancient Dragon
0
117
Member Avatar for ztdep
Member Avatar for LdaXy

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 …

Member Avatar for Moschops
0
115
Member Avatar for PreyaticIntent

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

Member Avatar for Ancient Dragon
0
176
Member Avatar for cahitburak

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.

Member Avatar for cahitburak
0
181
Member Avatar for michael.ngobeni

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.

Member Avatar for JoshArgent
0
284
Member Avatar for imrandavidm

[QUOTE=imrandavidm;1716276]why doesnt getch() ,cin , cout etc work...?[/QUOTE] They work great when you include the correct header files.

Member Avatar for v3ga
0
52
Member Avatar for jayanta87

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.

Member Avatar for Ancient Dragon
0
126
Member Avatar for TheWickedKid

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]

Member Avatar for Ancient Dragon
1
16K
Member Avatar for mc3330418

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

Member Avatar for Ancient Dragon
0
132
Member Avatar for asuprem

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

Member Avatar for asuprem
0
625
Member Avatar for tformed

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.

Member Avatar for mikrosfoititis
0
1K
Member Avatar for PrimePackster

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.

Member Avatar for PrimePackster
0
250
Member Avatar for l1nuxuser

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

Member Avatar for kndubey88
0
666

The End.