Forum: C Sep 17th, 2009 |
| Replies: 20 Views: 814 Post your code!
Did you initialise i ? |
Forum: C Sep 15th, 2009 |
| Replies: 16 Views: 681 > temp=(char**)malloc(rows);
The red is a cast expression, and is unnecessary.
And it is also HORRIFICALLY wrong on the size as well - damn, didn't spot that one earlier.
It should be
temp=... |
Forum: C++ Sep 14th, 2009 |
| Replies: 12 Views: 1,226 Shouldn't the OP be looking for a C++ solution, rather than messing with archaic C-style functions and char arrays? |
Forum: Computer Science Sep 13th, 2009 |
| Replies: 7 Views: 670 > At the moment I'm considering doing a simulation of hide-and-seek
Well I suppose I could hide my answers to this kind of question all over the forum, and you could write some AI bot to seek them... |
Forum: C Sep 13th, 2009 |
| Replies: 3 Views: 284 |
Forum: C++ Sep 13th, 2009 |
| Replies: 8 Views: 519 Seems to me like a case of not using the right tools for the job.
Doing this as a browser plugin would be a snap (by comparison).
Starting where you are, you're basically saying "I need to use... |
Forum: C Sep 12th, 2009 |
| Replies: 1 Views: 400 |
Forum: C++ Sep 11th, 2009 |
| Replies: 5 Views: 327 Doubtful - it won't compile with TurboCrap, and it wasn't posted with code tags.
Does anybody bother to read intro threads? |
Forum: C Sep 10th, 2009 |
| Replies: 8 Views: 414 http://www.daniweb.com/forums/post982800.html#post982800
What you're trying smells like this (http://www.urbandictionary.com/define.php?term=turd%20polishing)
Seriously, the only answer you'll... |
Forum: C++ Sep 10th, 2009 |
| Replies: 5 Views: 327 http://www.codeblocks.org/
http://www.microsoft.com/express/
Both are FREE (except for the time taken to download)
Both WIPE THE FLOOR with the fossil you have.
Both will serve you well when you... |
Forum: C Sep 10th, 2009 |
| Replies: 8 Views: 414 > Let's say I am using Turbo C compiler in Windows
Sure, why not - if you consider amputation to be a suitable first step to running a marathon.
I shouldn't worry about memory leaks in TurboC. ... |
Forum: C Sep 10th, 2009 |
| Replies: 2 Views: 864 > file_content = (char *) realloc (file_content, sizeof(char) * file_size);
Is this C or C++?
If it is C, then you don't need the cast.
However, what happens if realloc fails? The problem is,... |
Forum: Windows Vista and Windows 7 Sep 8th, 2009 |
| Replies: 1 Views: 310 That's a nice homework question - what do you think? |
Forum: C++ Sep 8th, 2009 |
| Replies: 5 Views: 520 http://cboard.cprogramming.com/cplusplus-programming/119344-crack-cipher-string-arrays.html
Here's a FAQ
http://www.catb.org/~esr/faqs/smart-questions.html#forum |
Forum: C++ Sep 7th, 2009 |
| Replies: 8 Views: 322 Some additional reading, which Dave's links allude to.
http://www.itis.mn.it/linux/quarta/x86/lock.htm
http://www.dlugosz.com/Repertoire/refman/Classics/atomic_counter_whitepaper.html... |
Forum: C Sep 7th, 2009 |
| Replies: 9 Views: 410 > "program to swap two no. using third variable"
A better question would be:
"How to swap my idiot teacher of 1970's assembler tricks with someone who has a clue about programming in the modern... |
Forum: C++ Sep 6th, 2009 |
| Replies: 7 Views: 425 > How can I combine this one? (TURBO C++)
1. THROW OUT your ancient compiler. It has been obsolete for 20 years. Honestly, this is driving down the information super highway in some clapped out... |
Forum: C Sep 6th, 2009 |
| Replies: 9 Views: 332 Well you need to read how printf() and scanf() work.
scanf ("%f", METERS);
should be
scanf ("%f", &METERS);
Now go find out how to print parameters using printf as well (%d and all that... |
Forum: C++ Sep 5th, 2009 |
| Replies: 2 Views: 242 > can u pls teach me how to start
http://cboard.cprogramming.com/c-programming/88495-development-process.html |
Forum: C++ Sep 5th, 2009 |
| Replies: 8 Views: 573 http://www.daniweb.com/forums/announcement8-2.html
Read this, make an effort, post that attempt and then ask a specific question.
Don't just dump your assignment on us and then go party, hoping... |
Forum: DaniWeb Community Feedback Sep 5th, 2009 |
| Replies: 74 Views: 4,693 There are a lot of reported posts on the main site entrance (see pic) |
Forum: Computer Science Sep 4th, 2009 |
| Replies: 14 Views: 1,627 So are we.
Oh, that reminds me, I need to finish off something else first.
Good luck with the suggestions :icon_rolleyes: |
Forum: C++ Sep 2nd, 2009 |
| Replies: 5 Views: 247 The console is what you learn with.
GUI programming is no different, it's just a different API. But it takes half a book to explain "hello world" rather than half a page, to an absolute newbie. |
Forum: C++ Sep 2nd, 2009 |
| Replies: 7 Views: 284 What you see today in the C pre-processor is a faint echo of how the pre-processor was originally implemented.
m4 (http://en.wikipedia.org/wiki/M4_%28computer_language%29) is a macro pre-processor... |
Forum: C# Sep 1st, 2009 |
| Replies: 12 Views: 471 > well i am planning to record information in a database and the data can be accessed via the web in a well formatted web page.
That has to be the most bone-headed idea going.
"I know, lets... |
Forum: C++ Sep 1st, 2009 |
| Replies: 10 Views: 400 > If i put #include "zlib.h" the errors are the same.
Include files tell the compiler HOW to call something.
Libraries (the thing you're missing) tell the linker (the stage after compiling) WHAT... |
Forum: Python Aug 31st, 2009 |
| Replies: 3 Views: 373 http://lmgtfy.com/?q=usb+webcam+via+Python |
Forum: C++ Aug 30th, 2009 |
| Replies: 3 Views: 216 All the files are in the same directory?
If so, all you need to do is add the two .cpp files to some kind of project (or makefile), and then build.
> cannot find -lfunctions.h".
-l is for... |
Forum: Game Development Aug 29th, 2009 |
| Replies: 19 Views: 1,439 Running around YELLING and cross-posting all over the web (http://cboard.cprogramming.com/game-programming/119061-ramp-game.html) won't make it happen any quicker. |
Forum: C Aug 29th, 2009 |
| Replies: 1 Views: 244 > when i am runing the server program and doing telnet 127.0.0.1 int the console
What command did you actually type?
telnet without additional parameters will try to connect to port 23
Your server... |
Forum: C++ Aug 28th, 2009 |
| Replies: 9 Views: 356 > my problem is that my teacher give an activity to do to make a c++ program that will determine
That's not all.
It also determines who gets to stay on the course and learn something advanced,... |
Forum: Software Development Job Offers Aug 28th, 2009 |
| Replies: 4 Views: 1,308 /me pastes some stuff into google.
Well whatdayaknow
http://kcr.scrgruppen.dk/
Dunno why someone with a .ke (Kenya) email address is doing hosting on a .dk (Denmark) server though.
ROFLMAO... |
Forum: C++ Aug 28th, 2009 |
| Replies: 3 Views: 262 > it states debug assertion failure fseeki64.c line 61 stream !=null.
You opened a file, say
FILE *fp = fopen("doofus.txt", "r" );
You then tried to seek somewhere - I guessed that fseeki64.c... |
Forum: C Aug 26th, 2009 |
| Replies: 17 Views: 641 I've no idea.
I stripped the code down to something simple, and it seems clean here.
/*-------------------------------------------------------------------------
* SphereInterface.c - Library... |
Forum: C Aug 26th, 2009 |
| Replies: 17 Views: 641 > I'm running on fedora 10
Excellent.
Then you can try either of these and see what's going on.
valgrind ./myprog
valgrind (http://valgrind.org/) is a tool used for spotting all sorts of... |
Forum: Shell Scripting Aug 26th, 2009 |
| Replies: 4 Views: 602 Use a different separator.
Eg.
sed -e "s@DATEST\@$DATESTART@g"
I can't figure out where the real separator is in the middle of the expression.
But you get the idea. |
Forum: C Aug 25th, 2009 |
| Replies: 17 Views: 641 Regarding casting malloc.
Here's why it's a really BAD idea.
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1047673478&id=1043284351
Second, are these the ONLY malloc calls in your... |
Forum: C++ Aug 24th, 2009 |
| Replies: 3 Views: 229 You've got
#include "somethingElse.h"
#include "DoTestData.h"
The last thing in somethingElse.h is the real cause of the problem, and it will be missing the ; in question. |
Forum: Java Aug 23rd, 2009 |
| Replies: 2 Views: 160 http://www.daniweb.com/forums/announcement9-2.html
There's a mine of information here
http://www.daniweb.com/forums/thread99132.html
Try spending an hour or two trying to figure something out... |
Forum: C++ Aug 22nd, 2009 |
| Replies: 10 Views: 380 > I've learned Java, C++, and most recently C ( Fall of last year).
But have you actually learnt how to PROGRAM yet?
Learning a new language a year makes you an experienced "hello world"... |