5,727 Posted Topics
Re: [url]http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=2[/url] | |
Re: 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++. | |
Re: You might want to get rid of Realplayer though. It's a known host for spyware. | |
Re: At least you seem a more friendly and smarter person than your classmate ;) | |
Re: 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 … | |
Re: getline as the error says works only with strings. You'll have to convert them to ints yourself afterwards using atoi. | |
Re: 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. | |
Re: hey, and I want a new digital camera, and a new car, and a new house, and I have no money either... | |
Re: 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 … | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=2[/url] | |
Re: 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 … | |
Re: 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 … | |
Re: huh? You'll need to make sense for people to be able to understand what you're asking. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: French programmers? Isn't that an impossibility? ;) Sorry, but all the French software I've seen wasn't very good at all :) | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: [quote]This book will suck ur brain out.[/quote] Only if it wasn't properly attached to the common sense. | |
Re: x->y is shorthand for x.(*y) which may make more sense if you're not used to the syntax. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: Java didn't even exist when I was 14... | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: read the parameter, strip away the -P, and use atoi on the rest of the string to convert it into an integer number. | |
Re: show some of your creations and tell where they go wrong. | |
Re: 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 … | |
Re: View any website written in HTML or XML and you see SGML. Both are subsets of SGML after all. | |
Re: [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 … | |
Re: 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. | |
Re: 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). | |
Re: The real error will be in the InitInstance() method. | |
Re: 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. |
The End.