5,237 Posted Topics
Re: > i'd just like a clue Draw a grid on some paper, and experiment with various strategies. I always seem to get the same answer. | |
Re: What's wrong so far is you not reading the half dozen instances which tell you about code-tags. Just another typical 1-poster who just wades in without a care in the world and just posts as fast as they can. Doesn't give a crap about how the result looks, just so … | |
Re: Solved? inFile.get(buffer,length); length is the length of the file, but get only reads a single line ? 0xCD is what the Microsoft run-time fills up allocated memory with as you allocate it, so that you can easily spot use of uninitialised data. Just filling it with memset seems like sweeping … | |
Re: So that's it? You just dump your code and without any other effort (say what you've tried, which compiler, what the errors are), you just expect someone to fix it? #include <get_real.h> | |
Re: Instead of all that fork/exec stuff, how far can you get with all the command line stuff and parsing, so you can just get to things like [ICODE]printf( "The command to execute is %s", command );[/ICODE] Until this works reliably, there's no point even worrying about the fork/exec, and it … | |
Re: > the most part was adding the brackets and fixing syntax error's.. Yet all the bugs in your brain remain. Did you bother to read any of what others posted, or did you just decide it was too much trouble? Aia is right, your code is broken beyond belief. It's … | |
Re: Well in the absence of anything useful to base such a momentous decision on, I'll say an "if" statement. | |
Re: The minimum amount you can read/write to a floppy is one sector. If you want a single byte, then read the sector which contains it, then offset from the start of the memory block. | |
Re: > I am trying to create a simple C program that uses HandBrake (video converter). Is this a deliberate exercise in using C, or are you really just after a quick way of solving the problem, and you thought C might be the best answer? Because if you're willing to … | |
Re: > string != '\0' Compare with string[i] != '\0' Also, make the function return a char*, and return string. That is, if you want to print the result with %s | |
Re: [url]http://cboard.cprogramming.com/showthread.php?t=106004[/url] In case this confuses you. [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] | |
Re: 1. This is C++, so where are your classes? 2. Top/Bottom etc would be member data of that class. 3. The push and pop would be member functions of that class. Then your main code would be like [ICODE]myQueue var; var.push_t(22);[/ICODE] > I got this code to work with, Got … | |
Re: Probably because your use of messagebuf is broken in so many ways. > size_received = recvfrom(socket_fd, messageBuf, sizeof(messageBuf), messageBuf is NULL (1) and the sizeof is only the size of the pointer (2). Since UDP is an "all-or-nothing" deal, if you can't fit the whole message into the space provided, … | |
Re: Well you probably shouldn't be modifying first, just to print it. | |
Re: [url]http://www.cplusplus.com/forum/general/3242/[/url] [url]http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=2656513[/url] [url]http://www.daniweb.com/forums/thread105231.html[/url] [url]http://www.daniweb.com/forums/post655133.html#post655133[/url] Comments / Questions? | |
Re: But if you're inputting ASCII characters, then you need to subtract 48 (or '0') from each one. | |
| |
[url]http://news.bbc.co.uk/1/hi/technology/7539329.stm[/url] "For the purposes of the study, two people were considered to be acquaintances if they had sent one another an instant message." I wonder if a distinction is made between two friends who communicate frequently, and the case of "Hello, I'm an IM spammer" and a response of "Go … | |
Re: Take the bozon detector, wire it into the flux capacitor, multiplex it with the heisenberg compensator's and dip the power supply in a cup of freshly brewed tea. Or put this another way, just how vague are you? What frequency range, What sort of sensor, How is that connected to … | |
Re: Send a signal. | |
Re: There's not a lot you can do when the vast majority of un-informed sheep can have their vote swayed with a tax cut here or a scandal there. If you had to pass an exam to determine whether you were well-informed enough to vote, as opposed to making a random … | |
Re: To pass an array, you just need the name (no [ ] needed in the call) Also, for loops should generally be < n ( and not <= n ) Yours runs off the end of the array. Also, why not just say int a[10]; rather than initialising it with … | |
Re: > Do they continue to make applications in console? Sure, all the time. Console is perfect for testing out code ideas to make sure they'll work before you bury it inside several 1000 lines of GUI code which will just get in the way otherwise. Many tools are essentially command … | |
![]() | Re: > I'm a first-year student at the university. When i am using Tubo C++ What are you studying? Archaeology or history? It's probably so old it doesn't understand the namespaces which Duoas posted. |
Re: I'm sure some of us do, but we're not likely to just give it to you just because you ask. See the intro threads, we don't give free homework. Show us what you've managed so far, and then we'll help you with the next step. | |
Re: Well, you will use these stone age tools. How many GB does your machine have? > I have tried reducing some lines of text from my program but to no help and > now i can't reduce any furthur lines. The number of lines has little to do with the … | |
Re: > an application Gee, that's vague. I think the choice would be different depending on whether it was a multimedia player, or a phone book. Further, if it were a multimedia player, would it just be the glossy user interface, or something lower level like actually implementing the codecs. Then … | |
Re: > for my new job So does your new employer know this, and would presumably offer some training to get you up to speed? Or did you just scam your way into a job you've got no skills to perform and now you're here to play "catchup" ? Just so … | |
Re: You've declared FullName twice. Get rid of the first one, and make the second [ICODE]string* FullName = new string[numOfContacts];[/ICODE] Then do something about PhoneNum not being an array of strings as well. ![]() | |
Re: > 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 (icode), for inline code, bbcode tags. Also, to keep DaniWeb a student-friendly place to … | |
Re: [url]http://www.sgi.com/tech/stl/HashedAssociativeContainer.html[/url] | |
| |
Re: I'd be surprised if there wasn't some "getlasterror" function you could call to find out more. Perhaps you should read the manual on CreateInstance, look to see how it returns additional error information, then use that in your program. | |
Re: Did you copy/paste that from your homework assignment? Seriously, it's getting harder and harder to creatively point people to the [URL="http://www.daniweb.com/forums/announcement14-2.html"]NFL[/URL] NFL being in this case, "No Free Lunch", and not anything to do with US Football. | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] [url]http://www.catb.org/~esr/faqs/smart-questions.html#noprivate[/url] | |
Re: sub("exciting","oh no, not again, when will people learn to read [URL="http://www.daniweb.com/forums/announcement8-2.html"]intro threads[/URL]") > A programmer has been asked Again, "YOU have been asked" > write down any assumptions that you may make, Are you going to put "I assumed I could get some schmuck on the web to do it … | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#noprivate[/url] | |
Re: > I just don't understand whats happening. This code won't compile in any decent compiler. So ask your tutor why they're teaching you crap. > 2) if 'I' is just the reference of 'i' then how come a memory location store 2 values 5 & 10. It doesn't. The cout … | |
Re: [url]http://www.nondot.org/sabre/os/articles[/url] | |
Re: As well as telling us what the error(s) are, also tell us which OS and compiler you're using. Your comments make mention in several places about breakage with specific implementations. | |
Re: Remember seeing this? > 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 icode, for inline code, bbcode tags. Also, to keep DaniWeb a … | |
| |
Re: The first thing I would do is call 'setaffinity' (your API may vary), to lock the process to a single core. Then make sure you're actually getting the desired result. | |
Re: Confidence is gained by doing your OWN thing and getting rewarded for it. You'll be no more confident the next time around if you just hand in what someone else has done this time around. | |
Re: > I have heard that one should know C before knowing PHP. Well that's a crock of shit. If you want to learn PHP, then go for it. C knowledge is not required. | |
Re: It's not the functions of the class you have to worry about, it's the instances. Two threads could work on two separate instances of the class, and call the same functions. So long as the class member functions themselves were reentrant (no static / global data for example). Well if … | |
Re: > Last edited by s2008 : 24 Minutes Ago at 05:36. Reason: adding more information One wonders what your first post was like, because I'm still in the dark. > about rain detection and removing from video Video tape used to have little white flecks on it, which was called … | |
Re: > I think the "abs" function has some problem let me study about "abs" function first 1. Use fabs() if you want to use floats. 2. Think about it - sqrt() only returns positive numbers, so why do you need it? | |
Re: Why do I get the feeling this is what your tutor wrote to test YOUR error fixing skills? I mean, what IS THE POINT if you just copy/paste it to a forum. FFS, put the code in your code editor, and try and fix the problems yourself, otherwise you'll never … |
The End.