5,237 Posted Topics

Member Avatar for therohanz

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 …

Member Avatar for therohanz
0
107
Member Avatar for Xsaintx

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 …

Member Avatar for Salem
0
98
Member Avatar for dumboo

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

Member Avatar for Salem
0
1K
Member Avatar for Geek-Master

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 …

Member Avatar for spankyg
0
190
Member Avatar for starjsjwars

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 …

Member Avatar for starjsjswars2
0
159
Member Avatar for Duki

> int HotDogStand:: totalSales = 0 ; This should be in ONE .cpp file only.

Member Avatar for Duki
0
92
Member Avatar for argonaut

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

Member Avatar for Salem
0
77
Member Avatar for jainam2209

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.

Member Avatar for Ramy Mahrous
0
125
Member Avatar for gplkrsna

[url]http://www.tek-tips.com/viewthread.cfm?qid=1408223&page=1[/url]

Member Avatar for Narue
0
150
Member Avatar for BigFormat

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 …

Member Avatar for BigFormat
0
158
Member Avatar for siddharthrainit

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

Member Avatar for Colin Mac
0
165
Member Avatar for shadow20

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.

Member Avatar for raybay
0
130
Member Avatar for cool_graduate

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.

Member Avatar for hbk619
-1
62
Member Avatar for Ballar32

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

Member Avatar for Ballar32
0
267
Member Avatar for cspivey

If this is an exercise in "merge", then shouldn't all the input files be sorted already ?

Member Avatar for jusakman
0
149
Member Avatar for Ashu@sym

Like a simple web search leading to [url]http://linuxgazette.net/105/pitcher.html[/url]

Member Avatar for Salem
0
38
Member Avatar for Lun

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

Member Avatar for Lun
0
145
Member Avatar for jiaenteo

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

Member Avatar for Salem
0
159
Member Avatar for yingyuan
Member Avatar for manoj_maddy70

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

Member Avatar for Salem
0
36
Member Avatar for kahad

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

Member Avatar for kahad
0
155
Member Avatar for jarv

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

Member Avatar for jarv
0
6K
Member Avatar for Kassis

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.

Member Avatar for Salem
0
63
Member Avatar for maverick786

For a given base B, study what [INLINECODE]y = x % B x = x / B[/INLINECODE] does for you.

Member Avatar for Salem
0
95
Member Avatar for Salem

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

Member Avatar for Ravenous Wolf
0
122
Member Avatar for St!tch

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 …

Member Avatar for Ancient Dragon
0
102
Member Avatar for anzdyy

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 …

Member Avatar for Salem
0
110
Member Avatar for leetari

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]

Member Avatar for Salem
0
155
Member Avatar for theraven1982

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

Member Avatar for theraven1982
1
14K
Member Avatar for iaindb

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 …

Member Avatar for iamthwee
1
163
Member Avatar for wicked357

More careful reading perhaps? [url]http://www.daniweb.com/forums/announcement8-3.html[/url]

Member Avatar for Salem
0
107
Member Avatar for emin3m

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 …

Member Avatar for vijayan121
0
211
Member Avatar for emin3m

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

Member Avatar for Ancient Dragon
0
84
Member Avatar for alagu

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

Member Avatar for Salem
0
48
Member Avatar for manjuannthomas

Exactly what is your contribution to this effort so far? [url]http://www.daniweb.com/forums/announcement118-2.html[/url]

Member Avatar for TkTkorrovi
0
82
Member Avatar for koolbabu

What 'equate' function? There is no function with that name in standard C, so you're going to have to supply more information.

Member Avatar for Ancient Dragon
0
69
Member Avatar for sasikala123

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 …

Member Avatar for ~s.o.s~
0
124
Member Avatar for veronicak5678

> paid=amount/number; >interest=amount*annualrate; You need to do these calculations AFTER you have input values into the program, not before.

Member Avatar for Salem
0
83
Member Avatar for anzdyy

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?

Member Avatar for Salem
0
106
Member Avatar for TheNNS

[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

Member Avatar for mmmmmmmmmmmm
0
223
Member Avatar for The Dude

Just another pitiful attempt at measuring the depths of the oceans from watching the waves on the shore IMO.

Member Avatar for hbk619
0
99
Member Avatar for sInFuL69er
Member Avatar for Dave Sinkula

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

Member Avatar for RPDunn
0
358
Member Avatar for Salem

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

Member Avatar for Lardmeister
0
138
Member Avatar for nive

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

Member Avatar for nive
0
117
Member Avatar for asilter

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

Member Avatar for Salem
0
83
Member Avatar for luitelm

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 …

Member Avatar for VatooVatoo
0
101
Member Avatar for tendyhk

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

Member Avatar for ndeniche
-1
142
Member Avatar for prs55

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

Member Avatar for prs55
0
157
Member Avatar for asilter

The End.