5,237 Posted Topics
Re: Hmpf, someone else who can't plan more than a day in advance. [url]http://www.daniweb.com/forums/announcement8-2.html[/url] > umm additional please improve my requirement so that i have additional points Do you think that line will work when you have a job? "Please give me extra money because I said so, and can pull … | |
Re: Perhaps if you'd shown up when the assignment was handed out, rather than with 1 day to go, we could have helped you get this done. As it is, it's just a hail mary pass into the end zone. [url]http://www.daniweb.com/forums/announcement8-2.html[/url] I guess the title of this homework should be "how … | |
Re: > two.set_length(sizeof(one)); sizeof tells you the size of the pointer. strlen() tells you the length of the string that the pointer points to. > Move((void *) one[0], (void *) two[0],sizeof(one)); I imagine your random casting has made the compiler shut up about important errors in this line. 1. From the … | |
![]() | Re: Yeah, the problem is you've been learning from people who never bothered to look at the standards. void main has never been a valid return type for main. Unfortunately for you, you've now got the pain of trying to unlearn something. All compilers extend the language in some way, I … |
Re: Well since you seem to be using windows, there are already a couple of ways built in to do this. 1. Use the 'at' command [CODE]$ at /? The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must … | |
Re: > int HotDogStand:: totalSales = 0 ; This should be in ONE .cpp file only. | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] Yes you can [url]http://c-faq.com/expr/xorswapexpr.html[/url] But that is a dumb trick which ceased to be of any importance when we came down from the trees and started using high level programming languages. | |
Re: I just find it suspicious whenever someone shows up and their first post is "how do I reboot". This just screams "kiddie pest" to me. Just so you know, there is no "any OS" answer to this. | |
Re: [url]http://www.tek-tips.com/viewthread.cfm?qid=1408223&page=1[/url] | |
Re: If you want to compare two strings, then you have to use strcmp(). > Obviously string is recognized as equal, temp it's not. That is more down to accident, rather than design. A "string" is a constant in many C implementations, which means that the compiler is allowed to take … | |
Re: Why would any of your modern kit even care about your 20 year old fossil compiler? It only runs on your machine because it is being emulated. At some point, it will break and I guess you've found one of those. For example, it will know nothing of long filenames, … | |
Re: 1. Create a bootable CD using [URL="http://www.nu2.nu/pebuilder/"]BartPE[/URL] 2. Pull the HD from the machine, and put it in another machine as a slave HD. | |
Re: 3rd year and still sponging for homework answers. [url]http://www.daniweb.com/forums/announcement14-2.html[/url] I guess that is why you're still looking, because so far you've failed to learn anything at all. | |
Re: > changed from single characters to arrays, and i'n still getting the same error. But you didn't change the char parameters to char arrays at the same time. | |
Re: If this is an exercise in "merge", then shouldn't all the input files be sorted already ? | |
Re: Like a simple web search leading to [url]http://linuxgazette.net/105/pitcher.html[/url] | |
Re: [URL="http://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form"]BNF[/URL] is a way of describing the grammar for the language. It it not a means of describing random program snippets such as this. You might begin with [INLINECODE]<assignment> ::= <variable> "=" <expression>[/INLINECODE] | |
Re: > 50% at the end of 2 weeks when database design and architecture is finalized Unless the system is that simple, the design is never the final representation of the system. Sooner or later, some unanticipated snag (or gaping hole) will be found which upsets the whole program. Yes, 50% … | |
Re: Well that wasn't worth waiting 3 YEARS for. | |
Re: [url]http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Submodel-Options.html#Submodel-Options[/url] And that's just the tip of the iceberg of the total number of processors which exist / have existed. You could work your way through this progression I suppose [url]http://en.wikipedia.org/wiki/OISC[/url] [url]http://en.wikipedia.org/wiki/Minimal_instruction_set_computer[/url] [url]http://en.wikipedia.org/wiki/Risc[/url] [url]http://en.wikipedia.org/wiki/Cisc[/url] | |
Re: > I'm trying the program right now assuming that m=10 1E10 is getting pretty close to the limit of what you can store in a 32-bit signed integer (about 2.7E10). If m <= 8 say works OK, then I'd say you're starting to see the effects of overflow on higher … | |
Re: [URL="http://cboard.cprogramming.com/showthread.php?t=88495"]An approach to writing code[/URL] Writing 5(*) lines at a time, then pressing "compile" to see how you're doing is a sustainable development strategy. Dumping 100's of lines on a message board for someone else to fix is not. The same goes for testing, when you've finished a function, then … | |
Re: Sure there is, it just takes more code, that's all. If it is do-able in any high level language, then it has to be do-able in asm. It might take several thousand lines, but that's the price you pay. | |
Re: For a given base B, study what [INLINECODE]y = x % B x = x / B[/INLINECODE] does for you. | |
[url]http://news.bbc.co.uk/1/hi/world/south_asia/6979292.stm[/url] It seems gods can be bought off pretty easily - just two goats. I'd be demanding at least half a dozen priests or maybe a royal prince. But two goats, that's just an insult. Put it this way, if you asked about the maintenance schedule and they came back, … | |
![]() | Re: And I can't understand how 99% of new posters can fail to read the intro threads properly (or at all). [url]http://www.daniweb.com/forums/announcement8-3.html[/url] Or completely ignore the watermark at the back of the edit window. Or fail to press "preview" to make sure their post is going to come out right. Or … |
Re: Looks like a direct rip-off of this post as well, right down to the syntax errors. [url]http://www.daniweb.com/forums/post428174-13.html[/url] Almost certainly in the same class, could even be the same person registering with a new account hoping the "clean" noob status will garner a bit of extra sympathy / effort on our … | |
Re: It's just a simple replacement of each [INLINECODE]thing[position][/INLINECODE] with [INLINECODE]structArray[position].thing[/INLINECODE] But since you're using a class, you need to invoke member functions, so [INLINECODE]thing[position] = value;[/INLINECODE] would be [INLINECODE]classArray[position].setValue(value);[/INLINECODE] | |
Re: > [INLINECODE]for (p = 1; p <=2; p++)[/INLINECODE] Arrays start at subscript 0, not 1. You're trashing all over someone else's memory, hence the segfaults at some point. Given an array of size N, the normal loop would be [INLINECODE]for ( i = 0 ; i < N ; i++ … | |
Re: Step 1 would be to redo that horrible macro as a proper C++ function. There are very few valid reasons (struggling to think of one ATM) where using a function-like macro is the best approach. Inline functions and templates cover a lot of the things which were done as macros … ![]() | |
Re: More careful reading perhaps? [url]http://www.daniweb.com/forums/announcement8-3.html[/url] | |
Re: Two more things you can add to the list of things going wrong with it. 1. Your new function returns 0 when there is no more memory, it does not throw an exception. So it becomes your responsibility in the caller to check for NULL return before trying to use … | |
Re: Before you spam [URL="http://www.daniweb.com/forums/thread89106.html"]more questions[/URL] on the board, read [url]http://www.daniweb.com/forums/announcement8-2.html[/url] and [url]http://www.daniweb.com/forums/announcement8-3.html[/url] How about beginning by you saying what YOU think might be wrong, then we can tell you whether your thinking is good (or not). | |
Re: [url]http://www.daniweb.com/forums/announcement8-2.html[/url] Why don't you post the email address of your tutor, it would save a useless step in the process. | |
Re: Exactly what is your contribution to this effort so far? [url]http://www.daniweb.com/forums/announcement118-2.html[/url] | |
Re: What 'equate' function? There is no function with that name in standard C, so you're going to have to supply more information. | |
Re: Places to practice and hone your skills. 1. Any question asking for help on a forum such as this, just to see if you can do it. If you can do it, fine, but don't post the complete solution. Instead, offer hints to the solution which the OP can pick … | |
Re: > paid=amount/number; >interest=amount*annualrate; You need to do these calculations AFTER you have input values into the program, not before. | |
Re: Welcome to copy / paste homework 101 [url]http://www.daniweb.com/forums/thread86306.html[/url] Are you the same person, or just in the same class? | |
Re: [url]http://en.wikipedia.org/wiki/Pyramid_scam[/url] Do the math - unless you're the originator or the first level cohorts, the chance of you getting anywhere is remote. Q:"Why not share this with your friends" A:"Because I want to keep them" - Arthur Dent | |
Re: Just another pitiful attempt at measuring the depths of the oceans from watching the waves on the shore IMO. | |
Re: > Does it guarantee the right of the people to keep and bear arms? I demand the right to keep armed bears! Perhaps if ammunition were $100 per round, people would be a lot less inclined to shoot at stuff (and other people) with such recklessness. | |
[url]http://newsvote.bbc.co.uk/1/hi/uk/6979138.stm[/url] Not content with having the highest density of CCTV in the world, now they're after tagging everyone like cattle. I'll submit to this only when the Queen has been publicly humiliated by having her DNA taken. I tell you, this country is heading down the crapper in a big … | |
Re: > Last edited by WolfPack : 18 Minutes Ago at 11:29. Reason: Changed ALL CAPS to Lowercase Like YELLING at us for a 2nd time is going to get it done. [url]http://www.daniweb.com/forums/thread88567.html[/url] > I need help and guidance to become a good and efficient programmer Never going to happen unless … | |
Re: > void WriteValues(char * sDBName, char * sTableName, char * ChrArrayAttr[]) There are several compatible declarations for passing a 2D array - one of them is really easy. [code] void WriteValues(char *sDBName, char *sTableName, char ChrArrayAttributes[2][20] ) void WriteValues(char *sDBName, char *sTableName, char ChrArrayAttributes[][20] ) void WriteValues(char *sDBName, char *sTableName, … | |
Re: Microsoft .xls files are a proprietary file format, which means you need one of these options: [LIST] [*]Write the program as a VBA macro within excel itself. [*]Pay Microsoft some money to get the appropriate SDK which would allow you to access .xls files in a meaningful manner. [*]Spend months … | |
Re: > got my [COLOR="Red"]first [/COLOR]HW on the first day of class > Write the interactive calculator described in Programming [COLOR="Red"]Problem 5[/COLOR] on page 64 of the text. I find these statements to be inconsistent. How does this work then? It's the first day of the advanced class, but you haven't … | |
Re: [url]http://cboard.cprogramming.com/showthread.php?t=88495[/url] The first step would be to not try and write the program all in one sitting. That just results in a huge mess, and we're not here for you to write a large amount of code then dump it on a message board for someone else to fix. I … | |
Re: [url]http://www.sgi.com/tech/stl/Map.html[/url] |
The End.