5,727 Posted Topics

Member Avatar for dello

[url]http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=2[/url]

Member Avatar for dello
0
204
Member Avatar for jamir0n

What errors are you getting? Most likely you either have some configuration problems (path settings, compiler flags) in VC++ or you have been using libraries that are specific to GCC and therefore unavailable to VC++.

Member Avatar for jwenting
0
76
Member Avatar for cdt1983

You might want to get rid of Realplayer though. It's a known host for spyware.

Member Avatar for jwenting
0
177
Member Avatar for LostinCode

At least you seem a more friendly and smarter person than your classmate ;)

Member Avatar for LostinCode
0
197
Member Avatar for freesoft_2000

NullPointerException is a RuntimeException which means you don't have to catch it in your code. Therefore the compiler didn't complain. Where did you get it? Figure that out and check whether whatever you're using there indeed isn't null before continuing. If you don't know what a NullPointerException is I'd advise …

Member Avatar for jwenting
0
196
Member Avatar for peter_budo

getline as the error says works only with strings. You'll have to convert them to ints yourself afterwards using atoi.

Member Avatar for peter_budo
0
157
Member Avatar for Mooonky

loops can be traversed in either direction. Decrease your counter from the length of a string to 0 while printing. That's all the hint you should need.

Member Avatar for anastacia
0
157
Member Avatar for hlcch123

hey, and I want a new digital camera, and a new car, and a new house, and I have no money either...

Member Avatar for alc6379
0
105
Member Avatar for serfurj

Not just that, but unless you want to limit yourself to a very small library of functions indeed you're going to have to use compiler specific libraries at some point. The trick is to use those libraries in such a way that the largest possible part of your code does …

Member Avatar for serfurj
0
158
Member Avatar for k1d

[url]http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=2[/url]

Member Avatar for k1d
0
139
Member Avatar for serfurj

There's so many different versions of so many different Netscape springoffs in use that I wouldn't be surprised if Google just did what the rest of the world does and that's ignore any of their code not working in some of those versions. Just make it compliant to the latest …

Member Avatar for jwenting
0
206
Member Avatar for twill9279

That restriction is the reason it's free. It's designed specifically as a learning tool, which is why distribution of the produced programs is inhibited by the requirement to run them inside the IDE. There are NO free VB versions for Windows 95 either. There may be free BASIC compilers but …

Member Avatar for jwenting
0
266
Member Avatar for OurNation

huh? You'll need to make sense for people to be able to understand what you're asking.

Member Avatar for tgreer
0
61
Member Avatar for Vinay

quote right Alex, but that cracker mentality is exactly what a lot of the hardcare linux people have. They're religious zealots, and I use that term deliberately. To them terrorism against their enemies is seen as just and right, everything is allowed (even to be praised) in the fight against …

Member Avatar for Thong_Ispector
0
179
Member Avatar for breeduk

hmm, probably xamp installs a webserver of its own when running... If you didn't know about this, that's nasty. Anyone know what it exposes to the world? To run php in Apache you need a plugin (mod_php I think it's called), on its own Apache doesn't know heads or tails …

Member Avatar for viperman224
0
182
Member Avatar for justbboying
Member Avatar for Marivel

Do you have to use vector? If you can use list instead, that has built-in sorting functionality, all you need is to pass the sort function of list a pointer to a boolean function that compares 2 elements.

Member Avatar for britt_boy
0
212
Member Avatar for ! !

French programmers? Isn't that an impossibility? ;) Sorry, but all the French software I've seen wasn't very good at all :)

Member Avatar for jwenting
0
91
Member Avatar for KittyGirl

To get to the core of why you don't get your expected result: Check what happens in your function triangleShape(int). Because you are passing your shape variable to the method by value any changes to the shape parameter of the method are not visible outside the method. To get the …

Member Avatar for jwenting
0
195
Member Avatar for dalaharp

Turbo C is a very old DOS compiler. 250*250 just happens to be very near the maximum value for a 16 bit unsigned int which is what under DOS is used as a pointer. Use a 32 bit compiler if you want to allocate larger arrays.

Member Avatar for vegaseat
0
166
Member Avatar for rcrevolution

Which CPU wins out has everything to do with test conditions. Apple couldn't get a dual CPU G5 to outperform a single CPU P4 machine even when they used an optimising compiler for the G5 and an non-optimising compiler for the P4 AND turned off hyperthreading on the P4 while …

Member Avatar for oenone
0
143
Member Avatar for rangers10

You need no sorting at all in this scenario. Just keep an array of 4 ints and 2 ints. For each int read check if it's larger than the one in which indicates the smallest and smaller than the one that indicates the largest. If so, insert it into the …

Member Avatar for alc6379
0
163
Member Avatar for freesoft_2000

unless you want something pretty special (like an executable jar file) you don't need to create a manifest file, the jar tool itself creates a default which in 90% or more of cases is enough (in over 5 years I've never needed to write my own). As to the use …

Member Avatar for jwenting
0
275
Member Avatar for missy

and scrap #include "stdafx.h" as it's not needed... Never understand why MSVC adds that to everything. Also add #include <iomanip> or you'll never get a clean compile. endl is defined there.

Member Avatar for vegaseat
0
125
Member Avatar for Luminus

no, that's not possible. What I'd do is store the questions with a unique number as a key, then create 50 random numbers and pull the questions with those numbers out of the database.

Member Avatar for Luminus
0
77
Member Avatar for thehosley

AOL is just a rebranded IE5 yes. If you've upgraded your machine to IE6 it's a rebranded IE6 :) Indeed let's not have holy wars. IE is no more vulnerable than is Firefox or anything else, it's just a bigger target and therefore the malware authors can make more money …

Member Avatar for DMR
0
185
Member Avatar for missy

[QUOTE=Dave Sinkula]>i don't know what to do with this, i don't even know how to start off. Try: int main() comes to mind. >this is not homework. You're being employed to write this? Look for another job.[/QUOTE] I'd rather think her employer should look for another programmer and sue her …

Member Avatar for jwenting
0
101
Member Avatar for gallas

[QUOTE=gallas]>If performance is this much of an issue, you need to be using inline assembly. I am, in some cases, but mostly I'm relying on my old faithful GNU-compiler to do the optimization for me. Thank you for your piece of advice all the same.[/QUOTE] if you're that concerned about …

Member Avatar for jwenting
0
198
Member Avatar for arrr matey

And of course make sure you keep track of the numbers already generated so you don't end up handing out the same one twice... I'd also be very careful turning in the solution shown above as it's not C++ at all (though a decent idea to get you started on …

Member Avatar for arrr matey
0
93
Member Avatar for lizjci

[quote]This book will suck ur brain out.[/quote] Only if it wasn't properly attached to the common sense.

Member Avatar for Sphyenx
0
714
Member Avatar for erin21gobra
Member Avatar for serfurj
-1
206
Member Avatar for SquirrelProdigy

have you tried it? If it doesn't work, what does happen? My guess is you may be trying to read and write to a text file when you are handling binary data.

Member Avatar for SquirrelProdigy
0
142
Member Avatar for serfurj

you can't but some compilers will treat a file that has a .c extension as a c++ file if it contains c++ syntax which may make some people think you can.

Member Avatar for jwenting
0
141
Member Avatar for far

all you need is a loop, a float to hold the result, and a loopcounter :) I wrote the code in about 3 minutes, including the time to start my editor and the time to compile it.

Member Avatar for anastacia
0
166
Member Avatar for Vinay
Member Avatar for MrScruff

I guess you want the sliders lined up nicely? Try a BorderLayout with the labels in the WEST and EAST and the sliders in the CENTER. You'll get a BorderLayout with in each of WEST, EAST and CENTER a JPanel with a GridLayout. Each GridLayout has 3 rows and 1 …

Member Avatar for MrScruff
0
132
Member Avatar for moderate_rock48

that's because MS Paint doesn't have a clue as to animateg gifs. It can read them but will only see (and thus save afterwards) the first frame. You'll need other software, check tucows for some.

Member Avatar for moderate_rock48
0
69
Member Avatar for badchick

split it up into smaller, easier to comprehend chunks (iow, use what you learned about methods, classes, etc.). That should unstick you probably. If not think of how you'd do it without a computer. Write that down, then translate it into computer code one bit at a time (again, taking …

Member Avatar for britt_boy
-1
158
Member Avatar for JimJake
Member Avatar for indranil

I think (in fact I'm almost positive) you need a 1.4 or later JVM to run Tomcat 4 as it. You'd better upgrade anyway as 1.3 is way way old.

Member Avatar for jwenting
0
121
Member Avatar for Extreme

if you read back a few replies you'll see the answer to that. Learning to read compiler output can be a bit tricky but is extremely helpful. Tutorials and teachers should spend time on it (even though different compilers produce different output the principles remain the same), sadly most don't …

Member Avatar for jwenting
-1
266
Member Avatar for jifiii

read the parameter, strip away the -P, and use atoi on the rest of the string to convert it into an integer number.

Member Avatar for nvanevski
0
183
Member Avatar for ahmedsamir
Member Avatar for Bollimuntha_raj
0
155
Member Avatar for nufanvandal

if you know the order of the data it's as simple as hardcoding the different input conversions in that order. For int that would be a call to atoi which converts a string into an int. If not you'll have to write some code to detect what the input actually …

Member Avatar for nufanvandal
0
128
Member Avatar for mikeandike22
Re: sgml

View any website written in HTML or XML and you see SGML. Both are subsets of SGML after all.

Member Avatar for jwenting
0
74
Member Avatar for Redshift

[QUOTE=inscissor]What I'm amazed at is how a 6 year old knows more about configuring Windows than her parents. I went to my friend's house and her cousin knew more about computers than when I was 14. Yikes![/QUOTE] When I was 14 I'd never seen a computer... It was around that …

Member Avatar for moderate_rock48
0
578
Member Avatar for lida1984

the execution model for a .com file under DOS is deprecated. It was a specific execution model using special memory models. I don't think any modern compiler will support it.

Member Avatar for alc6379
0
132
Member Avatar for JIMBOB963

go to [url]http://www.java.com[/url] to download and install the browser plugin if you don't need the entire JDK. Saves download time and is easier to install (fully automated in fact).

Member Avatar for JIMBOB963
0
117
Member Avatar for Reagan
Member Avatar for sam1

read carefully... The compiler complains about not having a non-argument constructor in your superclass. This error occurs when you create a constructor yourself in the class which DOES take arguments and then fail to call that constructor in your subclass constructors.

Member Avatar for freesoft_2000
0
63

The End.