2,384 Posted Topics

Member Avatar for annagraphicart

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

Member Avatar for Dave Sinkula
0
105
Member Avatar for JohnHull

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

Member Avatar for Salem
0
117
Member Avatar for madhan

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"; } …

Member Avatar for Tom_Zeke
0
5K
Member Avatar for Dave Sinkula

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

Member Avatar for EnderX
0
331
Member Avatar for AllenN

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

Member Avatar for AllenN
0
209
Member Avatar for Lardmeister

Disgusting. Jettison the pervert ASAP. Make your comments about a particular state in private.

Member Avatar for ft3ssgeek
0
96
Member Avatar for Dave Sinkula

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

Member Avatar for EnderX
0
219
Member Avatar for eranga262154

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.

Member Avatar for eranga262154
0
323
Member Avatar for Duki

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

Member Avatar for Dave Sinkula
0
307
Member Avatar for Dave Sinkula

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

Member Avatar for Dave Sinkula
0
346
Member Avatar for Dave Sinkula

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

Member Avatar for RPDunn
0
358
Member Avatar for iamthwee

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

Member Avatar for Hamrick
0
383
Member Avatar for kennywu54

Post the code of your attempt, as well as a copy of a snippet of the text file and your expected output.

Member Avatar for Dave Sinkula
0
99
Member Avatar for Dave Sinkula

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.

Member Avatar for Chaky
0
88
Member Avatar for mmmmmmmmmmmm
Member Avatar for ehsen

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

Member Avatar for sd.lamba
0
114
Member Avatar for vijayan121

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.

Member Avatar for Bench
1
451
Member Avatar for Crouchinho

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

Member Avatar for Dave Sinkula
0
8K
Member Avatar for daniweb2013

[QUOTE=fzafarani;428055]good compiler such as turbo c v.3 in Microsoft windows?![/QUOTE]"Good compiler"? Doesn't Linux generally come with gcc?

Member Avatar for iamthwee
0
95
Member Avatar for >shadow<
Member Avatar for icetux

exit? It's a reserved word for a standard function, and you have not declared it otherwise. Work on your bracing.

Member Avatar for Salem
1
221
Member Avatar for Dave Sinkula

[url]http://en.wikipedia.org/wiki/Sanctuary_city[/url] Could there be anything possibly more intentionally stupid?

Member Avatar for ndeniche
0
79
Member Avatar for Dave Sinkula

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?

Member Avatar for Dave Sinkula
0
193
Member Avatar for Dave Sinkula

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

Member Avatar for Lardmeister
0
153
Member Avatar for venomlash

Since I know little about it, I'll point you [URL="http://www.parashift.com/c++-faq-lite/exceptions.html"]here[/URL].

Member Avatar for vijayan121
0
158
Member Avatar for Dave Sinkula

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]

Member Avatar for Lardmeister
0
114
Member Avatar for bops

Do you have a minimally complete snippet that I might try to play along with?

Member Avatar for Tight_Coder_Ex
0
261
Member Avatar for amishosh

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

Member Avatar for Ancient Dragon
0
245
Member Avatar for Crouchinho

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.

Member Avatar for Dave Sinkula
0
5K
Member Avatar for gaggu82
Member Avatar for Rashakil Fol
0
79
Member Avatar for Dave Sinkula

Can the size be adjusted in any way? It seems rather tiny to me on this end.

Member Avatar for Dani
0
70
Member Avatar for asilter

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

Member Avatar for asilter
0
164
Member Avatar for MidiMagic

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

Member Avatar for Dave Sinkula
0
830
Member Avatar for complete

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

Member Avatar for Dave Sinkula
0
80
Member Avatar for ajay.sontakke
Member Avatar for vijayan121
0
209
Member Avatar for Masood Ali

Have you corrupted outFile prior to this attempt? The supporting code may contain your answer.

Member Avatar for Salem
0
93
Member Avatar for MidiMagic
Member Avatar for Lost in Code...

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

Member Avatar for WaltP
0
197
Member Avatar for Dave Sinkula

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?

Member Avatar for Dave Sinkula
0
76
Member Avatar for Duki

I like to do problems that are new to me. I found a few lines of trigonometry did just dandy.

Member Avatar for Duki
0
225
Member Avatar for Ken JS

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

Member Avatar for Dave Sinkula
0
138
Member Avatar for Salem

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

Member Avatar for WaltP
0
311
Member Avatar for joydsouza90

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

Member Avatar for WaltP
0
9K
Member Avatar for ramavundela

Can you use the standard library for this exercise. If so, look into [INLINECODE]mktime[/INLINECODE] and [INLINECODE]localtime[/INLINECODE].

Member Avatar for WaltP
0
136
Member Avatar for icetux

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

Member Avatar for icetux
0
128
Member Avatar for goldbew

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

Member Avatar for Dave Sinkula
0
27
Member Avatar for Dani

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

Member Avatar for MidiMagic
0
321
Member Avatar for Ancient Dragon

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

Member Avatar for MidiMagic
0
66
Member Avatar for MidiMagic

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

Member Avatar for MidiMagic
0
344
Member Avatar for The Dude

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?

Member Avatar for Ancient Dragon
0
251

The End.