5,237 Posted Topics

Member Avatar for it2051229

You need to go digging through MSDN to find the equivalent (or at least work-alike) API for the platform you're using.

Member Avatar for Salem
0
118
Member Avatar for shwick

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]

Member Avatar for shwick
0
137
Member Avatar for Aamp88

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

Member Avatar for William Hemsworth
0
141
Member Avatar for En-Motion

Here's another redirection [url]http://cboard.cprogramming.com/showthread.php?t=107852[/url]

Member Avatar for ahamed101
0
298
Member Avatar for ridley

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

Member Avatar for Salem
0
190
Member Avatar for Th3_uN1Qu3

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

Member Avatar for Th3_uN1Qu3
0
878
Member Avatar for ahamed101

Can you show a small program where you call mygetch, and you have to press return twice

Member Avatar for ahamed101
0
1K
Member Avatar for unbeatable0

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.

Member Avatar for Salem
0
213
Member Avatar for saneeha

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

Member Avatar for Salem
0
106
Member Avatar for jared_masc
Member Avatar for Student_ABC
Member Avatar for Student_ABC
0
150
Member Avatar for rrreeefff
Member Avatar for uae_uae99

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

Member Avatar for VernonDozier
0
90
Member Avatar for RouseA

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

Member Avatar for Salem
0
154
Member Avatar for aanya
Member Avatar for aanya
0
134
Member Avatar for mrrko

> player1 == ('R' || 'r') Is not the same as player1 == 'R' || player1 == 'r' You might want to consider toupper() to halve the number of tests.

Member Avatar for mrrko
0
2K
Member Avatar for kudusan

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

Member Avatar for Salem
0
306
Member Avatar for siddhant3s

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

Member Avatar for siddhant3s
0
115
Member Avatar for haris76

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

Member Avatar for Denniz
0
261
Member Avatar for mikeregas
Member Avatar for chrissygirl
1
2K
Member Avatar for Ed Lata

[url]http://technet.microsoft.com/en-us/sysinternals/bb545046.aspx[/url] Filemon and/or diskmon would probably tell you what's going on.

Member Avatar for Narue
0
217
Member Avatar for c++ prog

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

Member Avatar for Salem
0
84
Member Avatar for Talli

Nope - [url]http://www.daniweb.com/forums/announcement8-2.html[/url] You make an effort, then we help.

Member Avatar for Talli
0
131
Member Avatar for core2d

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

Member Avatar for bhoot_jb
0
191
Member Avatar for tatainti55
Re: C++.

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

Member Avatar for tatainti55
0
117
Member Avatar for rob_xx17

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 …

Member Avatar for Salem
0
104
Member Avatar for needhelp83

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.

Member Avatar for needhelp83
0
143
Member Avatar for Aus89

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

Member Avatar for Salem
0
2K
Member Avatar for c230jif
Member Avatar for Freaky_Chris
0
110
Member Avatar for mgirl

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

Member Avatar for grumpier
0
281
Member Avatar for rodeostar04

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 …

Member Avatar for Salem
0
126
Member Avatar for perltoday
Member Avatar for KevinADC
0
120
Member Avatar for PPP1

Read this first - [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]

Member Avatar for perltoday
0
74
Member Avatar for sinrtb
Member Avatar for Narue
0
155
Member Avatar for freelancelote

Pass the size as a parameter. [ICODE]void foo ( char *buff, size_t size );[/ICODE] kinda thing.

Member Avatar for freelancelote
0
126
Member Avatar for patricksquare

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 …

Member Avatar for bhoot_jb
0
188
Member Avatar for ChroNoS

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.

Member Avatar for Salem
0
170
Member Avatar for lomo

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?

Member Avatar for lomo
0
253
Member Avatar for Linking_90

Start at the right, increment it by 1, then scan to the left to see what else can be incremented.

Member Avatar for Linking_90
0
112
Member Avatar for JustLearning

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.

Member Avatar for VernonDozier
0
186
Member Avatar for happy8899

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

Member Avatar for Salem
0
609
Member Avatar for KDizzle

Yeah, and yet another post where the noob didn't read ANY of the threads / messages which describe how to post code tags.

Member Avatar for josh2
0
147
Member Avatar for nizbit

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 …

Member Avatar for Insomniac119
0
161
Member Avatar for preet4fun

Or without having to store anything, read a letter, and output the corresponding number

Member Avatar for Salem
0
207
Member Avatar for kajtek
Member Avatar for Salem
0
45
Member Avatar for heswtone999

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.

Member Avatar for Salem
0
62
Member Avatar for windell747

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

Member Avatar for aconstantin
0
255
Member Avatar for Clockowl

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

Member Avatar for WaltP
0
450
Member Avatar for happy8899

ANSWERED AGAIN in your other threads, just stop spamming the board.

Member Avatar for John A
0
100
Member Avatar for Nemoticchigga

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.

Member Avatar for TheBeast32
0
96

The End.