2,867 Posted Topics
Re: 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. | |
Re: 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 … ![]() | |
Re: 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. | |
Re: [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. | |
Re: 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. | |
Re: 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. | |
Re: >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. | |
Re: [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 … | |
Re: >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); // … | |
Re: >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. | |
Re: You forgot the pointer in the function prototype: [code] int listsize(listrec[COLOR=Blue]*[/COLOR]);[/code] | |
Re: 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 … | |
Re: >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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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... … | |
Re: 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 … | |
Re: [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 … | |
| |
Re: 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. | |
Re: Remove the semicolon here and you should have no problems: [code]if (Line[Index] != ' ')[COLOR=Red];[/COLOR][/code] | |
Re: 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) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: >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. | |
Re: [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 … | |
Re: >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. | |
Re: 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 … | |
Re: 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... | |
Re: > 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. | |
Re: >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[], … | |
Re: [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 ;)) | |
Re: Well, it seems like the "24 hour" part is up by now, so it doesn't matter anymore, does it? | |
Re: >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]. | |
Re: > :rolleyes: :rolleyes: :rolleyes: :rolleyes: :cheesy: :mad: :mad: Er... congrats on your first post, whatever that was meant to be. | |
Re: [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] | |
Re: >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 … | |
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 … | |
Re: >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 … | |
Re: >is there a command in visual c++ 6.0 that does this. [URL="http://msdn2.microsoft.com/en-us/library/ms686025.aspx"]Yes[/URL]. | |
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 … | |
| |
Re: 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 … | |
Re: >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. :) | |
Re: 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] | |
Re: >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 … |
The End.