5,237 Posted Topics

Member Avatar for abby2589

A " without a matching " A /* without a matching */ A { without a matching } etc etc

Member Avatar for CrimsonTider
0
59
Member Avatar for BigDork

Personally, I would suggest you learn some alternative approaches. [url]http://en.wikipedia.org/wiki/Windows_Script_Host[/url] Even after 30 years, M$'s idea of a capable command line shell is woeful. The so-called 'extensions' only serve to highlight how truly awful command.com was, and how inadequate cmd.exe remains. Most of your time will be spent working out …

Member Avatar for Salem
0
120
Member Avatar for xtremerocker

Something like [ICODE]FILE.open ("data.txt",ios::app);[/ICODE] So you append, rather than rewrite. Also, opening the file before the loop, then closing it when you're done would help. Your two if statements are always false and true in that for loop.

Member Avatar for xtremerocker
0
121
Member Avatar for inked

[url]http://www.perl.org/[/url] and a [URL="http://oreilly.com/catalog/9780596000271/"]Camel Book[/URL] First thing you need to search for is all about the array @ARGV

Member Avatar for mitchems
0
89
Member Avatar for MyRedz

Pick a forum - any forum, so long as it's ONE forum. [url]http://forums.devshed.com/c-programming-42/need-help-here-to-explain-this-question-for-me-588311.html[/url] [url]http://cboard.cprogramming.com/showthread.php?t=111855[/url] Better yet, read this [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url]

Member Avatar for VernonDozier
0
99
Member Avatar for fusi0n423

> template<class Elem, class Comp> > MaxHeap<Elem, Comp>::MaxHeap(Elem *h[], int num, int max) { Is this also in your header file? It needs to be, otherwise the compiler can't create the instance of the template which deals with <Voter, SalaryCompare> and then the linker complains about "no such function".

Member Avatar for fusi0n423
0
89
Member Avatar for akim_atl
Member Avatar for massivefermion

You should stop using the register keyword all over the place as well. Modern optimising compilers are far better at figuring out best use of registers, and will just ignore it. So save yourself some typing.

Member Avatar for massivefermion
0
386
Member Avatar for xtremerocker

> for(B = 1; B < C; B++) Perhaps your code is broken, because C is uninitialised the first time around. Perhaps < A ?

Member Avatar for xtremerocker
1
126
Member Avatar for shadowfire36

[url]http://www.cplusplus.com/reference/stl/stack/[/url] You can implement it however you want (arrays, lists, blah blah) so long as you have "push" and "pop".

Member Avatar for Salem
0
149
Member Avatar for moonw3ll

There's plenty of easy (and not so easy) homework posted on the board. Any of those would make excellent exercises (it's what they're designed for).

Member Avatar for moonw3ll
0
259
Member Avatar for Joonas

Well you didn't read this - [url]http://www.daniweb.com/forums/announcement125-3.html[/url] And you didn't say which assembler (nasm,tasm,masm,?asm) you're using. Do you get any error messages perchance? Nor did you say what you want it to do, nor what it does (or doesn't) do instead.

Member Avatar for Joonas
0
121
Member Avatar for jladd5

How about starting with the basics. Like the program which prompts for value then prints it out. Then add to that program a second variable which allows the program to print out - the current value - the previous value. Believe it or not, after those two steps you're only …

Member Avatar for Comatose
0
171
Member Avatar for Lukezzz

You're only going to get true "at the same time" if you've really got a multi-core CPU available. Otherwise, it's just faked by the OS by interleaving both loops very quickly. In the same way that TV is only a rapid sequence of still images, but you perceive the result …

Member Avatar for Salem
0
89
Member Avatar for gaspan

Well it's already broken before it's even got 10 lines into the program. > cin>>dataned[i]; Each dataned[i] is an UNINITIALISED pointer. You're busily scribbling data all over other peoples memory. > while(dataned[i]==" ") This is unlikely to be ever true (pure luck basically), so the loop only happens once (if …

Member Avatar for Salem
0
167
Member Avatar for ankitk1

First thing it needs before anyone would want to look at it, is some of this. [url]http://en.wikipedia.org/wiki/Indent_style[/url]

Member Avatar for Salem
0
61
Member Avatar for snakeplyr

Get a real job which is essentially your "hobby" at the moment. Pay really close attention to everything which is going on around you. Fixing a couple of PCs in your garage for a few friends for cash in hand is one thing. Being sued by an irate customer because …

Member Avatar for Salem
0
158
Member Avatar for Zockaddiprork
Member Avatar for marksmania

I could tell you to go read the manual page for printf to find the ACTUAL conversion for printing a double. Note that printf and scanf are NOT perfectly symmetrical with their use of conversion formats. %lf for printf is meaningless.

Member Avatar for csurfer
0
98
Member Avatar for pavithraram

Even by this boards relaxed standards, your English sucks. [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] Did someone remove half the keys from your keyboard or something?

Member Avatar for Salem
0
27
Member Avatar for bundersi

> Beyond that it's the same old basic arithmetic that you learned in the first grade. Do they still teach that? Apparently not [url]http://www.literacytrust.org.uk/Database/businessupdate.html[/url] [quote] The CBI surveyed more than 500 companies with 1.1million employees. They found that 52% of employers are dissatisfied with the basic literacy of school leavers …

Member Avatar for Salem
0
157
Member Avatar for me_ansh

Same questions, same answers [url]http://cboard.cprogramming.com/showthread.php?t=111787[/url] Stop wasting so much of other peoples brain-power on your RTFM questions. It's fine, if one forum doesn't deliver an answer in a few days, then move on to try your luck somewhere else. But concurrent posting is spamming, and is a proxy for [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url]

Member Avatar for Salem
0
158
Member Avatar for Salem

[url]http://nambulous.wordpress.com/2008/08/23/remove-the-net-framework-assistant-10-from-firefox/[/url] Why do I need it? Why didn't you ask me? - I agreed to your necessary maintenance of your OS, not for you to modify any 3rd party applications which happen to be on the machine to suit your purposes (put that in your EULA). Why is "Uninstall" disabled?

Member Avatar for Ene Uran
0
92
Member Avatar for Jake12
Member Avatar for CPPRULZ

Who knows, that's for the implementation to decide. - in release mode, it's typically back in the heap untouched. - in debug mode, it could be filled with some specific pattern to mark "deleted data", and perhaps held in a "pending" list for a while. Specifically to assist with spotting …

Member Avatar for Salem
0
67
Member Avatar for deerowbear

ALL your template functions in the cpp file need to be in the .h file. When you instance a template with a type, the compiler needs all the template code to generate the appropriate type-specific instances of those functions.

Member Avatar for deerowbear
0
74
Member Avatar for Himerz

Judging from the way the code colouring goes completely out of whack at about line 20, I'd say that you're missing a " on a previous line to end a string.

Member Avatar for Himerz
0
302
Member Avatar for lameassthemity

Because strcmp() is C. You're already half-way there with line 9, so just carry on using == to compare two std::string variables.

Member Avatar for shasha821110
0
91
Member Avatar for vikasmailsu

> I am using few asm files based on x86 instruction set. Why? If you did this for "performance reasons" on a PC, what makes you think the app will even run on a mobile platform, which is usually well behind the curve in terms of current processor performance. Rewrite …

Member Avatar for Ancient Dragon
0
91
Member Avatar for slimjimmer

Not entirely. gcc (which I guess you're using) has some built-in functions (as evidenced by the second message). First, turn these off to get a better idea of what's going on. [ICODE]gcc -fno-builtin malloc.c[/ICODE] This done, the compiler should be then forced to follow the normal C sematics for undeclared …

Member Avatar for Salem
0
227
Member Avatar for zxz

Start with the basics. Read some input, and print it right back out. Then think about modifying it to detect a palindrome.

Member Avatar for afas87
0
117
Member Avatar for deepugtm

It's not that you can't, it's just that it'll be so much harder to do, and you'll still only end up with something like 640x480 in 256 colours. Which is enough to make the output of any digital camera look, well pretty crappy. Your choice.

Member Avatar for deepugtm
0
93
Member Avatar for k4kasun

> Currently I'm doing two degrees parallely (physical & IT). So you tried to eat an elephant in one go, and now it's stuck in your throat. What do you want us to do about it? Do you want to swallow or cough it out? IT is way too intensive …

Member Avatar for k4kasun
0
175
Member Avatar for real_castilla

Sure, which bit exactly are you having problems with? - reading into an array - adding values - playing it

Member Avatar for rafi867
0
4K
Member Avatar for subhas.236

Which operating system? Which compiler? Which .... There's no standard way to find out, nor is there much use that you can make of it even when you know it.

Member Avatar for death_oclock
0
107
Member Avatar for EvilOrange

1. Learn how to indent code. 2. Learn how to use a debugger. The debugger would trap the segfault, AND then allow you to explore the code at the point the trap happened. From that you might get more of an idea as to where it's going wrong than simply …

Member Avatar for mad93
0
124
Member Avatar for rosenberg_a
Member Avatar for computercobra
Member Avatar for RyFo18

[code] 3DFilter: filter.o $(IO)file_io.o $(CC) $(CFLAGS) -o 3Dfilter filter.o $(IO)file_io.o $(CFLAGSPOST) filter.o: filter.c $(IO)file_io.h includes.h $(CC) -c $(CFLAGS) filter.c file_io.o: $(IO)file_io.c $(IO)file_io.h includes.h $(CC) -c $(CFLAGS) $(IO)file_io.c [/code] Everything except the executable needs -c (compile only) The executable needs all the libraries.

Member Avatar for RyFo18
0
137
Member Avatar for drsmith

So are you in control of either the producer or consumer, source code wise? Is the producer a perl script?

Member Avatar for KevinADC
0
133
Member Avatar for LucyB

Depends on the scale of the problem. If you can "see" the whole problem at once, then just doing the code is probably fine. But if it's going to take you more than a day (or you plan on maintaining it in any way), then some kind of design is …

Member Avatar for Rashakil Fol
0
103
Member Avatar for pocnib

Instead of relying on a syscall to output a string, is there one to output a character? If so, use that to practice using a loop to scan a string until a \0 is found. Then you can make the loop do other things, like say compare a char with …

Member Avatar for Salem
0
136
Member Avatar for 3pid

Try [URL="http://cboard.cprogramming.com/showthread.php?t=111666"]cross-posting[/URL]. Try posting your source code.

Member Avatar for 3pid
0
231
Member Avatar for masterarcher

@ianvdl Are you a teacher / lecturer / TA of this course? > qualifies as poor academic practice If you're pushing "gets()" and "fflush(stdin)" as being the height of "academic excellence" then expect a rough time round these parts.

Member Avatar for ianvdl
0
108
Member Avatar for riahc3

So if this were a pack of cards, player1 would choose a card, and the others would be dealt a card from the remaining deck. Think of it in these terms, - shuffle the deck - find card (and remove it) - deal card (from the top of the deck, …

Member Avatar for Salem
0
183
Member Avatar for d4diaz

Decimal 123 123 / 10 is 12 123 % 10 is 3 Now replace /N and %N with a base of your choice, rinse and repeat.

Member Avatar for Freaky_Chris
0
89
Member Avatar for aashaw
Member Avatar for Salem
0
107
Member Avatar for lehe
Member Avatar for erms

Install a decent firewall which allows you to control who gets out, as well as who gets in. Configure it to only allow your browser to make outbound connections over http. Install [url]http://www.wireshark.org/[/url] and use it to observe what your machine is doing on the network.

Member Avatar for erms
0
114
Member Avatar for androidodnetnin

Look at past posts, and work out the probability that on any given day, there'll be a new post from some wannabe graduate who can't think for themselves, and who needs "help thinking of a project". D'ya think this line will work with say - I can't think of what …

Member Avatar for Rashakil Fol
0
144

The End.