5,237 Posted Topics

Member Avatar for rayden150

> but the text file doesnt appear, whats wrong with this code 1. You're writing binary data, not a text file. So if you try to look at it using say notepad, you'll see garbage. 2. You open the file for writing each time, so ALL previous writes are lost. …

Member Avatar for mike_2000_17
0
256
Member Avatar for madriceg

> And if you could be very specific. Kinda ironic, given that your post is about as vague as it is possible to get, and still remain comprehensible English. How about posting some actual code you TRIED? FWIW, my first thought is you've screwed up over ANSI/UNICODE and your indiscriminate …

Member Avatar for madriceg
0
2K
Member Avatar for MareoRaft

> when you could just create a unique namespace and not worry about it? But don't all namespace names occupy the same namespace? No doubt there is more than one package out there which uses say the 'graphics' namespace. Trying to use two packages with badly chosen generic names could …

Member Avatar for mrnutty
0
150
Member Avatar for Rickay

I'd say such questions belong here -> [url]http://www.daniweb.com/software-development/legacy-and-other-languages/42[/url] Though TBH, you'd be better off finding a forum with an actual specialisation in Objective-C, rather than just relying on a couple of people who might know a couple of things.

Member Avatar for Rickay
0
223
Member Avatar for dark_sider_1

> and ignore the crazy code-formatting problems: Sorry, that just gets your post ignored. Nobody here can be bothered to wade through more than a page full of code that was indented [URL="http://www.youtube.com/watch?v=0bt9xBuGWgw"]by a dancing parrot[/URL]. Good indentation will tell you a lot about where it is going wrong without …

Member Avatar for dark_sider_1
0
219
Member Avatar for SoSlow

Step 1 is figure out which language you're programming in. This is the C++ forum, and the code you tried to compile was (as far as the compiler was concerned) C++. What you actually wrote however was all C. The second step is step back and think about what you're …

Member Avatar for Salem
0
341
Member Avatar for Dani

He's referring to the way you write them when you wish to overload the operators. [url]http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.14[/url] However, 1. He's 3 years too late with the information. 2. It's off topic as the thread was about how the prefix and postfix forms affect integers, and not about how to write overload …

Member Avatar for WaltP
0
661
Member Avatar for rayden150

> I want to make a Program that takes two inputs one initial number and one final number for example if I input 1 as the beginning number and 13 as the final, [URL="http://www.youtube.com/watch?v=-ZxHAZChcYU"]So make it[/URL] Or at least figure out how to google "fibonacci sequence".

Member Avatar for sergent
-2
256
Member Avatar for jmurph333

[url]http://msdn.microsoft.com/en-us/library/ms686298%28v=vs.85%29.aspx[/url] Sleep(), without all the verbiage at the start.

Member Avatar for jmurph333
0
156
Member Avatar for viperman224

There's always [URL="http://www.freedos.org/"]freedos[/URL] if you want a simple open source OS to go look at.

Member Avatar for davidkeeler63
-1
797
Member Avatar for ztdep

# while( !infile.eof() ) Don't use eof() to control the loop [url]http://sourceforge.net/apps/mediawiki/cpwiki/index.php?title=Feof[/url] When you copied the data file, did you copy it in binary mode, or text mode? That is, did you convert the \r\n line endings of windows into the \n line endings of Linux? Use the debugger to …

Member Avatar for mrnutty
0
241
Member Avatar for syria718

> Last edited by syria718; 24 Minutes Ago at 09:15. Reason: i cant'n post perfectly sorry,, It seems you still can't - you still haven't figured out [co[B][/B]de][/code] tags. How many hints do you need to do this?

Member Avatar for Narue
0
277
Member Avatar for Daniel_Wright

Don't forget to mention where else [URL="http://stackoverflow.com/questions/6718088/using-ctypes-in-python-to-acces-a-c-dlls-methods"]you posted[/URL], so that we don't waste OUR time saying what has already been said. You might be considerate to post a link back here on the SO site.

Member Avatar for Daniel_Wright
0
300
Member Avatar for PDB1982

Perhaps you should start with the language(s) you know. Any [URL="http://en.wikipedia.org/wiki/Turing_completeness"]complete[/URL] language will in principle do the job. Mostly, it will depend on YOUR skill with a particular language.

Member Avatar for WaltP
0
252
Member Avatar for munitjsr2

What were YOUR answers? Then we can correct your mistakes and fill in the blanks. Whereas at the moment, it looks like begging for some spoon-feeding.

Member Avatar for kanuxy
-2
185
Member Avatar for Dean_Grobler

[url]http://en.wikipedia.org/wiki/The_Blind_Watchmaker[/url] Plus other books by Richard Dawkins are good reading for explaining evolution.

Member Avatar for guest star
0
190
Member Avatar for Gold Falcon

Are we supposed to guess what OS you're using, or what _write is supposed to do? [url]http://linux.die.net/man/2/write[/url] If it's this "write", then the second parameter needs to be a POINTER to some memory, not the munged result of your calculation. No wonder it crashes.

Member Avatar for Gold Falcon
0
357
Member Avatar for tubby123

> Hey, i found quite a few methods to ADD TWO NUMBERS WITHOUT USING THE + OPERATOR Do any of them actually work over the full range of integers the same as regular addition would? This method fails miserably on all negative numbers.

Member Avatar for tubby123
0
167
Member Avatar for murugavadivel

> Getting Error after installing Turbo C.... how to rectify this problem. Well you could complain to your school, and get them to spend THEIR time and money on supporting obsolete tech (you paid them, one way or another, make them earn it). Whilst some of us know how to …

Member Avatar for Salem
0
372
Member Avatar for yumyam09

Or just [URL="http://www.maplin.co.uk/24-hour-segment-timer-32996"]this[/URL] on the power lead. The programming is primitive to say the least, but hey, whatever. Or go up a level and use some [URL="http://www.uk-automation.co.uk/products/Marmitek-X10-Appliance-Module-AM12U.html"]X10[/URL] kit. You'll also need a controller (and software) loaded onto your PC as well, but it could be fully automated at that point.

Member Avatar for stultuske
0
188
Member Avatar for tomtetlaw

It's because eax is used as the return value register. If you look at the assembly for a normal function, you'll see a move TO eax when the function returns, and a move FROM eax in the caller, to assign the destination variable.

Member Avatar for tomtetlaw
0
112
Member Avatar for kagotsky

> Turbo c++ problem! Pressing ALT-F4 might be a better option, followed by - delete fossil compiler from system - install one (or more) of these fine modern compilers. [url]http://www.microsoft.com/express/Downloads/[/url] [url]http://www.smorgasbordet.com/pellesc/[/url] [url]http://www.codeblocks.org/[/url]

Member Avatar for renish khunt
0
171
Member Avatar for bobytch

Looks like [URL="http://www.daniweb.com/software-development/cpp/threads/371271"]this[/URL] and [URL="http://www.daniweb.com/software-development/cpp/threads/371385"]this[/URL], with a new username. Show us what you managed to figure out so far, so we only have to fill in the gaps (as opposed to giving you everything, which simply won't happen).

Member Avatar for Ancient Dragon
-4
3K
Member Avatar for Salem

OK, so this morning I see that the folder icon in the forum list is yellow, meaning there is something unread since my last visit. In I go, and there is a big fat "[B]You can only see threads that you have started[/B]" I haven't started anything there, so why …

Member Avatar for Nick Evan
1
143
Member Avatar for Stefano Mtangoo

> X-Originating-IP: [41.138.178.89] This is the big giveaway sign [url]http://www.ip-adress.com/ip_tracer/41.138.178.89[/url] P address [?]: 41.138.178.89 [Whois] [Reverse IP] IP country code: NG IP address country: Nigeria IP address state: Lagos IP address city: Lagos Mmm, Nigeria, home of the 419 scammers.

Member Avatar for Stefano Mtangoo
0
333
Member Avatar for cloris

[URL="http://lmgtfy.com/?q=rfid+development+kit"]$42,385,231.98[/URL]

Member Avatar for cloris
0
62
Member Avatar for gman1991

Lines 66 and 81, you're examining the WHOLE array, not the number of valid entries entered. If you had a separate variable which you increment ONLY when the data is valid, you would know when to stop.

Member Avatar for Salem
0
123
Member Avatar for sweetyg

So did you choose this project, or were you given it? If you chose it, why?, when you don't seem to know anything about it. Or for that matter, be able to do a [URL="http://www.google.co.uk/search?q=ABC+ALGORITHM+FOR+CLUSTERING"]google search[/URL]. For one thing, you need to know how other people typically solve the problem …

Member Avatar for Salem
0
89
Member Avatar for sjgriffiths

So what actual output are you expecting from that? Does it matter which of TLT090991 or TLT090992 you get? Reading the [URL="http://www.ss64.com/bash/uniq.html"]manual page[/URL] seems to offer some ideas.

Member Avatar for JeoSaurus
0
303
Member Avatar for steven woodman

You could print off some threads from the Geeks forum and compost those. It's sure to make great compost ;) Oh, and I have 3 compost bins, which I named after the [URL="http://en.wikipedia.org/wiki/Cult_of_skaro"]Daleks[/URL]

Member Avatar for Ezzaral
1
160
Member Avatar for sachinchandora

Well the easy answer is to upgrade to a 32-bit compiler for your modern OS, then you get 2GB segments, not 64K segments. But I'm guessing you're stuck with stone age tools from a [URL="http://online.wsj.com/article/SB10001424052748703515504576142092863219826.html"]stone age educational system[/URL]. The answer (if you can call it that) is to NOT have …

Member Avatar for Salem
0
1K
Member Avatar for wani_raj
Member Avatar for ryu_hemt_always
0
2K
Member Avatar for manaila

Nice - you call fork() in a while(1) loop. No wonder the system is trashed. [url]http://en.wikipedia.org/wiki/Fork_bomb[/url]

Member Avatar for manaila
0
157
Member Avatar for tubby123

[url]http://cboard.cprogramming.com/c-programming/139292-find-home-path-c-environment.html[/url] Suggest sticking to asking on one forum at once. [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] or [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url]

Member Avatar for TrustyTony
0
91
Member Avatar for silvercats

[URL="http://en.wikipedia.org/wiki/Flowchart"]no[/URL] <- have you searched google -> [URL="http://en.wikipedia.org/wiki/Flowchart"]yes[/URL]

Member Avatar for silvercats
0
78
Member Avatar for subith86

> At console I enter 023[B][COLOR="Red"]8[/COLOR][/B]284, then all the printfs outputs 0. When did 8 become a valid octal digit?

Member Avatar for subith86
0
117
Member Avatar for gaurav_13191

Seems like the sort of thing that should be testable in a couple of minutes - did you try it? > Also specify the order of precedence for variables when they need to be accessed. Again, something that google will easily find 1000's of pages with the operator precedence table.

Member Avatar for gaurav_13191
0
79
Member Avatar for btowne2

> I have a new found respect for programmers and programming in general. LOL - and you want someone to do your homework after that little speech. No, stop, my sides are splitting, I can't stop LAUGHING!!!!!!! Thanks kid, that's the best funny I've seen in a long while. Good …

Member Avatar for Lerner
0
191
Member Avatar for arshi9464

It's a function of your OS and compiler. If you're using a protected OS and your compiler is compatible with your OS (say Linux+gcc or Windows+visual studio), then you're dealing with logical addresses. You can invent whatever address you like, but if you choose badly, the OS will just serve …

Member Avatar for TrustyTony
0
151
Member Avatar for cheenu02

> ptrdiff_t diff = (void*)p - (void*)q; I thought any kind of arithmetic on void* pointers was undefined. $ gcc -W -Wall -ansi -pedantic foo.c foo.c: In function ‘main’: foo.c:10: warning: pointer of type ‘void *’ used in subtraction If you want the number of bytes, then [ICODE]ptrdiff_t diff = …

Member Avatar for bajishareef
0
2K
Member Avatar for kumarmpk4u

[url]http://www.catb.org/~esr/faqs/smart-questions.html#beprecise[/url] Your post reads something like "I put bread in the toaster, left it for a while and it came out charcoal - I suspect the line voltage". Try posting some actual code, or maybe even just try to debug your code. Using a debugger is a good approach, but …

Member Avatar for kumarmpk4u
0
106
Member Avatar for altosaxplayer88

> Is it sad I played Pong for 3 hours? Not as sad as [B]Creating a thread on a forum about it[/B] which in turn is not as sad as [B][I][U]Replying to such a thread [/U][/I][/B]

Member Avatar for Salem
0
192
Member Avatar for praschat

[url]http://www.google.com/search?q=pdf+file+format+specification&ie=utf-8&oe=utf-8[/url] 1st link takes you to a 700+ page document telling you all you need to know.

Member Avatar for Salem
0
181
Member Avatar for naveentj

Well the answer would begin by you producing a debug build, then running the code in a debugger (say [URL="http://msdn.microsoft.com/en-us/windows/hardware/gg463009"]WinDbg[/URL]), and from there finding out some actual usable information about the crash. As opposed to merely speculating about where the problem might be with little or no evidence (at least …

Member Avatar for Salem
0
171
Member Avatar for campuzcrazyness

Step 1 would be to remove ALL the gotoxy() and clrscr() and any other decorative features until you've actually got the damn thing to work. Adding eye candy to an already working program is trivial, compared with trying to maintain it whilst you're debugging the code.

Member Avatar for campuzcrazyness
-1
549
Member Avatar for happyhappyhappy

It seems Arbus is more confused about multi-dimension arrays than you are. > But you are passing multidimensional array. So declare A accordingly (char **A[3] or char *A[3][3]). But neither of these things are anywhere near char A[][3][3], which is what the OP had to begin with. char (*A)[3][3] would …

Member Avatar for Arbus
-1
147
Member Avatar for N1GHTS

1) What are the rules of this function structure? A link to a website explaining it would be awesome. This is how function parameters were defined in what is known as "K&R-C", which existed before ANSI/ISO got in on the act. [url]http://stackoverflow.com/questions/22500/what-are-the-major-differences-between-ansi-c-and-kr-c[/url] 2) What are the advantages of this function …

Member Avatar for N1GHTS
0
205
Member Avatar for L0s3r

[ICODE]g++ -S foo.cpp[/ICODE] will produce a foo.s file, which is the ASM code corresponding to your source code. If you use custom makefiles in c::b, you might be able to generate them automatically.

Member Avatar for gusano79
0
231
Member Avatar for iamthwee

> What's yours. I walk past it twice a day. > How do you keep in shape. Is "round" a shape? [url]https://www.msu.edu/~jerrymc/humor/exercise.html[/url]

Member Avatar for hotmatrixx
0
140
Member Avatar for perksexcuse

Well on the Linux box, you do this. [ICODE]gcc -g prog.c valgrind ./a.out[/ICODE] valgrind will tell you a lot about all kinds of memory abuse (overrun, use after free, uninitialised accesses etc). When it is clean in valgrind, have another go on windows.

Member Avatar for perksexcuse
0
151

The End.