5,237 Posted Topics

Member Avatar for gregorynoob

> 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.

Member Avatar for gregorynoob
0
706
Member Avatar for phillipeharris

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 …

Member Avatar for phillipeharris
0
116
Member Avatar for krebstar

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 …

Member Avatar for krebstar
0
6K
Member Avatar for comondx

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>

Member Avatar for Manutebecker
0
92
Member Avatar for sting_010

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 …

Member Avatar for Salem
0
200
Member Avatar for the reaper

> 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 …

Member Avatar for WaltP
0
260
Member Avatar for brizhou

Well in the absence of anything useful to base such a momentous decision on, I'll say an "if" statement.

Member Avatar for CoolGamer48
0
83
Member Avatar for chanda gul

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.

Member Avatar for Salem
0
129
Member Avatar for soppyhankins

> 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 …

Member Avatar for soppyhankins
0
98
Member Avatar for jess29

> 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

Member Avatar for jess29
0
109
Member Avatar for murdercityriot

[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]

Member Avatar for murdercityriot
0
98
Member Avatar for JaksLax

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 …

Member Avatar for Salem
0
86
Member Avatar for Nemoticchigga

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, …

Member Avatar for Salem
0
120
Member Avatar for Corum
Member Avatar for Corum
0
133
Member Avatar for Sana nawaz

[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?

Member Avatar for VernonDozier
0
148
Member Avatar for it2051229

But if you're inputting ASCII characters, then you need to subtract 48 (or '0') from each one.

Member Avatar for abhisdm
0
94
Member Avatar for it2051229
Member Avatar for Salem

[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 …

Member Avatar for jwenting
0
92
Member Avatar for Andriy_Gonz

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 …

Member Avatar for abhisdm
0
131
Member Avatar for madankumar
Member Avatar for Aia

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 …

Member Avatar for Aia
0
761
Member Avatar for robertmacedonia

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 …

Member Avatar for robertmacedonia
0
86
Member Avatar for np2100

> 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 …

Member Avatar for yap.nice
0
133
Member Avatar for ee_girl

> 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.

Member Avatar for Salem
0
105
Member Avatar for cinderella_nez

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.

Member Avatar for abhisdm
0
551
Member Avatar for r.ranu1

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 …

Member Avatar for Duoas
1
145
Member Avatar for Priya73

> 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 …

Member Avatar for swaira umar
0
160
Member Avatar for dongzhe

> 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 …

Member Avatar for swaira umar
0
154
Member Avatar for duskrue

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.

Member Avatar for iamthwee
0
117
Member Avatar for Samuelandjw

> 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 …

Member Avatar for VernonDozier
0
108
Member Avatar for complete

[url]http://www.sgi.com/tech/stl/HashedAssociativeContainer.html[/url]

Member Avatar for ArkM
0
111
Member Avatar for jeremyhowell
Member Avatar for Salem
0
107
Member Avatar for vedmack

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.

Member Avatar for Salem
0
165
Member Avatar for kneel

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.

Member Avatar for sarehu
-1
69
Member Avatar for goodmuyis

[url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] [url]http://www.catb.org/~esr/faqs/smart-questions.html#noprivate[/url]

Member Avatar for goodmuyis
0
70
Member Avatar for loken
Member Avatar for brizhou

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 …

Member Avatar for ssharish2005
0
159
Member Avatar for nvbond
Member Avatar for Prabakar

> 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 …

Member Avatar for Prabakar
0
151
Member Avatar for cam875
Member Avatar for sidatra79

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.

Member Avatar for ivailosp
0
86
Member Avatar for monjuri

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 …

Member Avatar for ArkM
0
152
Member Avatar for tonyaim83
Member Avatar for dophine

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.

Member Avatar for Salem
0
201
Member Avatar for djhao79

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.

Member Avatar for Salem
0
152
Member Avatar for file sharer

> 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.

Member Avatar for Ancient Dragon
0
120
Member Avatar for Nemoticchigga

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 …

Member Avatar for Salem
0
82
Member Avatar for s2008

> 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 …

Member Avatar for Nashy
0
95
Member Avatar for shankhs

> 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?

Member Avatar for Prabakar
0
154
Member Avatar for wussa

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 …

Member Avatar for Daveodolph
0
147

The End.