2,867 Posted Topics

Member Avatar for rodkay

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.

Member Avatar for rodkay
0
104
Member Avatar for gpta_varun

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

Member Avatar for John A
0
89
Member Avatar for Fabii23

It's kind of hard to see what's wrong unless you post more code, more specifically, "Entry.h"...

Member Avatar for John A
0
67
Member Avatar for AvvY

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

Member Avatar for John A
0
266
Member Avatar for spankyg

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

Member Avatar for John A
0
125
Member Avatar for need.help

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

Member Avatar for John A
0
125
Member Avatar for jan1024188

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

Member Avatar for jan1024188
0
93
Member Avatar for jan1024188

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

Member Avatar for ~s.o.s~
0
248
Member Avatar for nottoshabi

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

Member Avatar for John A
0
190
Member Avatar for n.aggel

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

Member Avatar for nottoshabi
0
113
Member Avatar for nottoshabi

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

Member Avatar for WaltP
0
131
Member Avatar for Mushy-pea

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 …

Member Avatar for Mushy-pea
0
176
Member Avatar for notfornothing21

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

Member Avatar for WaltP
0
143
Member Avatar for Sturm

Google mysteriously had a break-down the moment you tried to use it? [URL]http://gentoo-wiki.com/HOWTO_Advanced_Mouse#Button_Remapping[/URL]

Member Avatar for Sturm
0
113
Member Avatar for bobcats

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

Member Avatar for bobcats
0
353
Member Avatar for Dani

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 …

Member Avatar for happygeek
0
93
Member Avatar for noora000

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

Member Avatar for John A
0
112
Member Avatar for Tauren
Re: c++

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

Member Avatar for John A
0
126
Member Avatar for jobellelaiza

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

Member Avatar for ~s.o.s~
-1
158
Member Avatar for levk
Member Avatar for ~s.o.s~
0
230
Member Avatar for twilli227
Member Avatar for jbarry315
0
378
Member Avatar for vic_letran27

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

Member Avatar for jbennet
0
118
Member Avatar for John A

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 …

Member Avatar for ~s.o.s~
0
552
Member Avatar for redwinkle

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

Member Avatar for oblada
0
146
Member Avatar for delphi_uk

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

Member Avatar for delphi_uk
0
107
Member Avatar for pupsia

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

Member Avatar for John A
0
386
Member Avatar for hbk619

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 …

Member Avatar for hbk619
0
206
Member Avatar for ayk-retail

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

Member Avatar for jbennet
0
557
Member Avatar for Mushy-pea

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

Member Avatar for blud
0
134
Member Avatar for Enards

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.

Member Avatar for John A
0
174
Member Avatar for anthonycea

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

Member Avatar for jbennet
0
334
Member Avatar for TheNNS

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

Member Avatar for jbennet
0
142
Member Avatar for Marks256

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

Member Avatar for jbennet
0
169
Member Avatar for linux

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

Member Avatar for christina>you
0
212
Member Avatar for ankit_the_hawk

>Here is a program that might help you Somehow I kind of doubt that when the code doesn't even compile. :rolleyes:

Member Avatar for lakshmi.1987
0
264
Member Avatar for >shadow<

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.

Member Avatar for jbennet
0
91
Member Avatar for jbennet

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

Member Avatar for mepnoob2005
0
125
Member Avatar for nottoshabi

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 …

Member Avatar for nottoshabi
0
116
Member Avatar for livingsword

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 …

Member Avatar for livingsword
0
413
Member Avatar for mattyd

My desktop's changed a little bit since the last time I posted...

Member Avatar for rkamin1
0
243
Member Avatar for maui_mallard

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:

Member Avatar for jbennet
0
228
Member Avatar for erode
Member Avatar for erode
0
94
Member Avatar for Valadair

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.

Member Avatar for Valadair
0
109
Member Avatar for spankyg

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 …

Member Avatar for John A
0
145
Member Avatar for boujibabe

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

Member Avatar for Lazaro Claiborn
0
275
Member Avatar for luvs2create2

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 …

Member Avatar for John A
0
137
Member Avatar for sakura_fujin

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

Member Avatar for Lerner
0
221
Member Avatar for SHWOO

>if (found [COLOR=Red]=[/COLOR] true) Now do you see why it's always saying that it's in the database?

Member Avatar for WaltP
0
176
Member Avatar for bwjones

Perhaps you need to disable screensaver/sleep mode on your machine? That's usually the cause of such things.

Member Avatar for John A
0
59
Member Avatar for The Dude

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

Member Avatar for The Dude
0
58

The End.