5,237 Posted Topics

Member Avatar for Squeeker
Member Avatar for glendavis
Member Avatar for Little Princess
Member Avatar for oi2005
0
107
Member Avatar for shotjase

Why does invert() also display the result? Shouldn't you just call display() when you're done? Each function does ONE job properly.

Member Avatar for Salem
0
95
Member Avatar for server_crash

16th Oct 2005 was the last post before moorthi showed up. I'm sure the OP found the answer in the meantime.

Member Avatar for Salem
0
249
Member Avatar for jimJohnson

Start chatting to some of the recent graduates. Start with indirect questions which might infer how much they earn, like what car they drive. Then perhaps ask them what they think of the salaries offered by the company.

Member Avatar for Salem
0
107
Member Avatar for nyt1972

Parsing the file, and producing two lists of files, a 'keep' list and a 'delete' list. Sorting them might be advantageous as well.

Member Avatar for nyt1972
0
111
Member Avatar for BabyEyes

OK, show us what you can do with the first step, namely showing a single letter on screen.

Member Avatar for BabyEyes
0
103
Member Avatar for anbuninja
Member Avatar for karthikvela

Well perl already comes with a module which uses the expat parser, and I find it to be dead easy to work with.

Member Avatar for eggi
0
110
Member Avatar for daviddoria

The standard doesn't rule out the possibility that integers can have traps like NaN's, it's just that your implementation doesn't have them.

Member Avatar for Salem
0
183
Member Avatar for En1ro

Perhaps because your functions are empty, so they do nothing. Or perhaps because [ICODE]pgyd.vardas[25]=Edit21->Text;[/ICODE] is an array overflow and everything has been trashed so it no longer works. I sense some confusion between a char array and a std::string in your declarations. If you're only looking for ONE string, then …

Member Avatar for En1ro
0
180
Member Avatar for manuswami

Yes, trivial, what have you tried for yourself ? Read this - [url]http://www.daniweb.com/forums/announcement113-2.html[/url]

Member Avatar for Salem
0
68
Member Avatar for CodeBoy101

> It works because each character contains a value It works because you assume the the character set is contiguous, and is basically US-ASCII Read about [url]http://en.wikipedia.org/wiki/EBCDIC[/url] Then read about locales. Using toupper() etc will hide the locale and encoding details from you. > char *str = new char[strlen(text)]; You …

Member Avatar for Radical Edward
0
112
Member Avatar for welles

> for (int i=0; i<=no_of_blds-1; i++) > bld_info[i]=new double[max_corner_no*2+3]; //*2 because we need x and y coordinates, rest 3 for number This is unnecessary (in fact, I think it should at least have raised some warnings). Assuming the maths is correct in the previous line, you already have a 2D …

Member Avatar for welles
0
100
Member Avatar for blah70

If you've already done "some" of it, how about actually posting your assignment, the "something" you've done, and an actual question about the issue you're stuck on? > I'm asking for help.. Help is what we could have done, had you arrived when you got the assignment. What you're really …

Member Avatar for ithelp
0
95
Member Avatar for mussa187

Begin by writing some list functions, and not inlining all the code in main. Say these prototypes [ICODE]str_pair *listInit ( void ); str_pair *listAppend( str_pair *list, str_pair item );[/ICODE] The first one initialises the list (easy). The second one makes a copy of item (read up on 'new'), appends the …

Member Avatar for mussa187
0
130
Member Avatar for Punkis448

[url]http://www.daniweb.com/forums/announcement125-2.html[/url] You've posted your assignment, but nothing of what you've achieved so far. Even if you think you're completely stuck, look back at previous assignments and course notes. At the very least, begin with something to use the provided functions to read an int, then just print it out again.

Member Avatar for Punkis448
0
124
Member Avatar for khyaniv24

Great, perhaps next time you could read the forum rules of posting formatted code before dumping such a huge mess on a message board.

Member Avatar for Salem
-1
78
Member Avatar for Rubie
Member Avatar for somename

Well your first C code was good. Inside the while loop, do something like [code] if ( strncmp( s, "help", 4 ) == 0 ) { // do the help command. } [/code]

Member Avatar for somename
0
95
Member Avatar for Maabou

Some snippets [code] double myInchesArray[5]; scanf("%lf", &myInchesArray[2] ); // now read about loops [/code] Declare a function [ICODE]void foo ( double inches[] ); [/ICODE] Call a function [ICODE]foo ( myInchesArray);[/ICODE] Define a function [code] void foo ( double inches[] ) { } [/code]

Member Avatar for midimatt
0
166
Member Avatar for daniel88

If you're at the end of file, then infile >> ch will return end of file, and ch will remain unchanged. So you get whatever char you last successfully read repeated for all the times input fails. Like this IIRC [code] if ( infile >> ch ) { } else …

Member Avatar for daniel88
0
104
Member Avatar for perfectstranger

Declare a couple of data structures for say - the alphabet - the state Then read the file into instances of alphabet(s) and state(s). That would be (as you put it) a start.

Member Avatar for perfectstranger
0
84
Member Avatar for fredmac
Member Avatar for El Duke

Push/pop HTML entities, not characters (perhaps) You're matching <BODY></BODY>, not <BODY></YDOB>

Member Avatar for El Duke
0
541
Member Avatar for arunkp

Which compiler are you using on XP? Because it seems you're using some ancient fossil DOS compiler. The "DOS Compatibility" will only take you so far, so it seems you've run out of luck.

Member Avatar for jephthah
0
214
Member Avatar for bodom_lx

Does your algorithm work? I would say given the nature of the question and the material you've covered so far that a simple brute-force approach is perhaps what is wanted.

Member Avatar for Salem
0
108
Member Avatar for Salem

[url]http://www.daniweb.com/forums/memberlist.php[/url] Can the solved threads column be made sortable, like all the other columns of information?

Member Avatar for jasimp
0
99
Member Avatar for rob_xx17
Member Avatar for pichels
Member Avatar for eggi
0
187
Member Avatar for chrisfrolich

I read the title, and thought it was someone looking for help with fishing, but instead found someone fishing for help ;)

Member Avatar for Radical Edward
0
85
Member Avatar for bhaSD

Also spammed here - [url]http://www.daniweb.com/forums/thread122051.html[/url] and here - [url]http://cboard.cprogramming.com/showthread.php?t=102580[/url] and probably a bunch of other places as well. In other words, already failed lesson 1 [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url]

Member Avatar for Ancient Dragon
0
486
Member Avatar for asad awan

A phrase oft repeated AD :) [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url]

Member Avatar for Salem
0
145
Member Avatar for jimJohnson

Does anybody ever bother to review their posts before pressing submit??? Code tags!!!!!

Member Avatar for jimJohnson
0
234
Member Avatar for e_pech

So use a std::string to evaluate the string concatenation, then return what that produces. You'll also need the run-time equivalent of _T as well.

Member Avatar for e_pech
0
167
Member Avatar for DigitalPackrat

I usually slap them with [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] if they break too many rules in the same post.

Member Avatar for DigitalPackrat
0
133
Member Avatar for programmer321
Member Avatar for jmines

Perhaps if you used a while loop, instead of a goto, you could get out of that loop in a sensible manner rather than calling exit(). Which by the way will skip your attempt to PAUSE the display.

Member Avatar for jmines
0
120
Member Avatar for xtheendx

Three key lines [ICODE] int numStudents = 0;[/ICODE] [ICODE]vector<int> student_score(numStudents);[/ICODE] [ICODE]cin >> numStudents;[/ICODE] Now, how long is student_score really? You get how many there is at the time you ask. It doesn't create a reference which tracks all future changes to numStudents. Rearrange the order of statements so objects which …

Member Avatar for Salem
0
71
Member Avatar for wsn

> fgets(user_input,sizeof(input),stdin); What is input in this context? It's more usual to write [ICODE]fgets(user_input,sizeof(user_input),stdin);[/ICODE]

Member Avatar for Salem
0
107
Member Avatar for The Dude
Member Avatar for jwenting
0
278
Member Avatar for varshini

Which kind of filing did you have in mind? [url]http://en.wikipedia.org/wiki/Filing[/url] Also, "help" is not a topic title. [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]

Member Avatar for Salem
0
67
Member Avatar for apocrypha
Member Avatar for bhoot_jb

[url]http://www.compilers.net/[/url] [url]http://www.thefreecountry.com/compilers/cpp.shtml[/url] > Also which one is the best compiler? A topic of endless debate :)

Member Avatar for bhoot_jb
0
143
Member Avatar for replyfast
Member Avatar for Agni
0
79
Member Avatar for nilesh03

I'm sure it is, but that doesn't mean we'll be any faster. On the contrary, we tend to ignore such pleading. [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] First couple of problems 1. Your indentation needs a lot of work. 2. if(original_position=56) Use == for comparison, = is for assignment. 3. char pawns[]={0}; If you want …

Member Avatar for Salem
0
249
Member Avatar for venumadhavkk

And what is your QUESTION? You've listed the tradeoff - memory vs. convenience, so now you can make a choice.

Member Avatar for Narue
0
203
Member Avatar for venumadhavkk

Yes, someone else asked this less than a month ago. Perhaps you both go to the same college and get the same pointless assignments from the same tutor.

Member Avatar for Salem
0
29
Member Avatar for begueradj

The End.