2,867 Posted Topics

Member Avatar for guy40az

I don't know, but I'd definitely suggest trashing that old crap and getting a new compiler such as Visual Studio 2005 Express, or Dev-C++. And if you need to hold huge numbers I'd suggest looking into a math library.

Member Avatar for John A
0
224
Member Avatar for mrjoli021

If you're feeling adventurous, download OpenOffice's source code. It contains algorithms for reading Excel files, which you can implement in your program, under the GPL. And if you don't like the idea of digging through mountains of source code, do what Infarction suggested, and try reading in a simple ASCII …

Member Avatar for iamthwee
0
91
Member Avatar for user333

Post your code. And as a word of caution, make sure that you write out the struct/class's members out individually -- any pointers will completely screw up the system.

Member Avatar for John A
0
32
Member Avatar for XxBigxBossxX

[quote=Aia;337927]Oh... oh!. You are going to hear about this one. :)[/quote] I don't get it. The only other alternative is to use some curses library.

Member Avatar for John A
0
77
Member Avatar for Prog.Learner

Use getline to handle it: [code=cplusplus] getline(cin, variableGoesHere);[/code] But remember, cin leaves a newline in the input buffer, so if you use cin calls before this (not necessarily in this case), you'll have to call cin.ignore to clear the input buffer.

Member Avatar for John A
0
248
Member Avatar for Sturm

Are you sure you have the SDL TTF runtime libraries installed properly? The code looks fine at first glance, but I don't really have time to run this code on my system right now, so I might in a few hours.

Member Avatar for John A
0
2K
Member Avatar for Lomoco
Member Avatar for maverick786

>IntList info; Make this into an array, and the compiler won't complain about converting from IntList to IntList*. I can't check over the rest of your code right now, but it looks alright at first glance.

Member Avatar for WaltP
0
110
Member Avatar for Aarky

[QUOTE=Aarky;268613]At the Unix level that underlies OS X, there should be a way to tell the OS that the converter is really a modem. Just how to do that, I don't know and am hoping for some help on this forum.[/QUOTE] No, I think the problem is that you need …

Member Avatar for paul110
0
219
Member Avatar for fmlyman

>Try to ask how many words will the user enter and orientate the program to this... Na, you could just use getline(), which is far more powerful than cin. Since I'm in a good mood today, I've written how it would look: [code=cplusplus] string line; getline(ins, line); istringstream convert(line); // …

Member Avatar for John A
0
127
Member Avatar for forumster

>I'm just wondering who designed/developed daniweb's website? I believe that someone did an early photoshop mock-up for Dani: [URL]http://www.daniweb.com/techtalkforums/thread58100.html#post263727[/URL] But that actual developing was done by Dani.

Member Avatar for Dani
0
30
Member Avatar for maverick786

You forgot the pointer in the function prototype: [code] int listsize(listrec[COLOR=Blue]*[/COLOR]);[/code]

Member Avatar for maverick786
0
143
Member Avatar for scsl

It's quite possible, although it depends on the wireless capability of the iMacs. To find out, boot them up and see if there's an Airport menu on the menubar. If not, it's highly unlikely that the computer is wireless-capable. To solve the problem, you could buy an Airport Extreme card …

Member Avatar for Mariowii
0
151
Member Avatar for FlyingRedneck

>now it doesn't know what cout or cin is That's because all objects in the standard template library are encased inside the std:: namespace to avoid abiguities. You have 2 options: prefix all objects with std::, like this: [code=cplusplus]std::cout << "hello world" << std::endl;[/code] The other option is to place …

Member Avatar for John A
0
103
Member Avatar for Riazansar

What's this code supposed to do? [code=cplusplus] void determine ( int &smallest, int &largest) { int A; A=smallest; A=largest;[/code] And regarding your original question, I'd say you meant the line of code to look like this instead: [code=cplusplus]if(small < 0 || large < 0)[/code] Also, cin >> won't work if …

Member Avatar for John A
0
127
Member Avatar for confused!

Hmm... something looks fishy: [code=c] char temp[255] = {'\0'}; for (i=0; i<length; i++) { if ((temp[i] >= 'a') && (temp[i] <= 'z')) temp[i] = char(int(temp[i]) - 32);[/code] Why are you checking the value of [INLINECODE]temp[/INLINECODE] right after you give initalize it with [INLINECODE]\0[/INLINECODE]? Perhaps in the if() statement you wanted …

Member Avatar for WaltP
0
288
Member Avatar for guy40az

Now I'm getting confused. What are we talking about, compilers or IDEs? The only compiler I'm aware of that runs on *nix systems is gcc/g++, so I'm pretty well forced to use it in some form. Please correct me if I'm wrong, I haven't used these in a while but... …

Member Avatar for WaltP
0
140
Member Avatar for jimsplaz

Well, I've never used Garmin's Training Center, so I don't really have personal experience on my part. However, what I would suggest: Try dragging all the files contained inside the disk image onto your desktop. Then see what happens when you open up the installer. It could also be that …

Member Avatar for John A
0
158
Member Avatar for afr02hrs

[quote=Aia] I guess I'm not understanding what your saying. Where did you change the Index = 1 to?.[/quote] Reread [B]vijayan[/B]'s post. If the OP did what was suggested, it should be very clear where the assignment was placed: [quote=vijayan121;336924]Index = 1; should be [B]inside the outer while loop[/B]. [quote=Aia;336938]I'm afraid …

Member Avatar for John A
0
156
Member Avatar for RaCheer
Member Avatar for RaCheer
0
155
Member Avatar for eXceed69

Well, there's tons out on Google: [URL]http://www.google.com/search?q=video+screen+capture[/URL] But I've personally never used any of the ones available for Windows, so I can't really make a proper recommendation.

Member Avatar for jacsoft
0
90
Member Avatar for afr02hrs

Remove the semicolon here and you should have no problems: [code]if (Line[Index] != ' ')[COLOR=Red];[/COLOR][/code]

Member Avatar for Lerner
0
347
Member Avatar for evilsilver

Um... hello? This thread is like 2 years old, and plus your code isn't the finest quality... (like using void main and outdated headers)

Member Avatar for crazylunatic
0
819
Member Avatar for Amanda21

Some points.... You should declare the following variables as ints instead of strings, so that you can compare values later on: [inlinecode]minimumYears, maximumYears, maximumAvg, minHits, maxBats, maxHits , minimumAvg, minBats[/inlinecode] This should fix the majority of the errors. A question for you: why in the world are you mixing prefixes …

Member Avatar for Salem
0
325
Member Avatar for arunk8186

Well, for one thing importing from an Excel file is not as easy as it may sound. You must write a parser (or find one) that grabs the data, and it quickly turns into an icky mess for anyone unexperienced with C/C++. If you have the numbers in a regular …

Member Avatar for arunk8186
0
134
Member Avatar for tatumkay

First of all, trash these globals at the top of the program! [code=cplusplus] double quiz1; double quiz2; double midtermExam; double finalExam; double courseAverage; [/code] That's why you made a struct. So you wouldn't have to use globals. If you need to modify values inside one of your functions, use references …

Member Avatar for John A
0
180
Member Avatar for satish.paluvai

>in which header file the operators will be stored in c++ It could be a trick question... perhaps the question is asking about the normal C++ operators such as +,-, etc.. In that case, there is no header file as these are built into the C++ language.

Member Avatar for Ancient Dragon
0
144
Member Avatar for RwCC

[quote=Ancient Dragon;335578]I have a secret to tell you if you promise not to tell anyone else -- I don't like American footfall either. :eek: European football (we call it soccer) is a lot more exiting to watch, but we don't get much of it over here.[/quote] OK, please excuse my …

Member Avatar for jbennet
0
108
Member Avatar for whoknows101

>ok but how do i make it? Here's a good starting place: [URL]http://www.winprog.org/tutorial/[/URL] But if you have trouble understanding a lot of it, don't come running here for help. You need to be decent with C++ first.

Member Avatar for jan1024188
0
216
Member Avatar for Ene Uran

It would be funnier if the code would actually compile (assuming you had written the necessary headers and such). Didn't you preview the post first? It's so obvious that you have a broken quote... But yeah, this would be better suited for the Geek's Lounge, so our non-programmer friends can …

Member Avatar for thekashyap
0
158
Member Avatar for gpta_varun

Either you forgot to put the actual variable declaration (the one [U]without[/U] the extern keyword) in one of the source files, or you forgot to feed that file to the linker...

Member Avatar for gpta_varun
0
164
Member Avatar for rtonie

> Hope this will help. Actually I kind of doubt it. This thread is close to 3 years old; the newbie hasn't posted since, and it's highly unlikely he/she will read your reply.

Member Avatar for jamesclrk
0
109
Member Avatar for JaksLax

>What I cant figure out is how do I first make a call in main to go into my Sort constructor. Are you talking of something like this? [code=cplusplus] Sort x(firstList, secondList);[/code] As for your errors, they're because when you pass an array like this to a function: [code=cplusplus]Sort::Sort(int list1[], …

Member Avatar for John A
0
206
Member Avatar for mohiuddin.shaik

[quote=Salem;335743]Seems simple enough [code] int main() { if (!printf("welcome ")) { printf("welcome"); } else { printf("to ieg"); } return 0; }[/code][/quote] Wow... Salem! You never fail to impress me... (I'd give you more rep if the system would let me ;))

Member Avatar for John A
0
95
Member Avatar for lookingforhelp

Well, it seems like the "24 hour" part is up by now, so it doesn't matter anymore, does it?

Member Avatar for John A
0
116
Member Avatar for Tim Gleebitz

>OK, well its not really a school project, but it is a project. What kind of a newbie wants to write [U]2 levels of pseudocode[/U] before they create their project? :eek: Regardless, thekashyap is correct, and you should do what he suggests. Another thing you should [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351"]stop doing is gets[/URL].

Member Avatar for John A
0
114
Member Avatar for zenah

> :rolleyes: :rolleyes: :rolleyes: :rolleyes: :cheesy: :mad: :mad: Er... congrats on your first post, whatever that was meant to be.

Member Avatar for Salem
0
163
Member Avatar for Duki

[quote=Duki;332141]I just got my 226 in today and it's sweet looking. Can't wait to get my computer in so I can test it out. I'll post pictures when everything comes in... woo[/quote] Looks like I beat you to it. :cheesy: [url]http://www.daniweb.com/techtalkforums/thread72889.html[/url]

Member Avatar for Duki
0
135
Member Avatar for smartway
Member Avatar for RwCC
0
63
Member Avatar for swordy06

>my problem is, that i have been trying to use a counter to display the average and im stumped The problem is that you need to store the data in some sort of array -- preferably a vector, and then you can calculate the average. Vectors are nice, because they …

Member Avatar for John A
0
252
Member Avatar for John A

With the massive amounts of text editors out there, you'd think it would be easy to find a decent freeware code editor for Mac OS X. Well, not exactly. The numbers are deceiving because:[LIST] [*]Most "good" editors for Mac OS X were really written for Linux or Windows, and they …

0
95
Member Avatar for nikkidee

>remove the & after the last int in the bool Bsearh fuction Why? 2 things I noticed about your code:[LIST] [*]Your function implementation differs from the prototype in the sense that the prototype doesn't accept an int array for the first parameter. Change it to something like this: [code=cplusplus]bool Bsearch …

Member Avatar for ~s.o.s~
0
180
Member Avatar for guy40az

>is there a command in visual c++ 6.0 that does this. [URL="http://msdn2.microsoft.com/en-us/library/ms686025.aspx"]Yes[/URL].

Member Avatar for John A
0
37
Member Avatar for John A

As many of you are already aware of, I was the winner of [URL="http://www.daniweb.com/techtalkforums/thread63237.html"]DaniWeb's end-of-the-year blogging competition[/URL]. So, Dani offered me the choice of both a Sony Cybershot digital camera and an Xbox 360, or I could trade those in and get a Dell 24" flatpanel display. So... I originally …

Member Avatar for happygeek
0
342
Member Avatar for ixlr8
Member Avatar for satish.ambition

A website usually consists of 2 parts: a domain, which is what the user types into their web browser to get to a website, and the server, which hosts to content. There are SO many places to register your domain at, just take a quick Google around. Probably the most …

Member Avatar for satish.ambition
0
191
Member Avatar for The Dude

>I got 8/10 right Same, although it'd be nice to know which ones were in fact computer-generated. And yes, the renderers are getting better, making graphics more believable. The good news about this is we have better-looking video games ahead. :)

Member Avatar for Riff227
0
130
Member Avatar for grunge man
Member Avatar for guy40az

I'm too lazy to type a response... here is a thread that discusses your question: [url]http://www.daniweb.com/techtalkforums/showthread.php?t=16449[/url]

Member Avatar for Lerner
0
120
Member Avatar for hgseric
Re: Lcd

>How do I display a graphic waveform on BTHQ 128064AVC-SMN-06-LEDwhite-COG? Depends on how you want to display it. If you're planning to do it at the console, you're going to have to find a console graphics library or use the one built into the WinAPI... For GUI graphics you have …

Member Avatar for hgseric
0
152

The End.