5,237 Posted Topics

Member Avatar for samsons17

Really, come on now! 77 posts, and you still don't know the drill. [url]http://www.daniweb.com/forums/announcement8-2.html[/url] No effort, no help!

Member Avatar for mrnutty
-2
175
Member Avatar for mueed

> can any1 tell me how to display a array of pixels into a gray image using c [URL="http://www.catb.org/~esr/faqs/smart-questions.html#prune"]Yes[/URL]

Member Avatar for Salem
0
94
Member Avatar for number87

Or ditch dev-c++ as your IDE and go with something like code::blocks. dev-c++ is no longer maintained, and is known to be somewhat buggy.

Member Avatar for number87
0
3K
Member Avatar for xavier666

[url]http://www.sgi.com/tech/stl/Deque.html[/url] You need two "push" functions, one for each end of the deque. > temp3 = (node *)malloc(sizeof(node)); Why are you casting the result of malloc - there is no need to do so in a correct C program. [url]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1047673478&id=1043284351[/url]

Member Avatar for Narue
0
173
Member Avatar for jefanot

Lines 42 to 45 need { } You should always use them, even in the places where they're considered optional. It takes almost no effort to add them (none at all for intelligent IDE's), but the amount of bug hunting they cause by omission can be huge.

Member Avatar for muzamal
0
1K
Member Avatar for Gaiety
Member Avatar for Salem
0
132
Member Avatar for blitz9

How about - which OS? - which game? - what have you tried? If this is an online game, you're likely to get ignored. There's a fine line between "train" and "cheat" when it comes to online games.

Member Avatar for blitz9
0
83
Member Avatar for mythili_sharon

Mmm, a nice looking exam question. What do YOU know about the difference(s) already. Show us that you've done a bit of work yourself, and that you might learn something (as opposed to simply dumping your homework, then hoping to copy/pasting the answer). Eg. Which would you use in a …

Member Avatar for manishanibhwani
0
140
Member Avatar for Nhevik
Member Avatar for CppBuilder2006

No, GlobalAlloc is something unique to various windows platforms (search MSDN for it). new is the standard C++ way to allocate memory. Further, new also ensures that constructors get called to initialise the objects correctly.

Member Avatar for CppBuilder2006
0
276
Member Avatar for peterpanic

> Convert the 20 into decimal, then use math to convert to hex characters. How does 20 become 0x01 0x04? 20 decimal is 0x14 in hex. Contrived, I know, but perhaps they're trying to display nibbles on a 7-segment display which only reads the least significant nibble of each byte. …

Member Avatar for WaltP
0
296
Member Avatar for mcuk2001

Well the first thing would be to fix the 'e' and 'p' keys on your keyboard. Now when you say "complete", that implies that you've made some progress. Perhaps post some relevant code and an actual QUESTION. [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]

Member Avatar for mcuk2001
-1
96
Member Avatar for Derp2000

[url]http://en.wikipedia.org/wiki/BMP_file_format#Bitmap_data[/url] You're assuming that the pixels are packed. Each row of pixels can have up to 3 "padding bytes" to make each row 4-byte aligned. You don't allow for this padding, so you end up with a sheared image.

Member Avatar for Salem
0
155
Member Avatar for slim2hott

> // I do not know what to put in for the [] after encryption_key. Another index variable - one which loops over the length of your key.

Member Avatar for slim2hott
0
185
Member Avatar for stoudemire132

> these are my homeworks please help me... This is our standard response to 0% effort posts such as yours. [url]http://www.daniweb.com/forums/announcement8-2.html[/url] Please read it.

Member Avatar for iamthwee
-3
111
Member Avatar for daudiam

Anyone what? If you stop talking about getch() and other non-standard functions, we might be able to explain what happens.

Member Avatar for nezachem
0
147
Member Avatar for ayan2587

Use std::vector and the erase() method. [url]http://www.sgi.com/tech/stl/Vector.html[/url] Oh, and void main is wrong; main returns int.

Member Avatar for Salem
0
180
Member Avatar for BazookaJo

> bool ForLINUX, ForDOS; > iOutFileH = fileno(fOutData); > if (ForLINUX) write(iOutFileH, &bWriteByte, 1); > if (ForDOS) _write(iOutFileH, &bWriteByte, 1); All this 'for...' nonsense is a load of rubbish. fread() is used to read the file, so use fwrite() to write to the file. As an attempt to make the …

Member Avatar for BazookaJo
0
160
Member Avatar for new programer

I wonder if in a couple of years, some brain-dead doofus will bump this thread with "plz snd me ur plagiarism detection codez" :D ;) :twisted:

Member Avatar for Salem
0
114
Member Avatar for fadia

It's hard to believe you managed the rest of the code for you to flail around so helplessly on this function, even when given a hint on how to solve it. Your 'advance' functions already contain the essential elements of the maths to manipulate time in hours and minutes. It's …

Member Avatar for Salem
-3
110
Member Avatar for SecurExpert

> struct node* back; You don't have a struct node, you have a struct node_ptr struct node would be better though, as struct node_ptr for your struct is a terrible name.

Member Avatar for Salem
0
117
Member Avatar for swathi430

Read this -> [url]http://www.daniweb.com/forums/announcement118-2.html[/url] And then read this -> [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] Come back when you can post a question, not a list of demands.

Member Avatar for Salem
0
34
Member Avatar for cthoes

> i am working on mac terminal with gcc compiler Yeah, but which OS ? Modern terminal programs which need this level of screen control would typically use [URL="http://en.wikipedia.org/wiki/Ncurses"]http://en.wikipedia.org/wiki/Ncurses[/URL] > fflush(stdin); You're skating on thin ice here!

Member Avatar for WaltP
0
270
Member Avatar for _Michael_

Without knowing precise details of your environment, it's very hard to say how you would do that. But it's far simpler just to let the user enter what they like, then validate it.

Member Avatar for WaltP
0
121
Member Avatar for MKO

No, your problem is that you don't know whether you're writing C OR C++. Some random bag of syntax from both languages just doesn't cut it. Tell us which language you're ACTUALLY interested in learning, and we can guide you appropriately.

Member Avatar for Salem
0
127
Member Avatar for rahul8590

> Is there any way i can process movie / audio files in C++ ? Why would it matter to you? Like for compression, as far as you're concerned, it's just a meaningless array of bytes to encrypt. So long as you get back what you put in, why do …

Member Avatar for rahul8590
0
756
Member Avatar for new programer
Member Avatar for vijayshree21

> plz tell me how to convert a c code to matlab code Why would you want to? When you can already do this... [url]http://en.wikipedia.org/wiki/MATLAB#Interactions_with_other_languages[/url]

Member Avatar for NicAx64
0
5K
Member Avatar for xouy

> How do I fix that ? You use the error enumerations in errno.h (like EPERM) rather than magic numbers like 2 and 13 > How do I test the return value of stat to tell if it failed ? [CODE]int result = stat(path, &file); // RTFM to see what …

Member Avatar for Salem
0
137
Member Avatar for prashw

> But this voltage pattern is not shown in the oscilloscope. Did you have the right time-base on the scope, compatible with the baud rate of the serial line? Is it a storage scope, set to capture on the first bit of data? You only get one shot at this, …

Member Avatar for Ivan85
1
8K
Member Avatar for cjwenigma
Member Avatar for peter_budo
0
130
Member Avatar for staufa

> for (i=0; i < strlen(string); i++) You're lucky this works at all. string starts off uninitialised, so who knows what strlen() on it will return.

Member Avatar for cthoes
0
327
Member Avatar for rwagnes

# if (pid==0) # wait(); fork() returns 0 in the child, not the parent. Your if/else is the wrong way round.

Member Avatar for shakunni
0
239
Member Avatar for RexxX

The standard only requires that CHAR_BIT be a minimum of 8. [quote=c99] 5.2.4.2.1 Sizes of integer types <limits.h> 1 The values given below shall be replaced by constant expressions suitable for use in #if preprocessing directives. Moreover, except for CHAR_BIT and MB_LEN_MAX, the following shall be replaced by expressions that …

Member Avatar for Narue
0
139
Member Avatar for gazza123
Member Avatar for pakidesigner

> How much exactly you have to py for premium services. a) your job title needs to be something like "CIA Director", "US Chief of Staff" or "President" b) $100M+

Member Avatar for almostbob
0
163
Member Avatar for xyzt

That's history for you. Ideally, it would be const void*, then you could point at anything you liked so long as you also set msg_len to be the right size. For most machines, you can do [ICODE](const char *)&myvar, sizeof(myvar)[/ICODE] kinda thing. A small wrapper function taking a void* instead …

Member Avatar for kbatra
0
904
Member Avatar for sam1

You'd think someone with over 200 posts would have figured out either to use code tags, or turn off smilies. At least enough to review the post before pressing submit. What an unreadable mess!

Member Avatar for somemnguy
0
532
Member Avatar for endurando

> Page 1 of 20 Wow, the helplessness is astounding!!! Perhaps if we removed all those posts, the site would show up a lot less for this particular search term. Then we can all go back to sleep whilst it becomes a [URL="http://en.wikipedia.org/wiki/Somebody_Else%27s_Problem_field"]SEP[/URL]

Member Avatar for Nick Evan
-8
484
Member Avatar for twgood

[url]http://en.wikipedia.org/wiki/Flowchart[/url] Draw some actions Draw some decisions Draw some arrows between them

Member Avatar for drwright68
0
522
Member Avatar for Salem

At least for those people with say less than 10 posts. There is no end of dross from people bumping threads with 1-line of pith which is either off-topic, or just vaguely relevant. Most seem to go for old threads with high "visit" counts in the belief that means their …

Member Avatar for Nick Evan
0
257
Member Avatar for prakashmishra84

Given "using oracle 9i as backend.", is one to assume that this is your job, and not some run-of-the-mill homework assignment?

Member Avatar for vyas lal yadav
0
146
Member Avatar for ShadowScripter
Member Avatar for frank_hugo_1100

As good a place as any I've found. [url]http://www.lvr.com/serport.htm[/url]

Member Avatar for mbit.dbms
0
286
Member Avatar for fiberdata

Look in the event log for raid related error messages. It should be telling you somewhere why it isn't using it.

Member Avatar for RRO
0
226
Member Avatar for ammadkhan

Running around YELLING and [URL="http://cboard.cprogramming.com/game-programming/119061-ramp-game.html"]cross-posting all over the web[/URL] won't make it happen any quicker.

Member Avatar for ammadkhan
0
141
Member Avatar for Vasudev1

This should keep you busy for a while [url]http://www.nondot.org/sabre/os/articles[/url]

Member Avatar for Ying_Yang
0
153
Member Avatar for Mehwish Shaikh

A lot of software is written along the lines of "You start coding, I'll go and find out what they want". First you need a set of requirements ("What do you want?"). For non-programmers, these tend to be unfocussed and vague statements like "I want a word processor". Your first …

Member Avatar for Mehwish Shaikh
0
157
Member Avatar for Aamit

Or, since you're using a 32-bit compiler on a 32-bit OS, how about using the API which your OS provides for accessing whatever device it is you're interested in.

Member Avatar for BobClark
0
589
Member Avatar for prabha24107

[quote]I am new in SFTP. ... 2) now i need to the SFTP script inside the .com file and send(submit) SFTP script. [/quote] And how much time have you spent reading manuals, trying things etc?

Member Avatar for Scriptaholic
0
208

The End.