WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

You are in unknown territory. Since you "found out a bit", you are now the expert and know more than the rest of us. It seems that no one has tried this before, therefore cannot help any further.

Closest thing I can think of is debug the code and find out what values a working cont has, then try to make your new font mimic it. Or copy your new font over one that works and see what happens. Save the original, of course.

sergent commented: -1 -1
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

No. What happened when you checked it using paper? When did you write down the *? Inside which loop?

Also, at your level of programming, you need to use more { and }. Put them everywhere -- around all loops, all ifs etc. Even the loops in the code you posted. You can then see for sure what's happening.

tomato.pgn commented: Stop spammong same message -1
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

> Information was asked for, and it was not provided

May I respectfully disagree. If you ever participated in those stupid contests, you'd immediately realize what the OP is asking for. That said, OP doesn't seem to do it either.

Wrong. When asked for clarification, he regurgitated the requirements originally posted. Since I quoted them, I already knew them, and stated I did not understand them. To repost them was a complete waste of time and utterly worthless. They are now posted in the thread at least 4 times. By your disagreement you are stating "the more times you post the same information the clearer the information becomes. Good luck with that.

in the first input, user will enter a number suppose t
corresponding to that number i.e., t , a set of t different numbers are taken.
if the numbers are greater than 0 then they are added.
in the example posted:-
first input is 4
corresponding to 4, a set of 4 other numbers are taken i.e,( 5 , -5 , 6 , -1 )
since in the set only 5 and 6 are greater than 0, so they are added up.
and nothing to do with -5 and -1.
so finally output is 5+6=11
and the output displayed is 11.

Finally!!!! It's only taken 22 posts and 3 days!

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

You've been asked a couple other questions.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

yes a=0 is required in that for loop, since the loop has to be executed only once.

I need help in reducing the code to 65 bytes, or if there is any other code.
Please help me.

Please stop begging. Posting to ask for help does not need a "help me" on every post. IMAO, it doesn't even need to be said at all. This is a help forum.

Since the loop must be executed only once, by definition it is not a loop and therefore can be removed, saving many more characters.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Base on the code you posted, you are easily smart enough to rewrite it to use the hint.

Unless you didn't write that code. Did you?

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Some people post here looking for help. Others post to have their problems done for them.

We've given you help. 4 different suggestions and code.
You complained. You want us to write the code for you. Sorry. That's not how this public forum works.

If you want to post more information to help us understand what you don't understand, please do. But right now, I guess we don't really know what you need.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

That is where I am lost,

Your code isn't that large, you can't be that lost

if I enter months[highest] or highest[months] I get an error,

An error. Like it crashes the computer? Like it burns the roast? Like it nukes the city? Never never say "an error". We are not psychic and hate to guess.

I suppose I am not really sure how to output the month names.....

The same way you output anything, with cout << ...

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Is there a better definition of problems? Can you explain what problems mean now? If you changed code, maybe if we know what the code looks like now it would be helpful, especially since we don't know what was tweaked nor how.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

1) In English, there is always a SPACE after punctuation!!!!!!
2) Dividing ints give you ints. 3/4=0 not 0.75. 8/6=1 not 1.5

During the division make sure one of the values is cast to float (float) 8 / 6 Also, nmb? Please reread the Member Rules -- Keep it Clear, first and last points.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Start looking into vector ok?
its more flexible and a template. This mean you can extend your code to other data types.

You're kidding, right? What is the Total, Average, and Mean of a list of names? :icon_rolleyes:

richieking commented: Student are can read and try other stuffs before they are thought. This is called education. +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

i apologize ive only been working with c++ for a couple months...

Really? You aren't a seasoned professional? :icon_twisted:
Naturally we can tell. It's obvious...

do you at least understand what im trying to do?

Of course. You want to sort strings. Nothing complicated about understanding. Doing is a little more complicated though.

how exactly should the count work then or is there a better way to do this that im just not seeing?

You don't want to count anything. You want to find two strings that need to be switched and switch them.

What sort are you trying to implement? Do you know how a sort works? I think you need to read up on the concept so you know the basic ideas you need to implement.

And heed what gerard4143 said. He's correct.

beejay321 commented: no need to be rude, im a begginer and he cant appreciate that +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

unfourtantly i dont have a clue what this is and i doubt i could even use it as we havent been taught it yet in my CMPT103 class, ill see if i can figure it out and run it by my instructor before its due and see if i can get away with it, id just like to know why the windows freezing

Ov course you don't, but many people here feel that vectors are the only solution to using arrays. They love suggesting things obviously beyond your level.

Problem 1 is your formatting. Please format your code so we can read it easier. We can't tell your program structure the way you have it. This is something that for some reason instructors seem to think is unnecessary. It isn't.

Based on what I can see, your value count does nothing useful, and definitely not what you think it's doing. Rethink your sort -- it is not a sort, it's just a string mover.

Go through your code by hand and you'll see what I mean.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Try changing your output from cout << w1 << " " << setw(8); to cout << setw(8) << w1 << " ";

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Better use short or short int for age variable since this has the least range other data type.

Shorter than char? I don't think so...

Use cin to read the age variable.

You realize this is the C forum, right? That code can't possibly help.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

The length of the search string points at the '='. Use that as a guide.

iamthwee commented: Repetive advice kiddo, read before you post. Oh and just have faith. . . believe me :) -2
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

floatval= (int) floatval;

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Im have trouble complete on what i have. Looking for some idea's I'm getting a exit error and don't know what to do? Please Help

With what? Do you have a problem? Did you tell us what that problem is? If you did, I missed it somewhere in the explanation.

Please use [code] tags.....

Why? If you don't format anything, it looks the same with or without CODE tags. Unreadable. So always format your code

Also, here we don't post answers to questions. We help them find their own answers. They learn more.

Salem commented: Yes! +20
VernonDozier commented: Not sure what the down votes were about. This post seems good to me. +11
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

So mentioning that it's not the compiler's fault when it is clearly the programmer's lack of knowledge is not constructive? Sorry. My mistake.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Yess suh, masta. I'z chilled.

You obviously know better than the rest of us. Sorry.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

My point is

...
And you need to tell us what help you need, otherwise you'll just get more code written by more people.

And we're not going to write your code.

And let me guess, you wrote AMICABLE and HAMONIC...

jephthah commented: for such a passive-aggressive snark, you need to step off my nuts. -1
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

And it's not dependent on the operating system. It depends on the compiler.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I would like for the program to be able to "delete" any character and all of its information from the text file. I believe this involves reading and copying the text file until it reaches the characters name than skipping that line and the next four informational lines before it continues its reading and copying. I am just not sure how I would skip the lines.

Simply don't write the lines to the new file. That's it.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Please learn for FORMAT your code. It is very difficult to read, and if we can't read it, most of us will skip your posts.

Wouldn't it be better to print the average after it's calculated rather than just before?

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Once you enter a function the size of the array is lost since the array address is passed, not the entire array.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

The pertinent and useful posts in this thread have been moved here. Maybe aianne can now start getting help without being railroaded into useless arguments. Keep it on topic. Go back to the other thread for arguing.

[edit]
Post ONLY help for aianne here. Continue the argument in the other thread. Posted here, they will be deleted.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

For the 3rd f'ing time, WHAT DID IT GIVE YOU????

And look up the fopen() function for the proper use of the 2nd parameter.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

No, peep, we don't. That's why it's encoded. So you can't decode it. :icon_rolleyes:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

i did bother to look at the original code. the first thing i noticed was:

/*Header file declarations. You may not include any additional header files*/

/* Global variable Declarations. You may not include any additional global variables */

/* You may not modify the table[] global variable */ 

/* You may not modify the PrintMsg function */

/* You may not modify the calcError function */

I don't know what to do here, because there's not much code left that we're allowed to modify.

You are kidding right? Looking beyond the 'defined' code and I also see

void printPlainText() { 
	/* declare variables here */
	/* Place functional code here */
}/* function printPlainText */

void Count() {
	/* declare variables here */
	/* Place functional code here */
}/* function Count */

int main(int argc, char *argv[]) {
	/* declare variables here */
	/* perform initialization here */
	/* Place functional code here */
}/* function main */

which is most of the program. Use the data values defined to write the rest of the program :icon_rolleyes:

jephthah commented: c'mon man, open your eyes: the OP is b.s.'ing us, he's trying to get us to do his homework for him. -1
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I just did. Read the post.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

No, since you didn't bother to tell us anything. The code does exactly what you told it to do, so it's working.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I think Siggy was onto something. Is the experiment really succeeding?

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

When you read a file that's a directory, call the function again. And learn to use
CODE tags. There are at least 6 places on the site they are explained.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Ahhh, yes. Thanks for the correction, vmanes. I was thinking of another input style. Had a brain fart... :icon_redface:

iamthwee commented: Stick to 'c' mate. -3
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Look at each number and save the highest number entered.

Did you miss reading the Rules?

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Hey man, you don't have to make a trivial comment to EVERY thread

You mean like that one? :icon_twisted:

iamthwee commented: And this one Mr Disney? -2
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

how do i build a graphical user interface in visual c++

Since you never mentioned OS I'd go for OpenGL.

How many OS's does Visual C++ work under? Another DUH moment... :icon_wink:

iamthwee commented: Huh? I was asking what OS he wanted to write the GUI for. Oh dear. -2
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

The tides went out. And when the bad guys came the tide came back and washed them all away!!!

joshSCH commented: I bad reped Aia because she was wrong. The government does have its own money. This is for involving yourself in others' business. Try reading the thread next time ;) -2
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Make that Triple Concur.

Sounds like a drink. "1 triple concur on the rocks, please!"

iamthwee commented: Keep it on topic Mr Disney. -2
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Christina -- stop it!

No one is saying we should completely get rid of games. Just move them out of the Geek Lounge to a Game Lounge. That way us geeks can continue our geeky discussions because that's where we go for it! Telling us to not visit so you can play games is not productive, especially when a solution that works has been offered.

And here is where Dani gets her info on what we like and dislike, not from PMs. You think she wants a lot of whiney geeks PMing her? Not on your life!

As for "There are word games, yes, but there are also other intellectual discussions dealing with politics and religion", look at the facts:
Of the 25 posts on the first page, 13 are games. That's over 50%. And as far as I can tell, 3 discussions. Not very good odds. Used to be 3 games.

christina>you commented: what is wrong with u? don't go crazy! -1
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

i have this simple program im writing to help my dads business.

Yeah, right. Look, we don't mind helping people with their homework assignments. So you don't have to lie about it in a lame attempt to get homework help.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Graphics.h? Let me guess, must be from the old Tubo C compiler (16bit), good luck to find anyone that uses this old bird!

Out of curiousity, why bother mentioning this? It a useless post to the user for 1, and a slight against those of us that have the knowledge to help him. Wouldn't it be best to give encouraging information rather than just telling someone their tools suck? Which they don't, of course. Turbo C works fine... :-|

I'm just waiting for a better explanation of the problem.

bumsfeld commented: Nasty answer! +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Why are you hijacking a 3 year old thread? Can't you start a new thread with your new problem?

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

how to check the folder is exist or not?

Try creating the folder.
a) If you get an error, it exists or can't be created.
b) If not, it didn't exist but does now.