2,867 Posted Topics
Re: Think of it this way: This fills [inlinecode]tempChr[/inlinecode] with data up until a newline is reached, however it also trashes the newline that follows. [code=cplusplus]airportsMaster.getline(tempChr, 35,'\n');[/code] Now this trashes [I]another[/I] whole line (or 35 chars, whatever comes first): [code=cplusplus]airportsMaster.ignore(35, '\n');[/code] So of course it's going to skip some lines. | |
Re: >We have implicit destructors defined , when their actual definition is absent . No, since you declared the constructor, you're going to have to define it too, or else you're going to get linker errors. >Does that mean , that when we delete a Base class pointer , pointing to … | |
Re: It's kind of hard to see what's wrong unless you post more code, more specifically, "Entry.h"... | |
Re: >hi there can n e 1 help me pls Probably. But if you want a better chance of people actually replying, you may want to read the first paragraph of this: [URL]http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_clean[/URL] >i have an mac book 10.4.8 and my son has completely locked me out f it and now … | |
Re: >When you asign a pointer to an array you don't use the & operator. You don't [I]have[/I] to. Sure, most people don't, but there's nothing stopping you from assigning a memory address from a particular element in an array like the OP did. | |
Re: >about the radians..i mean how does it make difference in code! It makes a whole ton of difference. [inlinecode]sin()[/inlinecode] and [inlinecode]cos()[/inlinecode] of course return values in radians. Here's how to convert degrees to radians (or vice-versa). [URL]http://www.teacherschoice.com.au/Maths_Library/Angles/Angles.htm[/URL] | |
Re: >What do you think is faster to learn I'd say C# is quicker to learn. >better (with more features) C++ has way more features. You aren't limited to the .NET framework if you choose to work with the WinAPI. There's also an increased performance because you aren't using the .NET … | |
Re: >I like QT API verry much, but I dont know how compatible is with a system . It's as compatible as systems are running Linux. >I dont like VC++ because I can only use it on windows. Welcome to the world of GUI programming. If you write native GUI code … | |
Re: >What does he mean by repeatedly do the process? Do the same thing again, and again, and again... >And how do I code that in? You would use a while() loop, which keeps going until the user decides to quit. >accept data pairs You read in 2 numbers from cin. … | |
Re: >Ok since were are talking about API's I have a question. Just because the topics are similar doesn't mean you can just hijack someone else's thread. If you have a specific question that's different from the original question made by the original poster, create a new thread. Thanks. | |
Re: >Open the file, you want to write to. Aren't you forgetting to prompt the user for the filename to write to? >If file did not open try again. That's not necessarily the best method, because most likely if it fails the file is being used by another program, so if … | |
Re: The prototype looks interesting, however I think you need to majorly rework the HTML/CSS on the page. I know, it isn't really part of framework of PerlBB, which is what you're probably most concerned about, but if you want to demo something, make it look good! Another feature which you … | |
Re: > `while (((*p).next != nil)&&((*p).next < average))` You're comparing a pointer with an integer. It's exactly what the my compiler said about that line. You should compare it with the value of 'num' contained in that node that you're currently comparing it with... Secondly, you don't have to always use … | |
Re: Google mysteriously had a break-down the moment you tried to use it? [URL]http://gentoo-wiki.com/HOWTO_Advanced_Mouse#Button_Remapping[/URL] | |
Re: >madam thanks for the things Fixed quote ;) >but we arent allowed to use them. How else does your professor expect you to keep track of the number of times a word is present in a sentance, then? I'll let Narue answer this one... | |
Re: Wow, thanks a lot Dani. Now I'll be able to know when I've started a flame war with one of my blog entries. ;) Is there a way of setting a default subscription state on my entries? Because it's a little bit of a hassle subscribing to each individual blog … | |
Re: >I want to know the functions used to save a data in access database Usually [URL="http://en.wikipedia.org/wiki/Open_Database_Connectivity"]ODBC[/URL] is used to accomplish this, which can connect to numerous database types using the same API, and it's even been ported to multiple platforms. | |
Re: >So where can I find all the new visual c++ information [url]http://msdn2.microsoft.com/en-us/visualc/default.aspx[/url] >like where I can learn to use new the newer c++ Check out the stickies at the top of this forum. | |
Re: >I would have love for you to finished the sentence. He did -- what it looks like [B]kansmish82[/B] was trying to post was a sort algorithm, but as any half-decent programmer can see, doesn't do anything remotely close to that... | |
Re: >super And the point of bumping a year-old thread to say that is exactly what...? | |
Re: >Microsoft treat their customers fairly Hilarious. :rolleyes: | |
Re: >Can anyone tell me what is the difference between network server and internet server. Technically an Internet server is a network server, since the Internet is one huge network. :) Anyway, try your hand at Google; I'm not going to just give your homework answers to you. | |
Today I just happened to be trying to hotlink an image from ImageShack using the [img] tags, and I had the constant problem of the tags being parsed into the [url] hyperlinks. And then when I looked around for the "insert image" button in the Advanced Reply, I could no … | |
Re: [quote=redwinkle;247442] suggestion of the salesman only to findout the router requires Windows.[/quote] Bah, a Linksys modem requiring Windows? Those routers are supposed to be completely platform independent. Type in its IP address into the web browser after you've connected the computer to the router, and you should get the router … | |
Re: How in the world did you get it to compile? For one thing, you'll need to #include <iterator> if you intend on using [inlinecode]ostream_iterator[/inlinecode]. [code=cplusplus]int main() { vector<string> tokens; char _string[256]; char inputChar[256]; string inputString; ifstream input; cout << "Enter name of an existing file: "; cin.get( _string, 256 ); … | |
Re: >why is it bad?? Because it uses a call to the OS to run the program "Pause". Doing this is a waste of resources, when it's just as easy to use getchar() or cin.get(). Secondly, system("pause") is not portable, so you will need to change the code if you want … | |
Re: Stop using crappy input techniques, and you'll likely discover that the problems you are currently experiencing will vanish. [inlinecode]gets[/inlinecode] is your first mistake. [URL]http://www.cprogramming.com/tips/showTip.php?tip=3&count=30&page=1[/URL] [inlinecode]scanf[/inlinecode] leaves a trailing newline in the input buffer. This is bad because other functions will grab the newline left behind, and input functions will be … | |
Re: >Most common distros will run on 256MB though they may be slow. Most common distros will run on 64MB though they may be slow. :twisted: (Believe me, I know!) | |
Re: >Is there a way to terminate "less" without having to stop it first like this? Have you tried hitting a simple 'q'? >pkg_add said it had failed to find some Linux libraries it needed. Does it say which libraries it needs? I'm not familiar with pkg_add, but it's usually pretty … | |
Re: Disk Utility cannot repair the drive, as it has likely gone to quite a far stage of corruption. Probably the best thing for you to do at the moment is a complete reformat and reinstallation of Mac OS X. | |
Re: >you are wrong about MEPIS not being unique Tell us what [I]is[/I] unique about MEPIS, then. >It is spelled with all capital letters. That alone is unique I think Are you serious? Anywa, having a huge amount of software is NOT a good reason to buy a distro. Personally, I … | |
Re: >Is there a way I could get red hat 7? [URL="http://freshrpms.net/mirrors/redhat/7.3.html"]Sure[/URL]. Don't know if you already know this, but actually Red Hat split up when they reached version 10. Therefore you can get Red Hat Linux up until version 9, if you care. [URL]http://www.icewalkers.com/Linux/Software/53470/Red-Hat-Linux.html[/URL] | |
Re: As long as you don't have KDE on your hard drive, it's pretty pointless trying to run a non-existant program. You can either use the graphical package manager included with Gnome to do the job, or if you're feeling handy, start up the terminal and enter the following commands: [code]# … | |
Re: [quote=jbennet;319557]actually i think i heard that somewhere.....[/quote] [URL]http://www.daniweb.com/techtalkforums/thread61714.html&page=3#post277864[/URL] [URL]http://cboard.cprogramming.com/showthread.php?t=85556[/URL] And that's as far as I can trace the origin of that acronym... Regarding the original topic: MySpace is a fad. It's something that all the teenagers want to go on, partly to socialize, but mostly because everyone else is doing … | |
Re: >Here is a program that might help you Somehow I kind of doubt that when the code doesn't even compile. :rolleyes: | |
Re: There was a um, thread about it a while back: [URL]http://www.daniweb.com/techtalkforums/thread51605.html[/URL] Never used it. There's actually tons of distros that I'd like to try but haven't got the time. Maybe someday... For now I use Debian/Gentoo. | |
Re: >this should allow me to boot both right? If i stick with the defauklt settings should I be ok? Yup. >Does the bootloader need to be on the MBR of HDD1 or HDD2? Depends. You need to install GRUB on the MBR of the [B]Primary Master[/B], which can be found … | |
Re: Your function's prototype should not be inside another function, as your are doing here. It should also be BEFORE the function definition. Change the function's return type from [inlinecode]void[/inlinecode] to [inlinecode]int[/inlinecode]. The return the value of 'max'. All that's necessary is for you to call the function in the cout … | |
Re: Hmm... where did you get the code? 'Cause it looks like it was written for the ancient Turbo compiler. I would suggest finding some better code that does not use old coding methods such as iostream.h (new replacement is simply iostream), clrscr(), void main and getch(). Anyway, regarding the initial … | |
![]() | |
Re: I'm a 5 year-old super genius. If you don't believe me, take a look at my profile: [URL]http://www.daniweb.com/techtalkforums/member73097.html[/URL] :eek: Of course, no one here is going to beat iamthwee as the youngest... :cheesy: | |
| |
Re: Tell me how the function you just posted would help make your code any simpler. Plus you need to change 'npos' to string::npos if you want to have any chance of making it work. | |
Re: It's kind of hard to solve your problem because:[LIST] [*]You didn't use [URL="http://www.daniweb.com/techtalkforums/announcement8-3.html"]code tags[/URL] [*]You never stated what you were having problems with in your code [*]It's kind of hard to tell what's a syntax error and what is simply cut-off code when you copy+pasted the code here[/LIST]Soooo... I would … | |
Re: >Consider the following which would do the exact same thing as Walt's for loop Are you so sure about that? You're using one of the array subscript variables 'x', as a loop index. That's certain death when you start assigning it a random value inside the loop. | |
Re: First of all -- let me tell you what Airport looks like when a Mac is wireless-enabled (drat, external picture not showing! check attachment) A default-configured Mac will have the icon circled above if it's wireless enabled. So, if you don't see this, it's pretty safe to say it doesn't … | |
![]() | Re: >For this to work, though, you'll need to use the std::string type (#include <string>). ...really? I've used ifstream before with C strings and never had a problem. From what I know, it's simply derived from the same stream object as cin, as the only difference between them is where they're … |
Re: >if (found [COLOR=Red]=[/COLOR] true) Now do you see why it's always saying that it's in the database? | |
Re: Perhaps you need to disable screensaver/sleep mode on your machine? That's usually the cause of such things. | |
Re: >I'm surprised you were able to post this with no text. He did use text... just a couple of dots that were colored white. |
The End.