2,384 Posted Topics
Re: [QUOTE=annagraphicart;436444]Okay, So i'm close to finishing up my program. I just need a few more things. By the way, all of you are AMAZINGLY great. I appreciate all the help. Alright... My program outputs Names, their Bowling scores, and How many points they have received (the points still need to … | |
Re: [url=http://www.daniweb.com/techtalkforums/announcement8-2.html]We only give homework help to those who show effort[/url] You haven't written one line of code -- that hardly shows effort. | |
Re: Please use code tags instead, and watch spaces like in [INLINECODE]using namespace[/INLINECODE] or [INLINECODE]else if[/INLINECODE].[code]#include<iostream> using namespace std; int main() { int age; char sex; cout<<"please input your age:"; cout<<"please input your sex (M/F):"; cin>> age; cin>> sex; if ( age < 100 ) { cout<<"you are pretty young!\n"; } … | |
[URL="http://www.townhall.com/columnists/CalThomas/2007/08/28/vanishing_england"]Townhall.com::Vanishing England::By Cal Thomas[/URL] What are some opinions on this? (I am most interested in opinions from the UK or Europe.) | |
Re: In some respects, you don't even need to know the actual upper limits to write safe code. For example, [code]#include <stdio.h> #include <limits.h> int main(void) { int x; for ( x = 1000; x < INT_MAX / 2; x *= 10 ) { printf("x = %d\n", x); } return 0; … | |
Re: Disgusting. Jettison the pervert ASAP. Make your comments about a particular state in private. | |
[quote]10. If an impotent, bloated bureaucracy can’t solve it, then its best left festering. 9. You can’t spell “unethical” without U.N. 8. Genocidal dictators, beware our non-binding resolutions. 7. Bringing peace to our world (actual results may vary). 6. Tomorrows corruption today! 5. Raising pointless squabbling to an art form. … | |
Re: One thing that the OP could clarify is whether or not it is necessary to read the whole file into memory, or whether it might simply be simpler and easier to process as a stream. | |
Re: [QUOTE=Duki;428577]My prof is touching on information hiding, and good programming techniques. [/quote] Good. Then don't do this: [QUOTE=Duki;428577][code]#pragma once #include <iostream> using namespace std ;[/code] [/quote]Having the [INLINECODE]using namespace std[/INLINECODE] basically defeats the purpose of a namespace. And putting it in the header is known to cause problems down the … | |
Has this feature been removed? When I amble back to '[URL="http://www.daniweb.com/forums/search.php?"]old familiar[/URL]' (which takes more work than I would like), it doesn't work as I expect. That is, if I specify to search for "environment" in Geeks Lounge, I get results in forums [URL="http://www.daniweb.com/forums/search280691.html"]such as[/URL] [list][*]Windows NT / 2000 / … | |
[url]http://en.wikipedia.org/wiki/Second_Amendment_to_the_United_States_Constitution#Text[/url] [quote]A well regulated militia being necessary to the security of a free State, the right of the People to keep and bear arms shall not be infringed.[/quote]How about this one? Does it guarantee the right of the people to keep and bear arms? [url]http://en.wikipedia.org/wiki/Second_Amendment_to_the_United_States_Constitution#Modern_interpretations[/url] | |
![]() | Re: Sorry to drag this one up, but should proper use of these tags be documented [URL="http://www.daniweb.com/forums/misc.php?do=bbcode#code"]here[/URL]? |
Re: Post the code of your attempt, as well as a copy of a snippet of the text file and your expected output. | |
What are they? [url]http://www.daniweb.com/forums/memberlist.php?&order=DESC&sort=reputation&pp=50[/url] How many "about to become" or "in training" or whatever "almost something" categories are there? The "almost something" categories to me mean less than nothing -- unless they are intended to prompt a member to post more. | |
Re: [QUOTE=fzafarani;428056]You should use getch(); at the end![/QUOTE]No you really shouldn't. It's non-portable. Better would be to learn how to execute a command-line program from the command line. And please use [URL="http://www.daniweb.com/forums/misc.php?do=bbcode#code"][noparse][code][/code][/noparse][/URL] tags. | |
Re: Further information for those playing along at home: [url]http://en.wikipedia.org/wiki/Template_metaprogramming[/url] [edit]Oops. Missed the link at the bottom of the code. | |
Re: [code=c++] int a = 1; typedef std::vector< std::vector<int> >::iterator iter; for ( iter it = array.begin(), end = array.end(); it != end ; ++it ) { typedef std::vector<int>::iterator iter2; iter2 found = std::find((*it).begin(), (*it).end(), a); if ( found != it->end()) { std::cout << "row " << (it - array.begin()) << … | |
Re: [QUOTE=fzafarani;428055]good compiler such as turbo c v.3 in Microsoft windows?![/QUOTE]"Good compiler"? Doesn't Linux generally come with gcc? ![]() | |
Re: ^Has an interesting art work on her back. | |
Re: exit? It's a reserved word for a standard function, and you have not declared it otherwise. Work on your bracing. | |
[url]http://en.wikipedia.org/wiki/Sanctuary_city[/url] Could there be anything possibly more intentionally stupid? | |
I miss this default vB behavior, where when viewing Who's Online the threads to which I have posted have an indicator showing which thread(s) I have posted to. Can something like this be reinstated? | |
[url=http://en.wikipedia.org/wiki/United_States_Department_of_Education]United States Department of Education[/url] [url=http://www.cato.org/pubs/handbook/hb108/hb108-28.pdf]CATO HANDBOOK FOR CONGRESS[/url] | |
Re: Since I know little about it, I'll point you [URL="http://www.parashift.com/c++-faq-lite/exceptions.html"]here[/URL]. | |
What opinions might folks have about this US presidential (potential) candidate? [URL="http://en.wikipedia.org/wiki/Fred_Thompson"]Fred Thompson[/URL] - [URL="http://en.wikipedia.org/wiki/Political_positions_of_Fred_Thompson"]Political Positions[/URL] - [URL="http://www.youtube.com/profile?user=freddthompson"]YouTube[/URL] | |
Re: Do you have a minimally complete snippet that I might try to play along with? | |
Re: [QUOTE=amishosh;424950]I learnt the C language (NOT C++) but the concept of threading is completely new to me. I'm having trouble finding a good tutorial or book on the subject. Can some one point me to a tutorial or book about threading specifically using C? I use Visual C++ 2005 (7.0) … | |
Re: The rows would appear to be newline delimited; columns appear per character. Push back each column in a particular row, then when you are done with the row push it back. | |
Re: [url]http://clusty.com/search?query=matrix%20division[/url] | |
Can the size be adjusted in any way? It seems rather tiny to me on this end. | |
Re: Another debugging hint: write a quick lump of code to dump the structure contents, say something like this. [code]void show(const RawDataInterface *rdi) { printf("rdi->sIdentName[10] = %s\n", rdi->sIdentName); printf("rdi->nIdentCharLength = %d\n", rdi->nIdentCharLength); printf("rdi->sRawDataFilePath[200] = %s\n", rdi->sRawDataFilePath); printf("rdi->nFilePathCharLength = %d\n", rdi->nFilePathCharLength); printf("rdi->sRawDataFileName[200] = %s\n", rdi->sRawDataFileName); printf("rdi->nFileNameCharLength = %d\n", rdi->nFileNameCharLength); printf("rdi->nYear = %d\n", … | |
Re: [QUOTE=cscgal;425701]Decisions are typically made behind the scenes, using a wide variety of resources such as working with advisors, varoius in-person focus groups, and by data mining statistics such as tracking browsing habits throughout DaniWeb.[/QUOTE]I realize that such things are strategic tools which you would not be inclined to disclose publicly. … | |
Re: [url]http://en.wikipedia.org/wiki/Manifest_file[/url] ? [edit] [url]http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=72965&SiteID=1[/url] ? [url]http://clusty.com/search?input-form=clusty-simple&v%3Asources=webplus&query=application+%22failed+to+start%22+%22configuration+is+incorrect%22+%22manifest+file%22[/url] | |
Re: I'd start [URL="http://en.wikipedia.org/wiki/Design_Patterns"]here[/URL]. | |
Re: Have you corrupted outFile prior to this attempt? The supporting code may contain your answer. | |
Re: [url]http://www.adrianxw.dk/SoftwareSite/index.html[/url] | |
Re: [QUOTE=TkTkorrovi;426198]lint is outdated, compilers have now good enough error checking, so that we don't need lint.[/QUOTE]Apparently you must be speaking from ignorance of the capabilities of a modern linter. | |
Some of the sticked threads in Geeks' Lounge have been there for ages. Would it hurt anything to unsticky them? And let the topics be more to the top? | |
Re: I like to do problems that are new to me. I found a few lines of trigonometry did just dandy. | |
Re: [QUOTE=vishalsborse;426277]#include<iostream.h> void main() { char ch[3]; ch[0]=27; ch[1]=12; ch[2]=7; cout<<ch[0]<<"\n"; cout<<ch[1]<<"\n"; cout<<ch[2]; }[/QUOTE]Horrible, untagged, outdated code posted seemingly haphazard for no apparent reason. | |
Re: [QUOTE=cscgal;424767]If I didn't work to continually improve upon DaniWeb, we would still be the small technical support forum for just Windows and Mac that we started as. If it wasn't for all of the evolutions and new innovations of the site[...][/QUOTE]Would you consider a "Release Notes" thread in which we … | |
Re: [QUOTE=joydsouza90;425218]How do you clear a string in a single statement ? for egs. i want to clear name[20] of all its contents and leave it completely empty[/QUOTE][code] char name[20]; memset(name, 0, sizeof name);[/code]Although typically clearing all elements of a string is unnecessary. | |
Re: Can you use the standard library for this exercise. If so, look into [INLINECODE]mktime[/INLINECODE] and [INLINECODE]localtime[/INLINECODE]. | |
Re: Basic attempt with a beautifier: [code=C++]// Calculate the monthly payment user input. // Include header files #include <iostream> #include <iomanip> #include <math.h> using std::cout; using std::endl; using std::cin; using std::ios; //Namespaces using namespace std; //Declare and initialize variables double Amount; double Term; double Interest; double MnthPayment; double rPayments; double newAmount; … | |
Re: [url]http://clusty.com/search?query=Visual%20C%202005%20Express%20Tutorial[/url] : [url]http://cplus.about.com/od/learningc/qt/compilingc.htm[/url] [url]http://cplus.about.com/od/learning1/ss/clessonone.htm[/url] | |
Re: [QUOTE=cscgal;337548]Just out of curiosity ... what is YOUR singlemost favorite DaniWeb feature?[/QUOTE]Actually, when you get right down to it, it is the fact the you are involved on a day-to-day basis implementing suggestions, handling issues, seeking creative solutions, etc. I win some, I lose some; you do things I enjoy, … | |
Re: [QUOTE=bumsfeld;424755]I was once in Indiana and wondered why the people in the market place carried submachine guns and drove armored personnel carriers![/QUOTE]I thought that was Detroit? | |
Re: [QUOTE=MidiMagic;417356]All of the code is done in Notepad.[/QUOTE]Didja ever consider getting a code editor to edit code? Perhaps maybe a beautifier too? | |
Re: A rumor I heard from a guy from NYC... East-coasters may refer to 'gravy' as a marinara-type sauce what has no meat. I still call that 'sauce', as in "spaghetti sauce". What gives? |
The End.