5,237 Posted Topics
Re: You need to go digging through MSDN to find the equivalent (or at least work-alike) API for the platform you're using. | |
Re: Because storing the result in a shell variable always strings out redundant white space. If you want newlines, then pipe it direct. [ICODE]tripViolations=$($tripwire --check --quiet | awk '/Total violations found/ {print $4}')[/ICODE] | |
Re: > This is my carreer on line. Great, another seat warmer. What are you going to do when you're given your first work assignment, try the same old technique of bugging other people to do your work? | |
Re: Here's another redirection [url]http://cboard.cprogramming.com/showthread.php?t=107852[/url] | |
Re: [url]http://clusty.com/search?query=credit+repair+scams&sourceid=Mozilla-search[/url] You'll need to differentiate yourself from the wide range of scammers which also offer "magic credit repair", which only serves to transfer the "credit" into their own pockets without actually achieving anything of use for the client. | |
Re: But if char array is all you have, and you're not compiling with UNICODE, then this (it would seem) would work just as well AddFontResource(filename); | |
Re: Can you show a small program where you call mygetch, and you have to press return twice | |
Re: I don't think the pre-processor is capable of expanding lines which are themselves pre-processing statements. In short, I don't think it's going to work. | |
Re: [quote=msdn] Remarks GetFullPathName merges the name of the current drive and directory with a specified file name to determine the full path and file name of a specified file. It also calculates the address of the file name portion of the full path and file name This function [B][COLOR="Red"]does not … | |
Re: It looks good - does it work? | |
Re: You could help us by reading the forum rules on how to post code :( | |
Re: > i have to submet my final project next week on 14/10 and i didnt star yet Ohh, so 6 days to go then. When did you get this assignment? - today - a week ago - a month ago If your answer is anything other than "today", then your … | |
Re: [URL="http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Variable-Attributes.html#Variable-Attributes"]section ("section-name")[/URL] You then modify your linker script to place the section you gave to your variable, at the address you want it placed at. | |
Re: Is this you as well? [url]http://www.daniweb.com/forums/thread148485.html[/url] | |
Re: > player1 == ('R' || 'r') Is not the same as player1 == 'R' || player1 == 'r' You might want to consider toupper() to halve the number of tests. | |
Re: [url]http://www.daniweb.com/forums/announcement8-2.html[/url] > i have a problem creating games with C++, So post what you managed to do. | |
Re: > will the first argument be the file name from which the program has been called? Yes. You can even use the registry to specify command line options if you wanted to. | |
Re: [url]http://en.wikipedia.org/wiki/Complex_instruction_set_computer[/url] [url]http://en.wikipedia.org/wiki/Risc[/url] Hell, when I did this, I had to get out of my chair, walk to a library (y'know, where books are kept), look through index cards, more walking past lots of shelves, open a book and start reading. All you have to two is type 4 letters into … | |
Re: You commented out the calculation of mid (line 27)? Line 28 won't even compile.... | |
Re: [url]http://technet.microsoft.com/en-us/sysinternals/bb545046.aspx[/url] Filemon and/or diskmon would probably tell you what's going on. | |
Re: "something wrong" is not a description. There are plenty of coding errors which may be a problem in the end, but which may not be the most immediate problem. | |
Re: Nope - [url]http://www.daniweb.com/forums/announcement8-2.html[/url] You make an effort, then we help. | |
Re: > Return 0; What do you return in the other case? You've got too many node pointers. All you need to scan down the list is [code] while(current != NULL) { valueOfNode = current -> value; // do something with valueOfNode current = current -> next; // advance } [/code] … | |
Re: > Why do i get this error every time i try to compile an SDL source code? What about other programs, like a nice simple "hello world"? It seems to me that you've downloaded the smaller zip file, containing only the IDE, and not the larger zip file containing the … | |
Re: Well if you had [ICODE]static char dbase[/ICODE] then it would remember the state you left it in for next time. But if you ever want to get back to the initial state, then you'd need to code that yourself. > "abc\0","b\0","cde\0","d\0","ef\0","f\0" You don't need those \0, the compiler adds them … | |
Re: There's nothing to stop you from implementing your own "adjacency linked list implementation". How about "[URL="http://clusty.com/search?query=adjacency+linked+list+implementation&sourceid=Mozilla-search"]adjacency linked list implementation[/URL]" Then make a directed graph based on that, and implement the traversal function. | |
Re: [code] typedef struct{ process *data; struct queue *next; } queue; [/code] The "struct queue" inside the typedef refers to an as yet undefined struct. You need to name your struct, before you can point to it. Fortunately, this is easy to do, like so. [code] typedef struct [COLOR="Red"]queue_tag[/COLOR] { process … | |
Re: What does [ICODE]string sentence = firstWord + secondWord;[/ICODE] do? | |
![]() | Re: > I only get 0's and garbage for the average. Strange, I see several typos which would stop the program from compiling, nevermind running. Did you copy/paste the source code from your editor (which would be good) ? Or did you just retype the code here based on what you … |
Re: You could try concentrating on the rather simple task of understanding how to use code tags when you post. You know, before actually moving onto something tricky like actually writing code. It's not like the board goes out of the way to hide this information from you; I count at … | |
Re: Sure, open F1,... open F2,... then aLine = <F1> anotherLine=<F2> and so on | |
Re: Read this first - [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] | |
Re: [code] if ( tree == NULL ) { return -1; } else { return tree->height; } [/code] | |
Re: Pass the size as a parameter. [ICODE]void foo ( char *buff, size_t size );[/ICODE] kinda thing. | |
Re: Yeah, the first challenge is for you to read the introduction threads, such as > Our Software Development forum category encompasses topics related to application programming and software design. When posting programming code, encase it in [code], [code=syntax], where 'syntax' is any language found within our Code Snippets section, or … | |
Re: Carry on reading the documentation for rtflib perhaps? Or create an RTF file how you want, then write a program to "dump" the RTF file so you know what the structure is, then repeat that in your program. | |
Re: Check your fingers for typos. You're doing "ONE-PLUS-PLUS", not "eye-plus-plus" > • the function is called in the main function as follows: > nrOccur = nrACGOccur(geneticArray); And do you do that? Or do you just call it and ignore the result? | |
Re: Start at the right, increment it by 1, then scan to the left to see what else can be incremented. | |
Re: You've implemented a stack, so it's API is fixed at push and pop. If you want to reverse it, then you pop everything off one stack (one at a time), and push it onto another. | |
Re: [quote=www.schneier.com/twofish.html] Twofish is unpatented, and the source code is uncopyrighted and license-free [/quote] Gee, what more do you want? | |
Re: Yeah, and yet another post where the noob didn't read ANY of the threads / messages which describe how to post code tags. | |
Re: Well perhaps you could begin by using a debugger? Do you even know what one is? I only ask because sometimes knowledge about even the existance of such things comes as a surprise to some people. Or even telling us the sequence of commands which leads to a problem. Say … | |
Re: Or without having to store anything, read a letter, and output the corresponding number | |
| |
Re: Some of these [url]http://en.wikipedia.org/wiki/Hall_effect_sensor[/url] And some of these [url]http://en.wikipedia.org/wiki/Analog-to-digital_converter[/url] Look for them at your local electronics component supplier. | |
Re: [url]http://www.tek-tips.com/viewthread.cfm?qid=1350973&page=1[/url] > I don't have a debugger since I'm compiling in cygwin What about gdb ? [code] $ gcc -g foo.c $ gdb a.exe GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome … | |
Re: > Is it possible to read a whole file at once with text files Are you going to write some code to stop your machine grinding to a halt if someone attempts to load an especially large file (either accidentally, or on purpose). Or put another way, what are you … | |
Re: ANSWERED AGAIN in your other threads, just stop spamming the board. | |
Re: Clear the off-screen buffer Draw into it Copy it to the on-screen buffer At any given moment in time, every pixel in the on-screen buffer is either the old pixel, or the new pixel. The on-screen buffer is never in a blanked state. |
The End.