5,237 Posted Topics
Re: So what's the problem? For example, implement LiveCell() by calling a bunch of North() etc. | |
Re: What's in part1 (for example "ABC1243"), and can you fix the tags. | |
| |
Re: [url]http://clusty.com/search?query=3+tier+architecture&sourceid=Mozilla-search[/url] | |
Re: Read this [url]http://www.daniweb.com/forums/announcement8-3.html[/url] and figure out how to use code tags (there's a preview button, use that too). I didn't look at the code, because it has NO indentation. Second, figure out whether you want to be a C programmer or a C++ programmer. Because this random mix of "cin" … | |
Re: [ICODE]cin >> tmp_array[worker_num].date; printf("\nEnter Time In (in 24hr clock format): "); scanf("%d",&tmp_array[worker_num].timein);[/ICODE] Pick either C or C++ C/C++ (what you posted) is a disaster area. There is at least one place where you've used scanf so badly that it WILL trash memory you don't own. There there's the gratuitous global … | |
Re: Why not just ask your question in the excellent [url]http://www.daniweb.com/forums/forum64.html[/url] forum? | |
Re: Sure, just post the code for one of them you're having trouble with. | |
Re: "worried"? You search the web for software sellers, you find a shop you like, you pay the money and the job is done. | |
Re: > for (code[1] = code2[1]; Perhaps you could post something which actually compiles. Then post something which is reasonably indented. | |
Re: > [COLOR="Red"]Write the algorithm[/COLOR] and[COLOR="Green"] find out the time complexity for the algorithm [/COLOR] So which bit is confusing you? | |
Re: What make / model of TV Card? Have you checked their website for updated drivers? Which version of Windows? | |
Re: So what have you done so far? Try this at the command prompt [ICODE]for /?[/ICODE] The perhaps [ICODE]if /?[/ICODE] [ICODE]mkdir /?[/ICODE] | |
Re: > i tried the following code on Turbo C++ but it didn't work.. Backwards compatibility will only take your fossil compiler so far on your nice new OS. Please don't tell me you're using XP or Vista, with some multi-cored CPU and gigs of RAM and hard disk. | |
Re: > I have strong reason to say the return type of malloc is void. Following two line from MSDN are : The key word being "is". Which isn't the same as "was" or "always has been". | |
Re: [url]http://www.yolinux.com/TUTORIALS/GDB-Commands.html[/url] Eg. "break line-number if condition" A condition being perhaps your record number. But consider the possibility that this is where the problem is noticed first, not where it has gone wrong. | |
Re: Did you recompile all the code on your solaris machine? Or did you simply copy the .exe file and hoped it would work. IT WON'T. > Is it a known issue? Yes, your code has bugs. | |
Re: Maybe most of the rules you've already broken perhaps? [URL="http://www.daniweb.com/forums/thread78223.html"]Read This [B][COLOR="Red"]Before [/COLOR][/B]Posting [/URL] | |
Re: > valgrind complains at line 151 the strdup. But I don't know where I should deallocate. In whoever calls get_lex(), just after they've finished with the tokens would be good. | |
Re: You have threads, and a single unguarded global variable. You have two functions with very similar names, - sockConnect - connectSock Your 'state' global variable has two flags which seem to mean the same thing. - bool ic; - bool inuse; Can you do what you want (once) as a … | |
Re: Sure, if you reasonably proficient with the win32 API to do that with any random bunch of text strings. | |
Re: You mean like this? [attach]10169[/attach] You get that when you press the middle mouse button, and it's meant to be a useful feature to allow you to slow-scroll a document without having to do anything except move the mouse to regulate the speed. | |
Re: You mean put the current working directory into the prompt "like DOS" ? Or just type pwd | |
Re: If you have a line "their therapist is over there" and you're searching "the", what would you want 0 - nothing matches the actual word "the" 1 - the line contains "the" somewhere 3 - there are three places where "the" appears | |
Re: You need one of two things a) [URL="http://www.imdb.com/title/tt0088763/"]A DeLorean[/URL] b) [URL="http://www.thefreecountry.com/compilers/cpp.shtml"]A Compiler which actually matches your OS[/URL] The second option is usually better, as appropriate specs for option 1 are hard to come by, what with the world's energy crisis. | |
Re: So add a new source file to your project called runner.cpp All this does, is - include windows.h - implements a thin wrapper, say myRunner() round say CreateProcess() - and returns runner.h just contains the prototype of myRunner(), which in itself is NOT dependent on windows.h Include runner.h when you … | |
Re: Do you have a decent definition of "doesn't seem to be working"? Nothing is printed? Something is printed? Your disk has been reformatted? | |
Re: > Obviously its just part of my code. I'm not sure why, but "if(counter > 8) draw = true;" activates every loop Is this your actual code, or part of it? Or just how you "remember" it. Some points. 1. draw is true on entry, and since there is no … | |
Re: Case labels are basically simple regex's. So you might be able to do this [code] [0-4]*) echo "F”;; 5*) echo "D”;; 6*) echo "C”;; 7*) echo "B”;; [89]*) echo "A”;; [/code] But the if/else logic is a bit safer, and more intuitive. | |
Re: > It appers only when I exit the program, and does not affect program work. You mean it doesn't affect it YET. Memory corruption problems move around the code over time (as you continue to make changes to the code). All of a sudden, you could find it happens at … | |
Re: > What do you think is wrong? Is your compiler a real DOS compiler? Is your real OS really DOS? | |
Re: Or better yet, don't use one bit of technological bodge-ware to fix another bit of technological fossil-ware, and just get a compiler for the real world. One which is actually compatible with your OS, and not just happy backward compatibility convenience which will eventually stop working. | |
Re: Why don't you just post your whole exam, since you seem to know a lot about what questions ARE going to be on it. [url]http://www.daniweb.com/forums/post870168-3.html[/url] Better yet, just give us the email address of the examiner, and we can forward the answers directly, and cut out the middle-man. > Please … | |
Re: Same as any other pointer, [ICODE]person *ptr = &me; int *nptr = &me.name; [/ICODE] | |
Re: > it will be a question in my C++ exam which will be held next week. How do you know this? What's next, multi-choice papers with the correct answer displayed in the bold font? <old-fogey-mode> All the exams I ever did were seen for the first time in the exam … | |
Re: Compare your project settings, specifically things like additional include search paths, library search paths and libraries. Doesn't code::blocks come with a "new wxwidgets" project tool to set all this up for you? | |
Re: So, over a period of a couple of years, I do - upgrade the RAM - replace the hard disk - replace the graphics card - replace the NIC - replace the motherboard and processor. Do I still have the same machine? Overly elaborate "machine locked" software only really serves … | |
Re: > After being told using scanf and printf instead of cout and cin Why? or better yet, Who said it? > because they are treated like a function instead like cout and cin being treated as a object thus equaling faster code generation Do you have references, or evidence of … | |
Re: Or this [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] | |
Re: Not to mention the super-informative topic title [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url] | |
Re: Next year, it'll be "My boss wants me to propose a project....." At what point were you planning to start thinking for yourself? Like we have any idea what you studied, what you're interested in, or how good at your subject you might be. Actually, the very existence of your … | |
Re: [url]http://www.daniweb.com/forums/announcement118-2.html[/url] | |
Re: [url]http://www.daniweb.com/forums/thread192307.html[/url] Try this [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] | |
Re: There's a search engine [url]http://clusty.com/search?query=mac+compression+software&sourceid=Mozilla-search[/url] | |
Re: Read this -> [url]http://www.faqs.org/rfcs/rfc2616.html[/url] Look for "Last-Modified" Just because you ask for "foo.html" from some server, that does not mean there is a file called foo.html on the remote machine. Many complex websites generate content on the fly from some database, so the concept of "age" might take on some … | |
Re: Well you could read the intro guides on how to post code, perhaps format the script so it's easier to read. As opposed to one massive 1-liner which no-one wants to look at at all. | |
Re: > Cin Keyboard inpout to const char* You want to "INPUT" to something already declared as const - doesn't that strike you as being in the least bit odd? You say "no changes allowed", then try and change it? Lesson number 1 [code] #include <iostream> #include <string.h> #include "holding.h" #include … | |
Re: I see fabs(), does that mean you're comparing floating point with == ? If so, read this [url]http://www.c-faq.com/fp/fpequal.html[/url] | |
Re: Sounds trivial, if you drop the requirement for it to be done in C++ | |
Re: Unix compilers by tradition omitted the library suffix when passing library names to the linker. Dev-C++ uses the GNU C compiler, which inherits that tradition. |
The End.