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

Not really. By it's very nature the food in the US is only mediocre on the health level in the first place.

Overused land makes the nutrients and vitamins in vegetation low. By the time you get the veggies home from the market, most of the nutrition has leeched out simply because it's taken a couple days from harvest to shelf. And the industry insists on breeding 'better' veggies -- this means breeding them for shipping and aesthetic purposes rather than nutrition and flavor.

Feeding habits of animals (dried grain vs fresh for example) makes their meat lower in nutrition also. I guess the new saying is "you are what you feed what you eat"...

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

Look up the SWITCH/CASE statement. You are using it incorrectly.

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

Well, it's better than Help! or C++

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

-- tongue -- :icon_wink:

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

It was on line 119....

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

The post count # was removed because I don't want people referencing things like "Check out post number 5" because moderators see deleted posts, and posts can be split/merged, etc. so a post that is #5 today might not always be #5. Especially if individual posts in a thread get deleted.

But I thought deleted posts weren't really deleted. So if post #3 was deleted, wouldn't the post numbers show 1,2,4,5,6? Or would they be renumbered? IMO, they should not be.

I actually used the post numbers during mod duties as well as answering Q's. I'd like to see them back.

>> Which makes no sense... A permalink to a deleted post or a see post #5 equals the same thing... A reference to nowhere..

But if you had linked to #5 and I delete post #2, #5 now becomes #4, so you'd be referring to the wrong post. This is not a problem with permalink.

Now really, how often does this happen? And if the post was deleted, it couldn't be that hard to display an "Inactive Post" or "Deleted Post" message. And I still say, post #5 should always be post #5. It's not like people study post numbers to catch discrepancies. And if there is no post #2, it's fairly obvious that it's been deleted, isn't it?


But how does that help me find the post? I don't know how to find post 1221433. Maybe I'm dumb and there is something totally intuitive …

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

In other words, feel free to post your questions in the forums mentioned.

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

Dani, please make it so that quotes are hidden by default...

NOOOOOOOOOOOOOOO! Oh Please NO!

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

No, just read the file one line at a time.

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

#1) Use CODE Tags
#2) Format your code so we can follow it
#3) Are we supposed to guess what issues you are having?
#4) You don't need a switch statement, especially one like that

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

In your opinion, when creating a nested loop is it best to use the call function and if so is using a pointer the route to go when creating the function?

That's like asking when ordering a hamburger is it better to drive a Mustang?

The things in your question don't have a direct relationship.

jonsca commented: Sometimes that makes a difference. It depnds on how high-end the place is +4
jephthah commented: yeah, i lol'd +8
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Read this

And start using CODE Tags.

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

It would make much more sense to do this instead

ifstream Dict ("C:/Users/Brandon/Desktop/Programs C++/Dictionary.txt"); //file to read
  if (!Dict.is_open()) { return -1; /*error */ };

  ifstream file ("C:/Users/Brandon/Desktop/test.txt", ios::out | ios::app | ios::binary); //file to write
  if (!file.is_open()) { return -1;/ /*error */ };

Why open the test file if the Dict file didn't open?

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

Also i am missing the old feature that ... threads that had no replies would also have some kind of distinction.

You mean like 0 replies at the right side of the thread line?

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

That's what REP is for. Give rep to those that help you.

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

Format your code better and the problem will smack you in the face...

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

If you're going to load numlist with the list of primes, the loop

for (i=2; i<10000; i++) {
    numlist[i]=1;
  }

is unnecessary. Also, what values will numlist[0] and numlist[1] contain?


The for statement is wrong for (p*p<=n; n<10000; p++) The first field p*p<=n cannot be a comparison to be useful. And is the comparison field n<10000 a good stopping point?

Now, the question is, how do you tell if a number is prime? That's what goes in the for loop.

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

It is directed at whoever reads the post. It was my addition to what you said (note the And). I was supporting you and taking it one step further.

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

You did. tkud tkud'd up... :icon_mrgreen:

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

Rather than keeping the site viable, it's an all or nothing

It *has* got to be this way otherwise even a slight dissatisfaction with the new site design would make members *not* use the new site and the entire point of rolling out a new version would be moot. It is because there is no old version available that people are testing out the new design changes and pouring in suggestions. Logical, no?

No. What's logical is to have a new site that only a select few (admin, top mods) can access to shake the bugs out. After some time, open that site to a few more people (all mods, select top members). Then when things seem shaken out, open it for all with the old site still working, with an expiration date.

Then, for a month or so you can use either site. Finally, the old site is taken down. That's the logical way to do it. And that's what I see happen elsewhere when such a major upgrade is planned.

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

Sorry, there never was a "lock thread" that I new of at the beginning of a post description. I always clicked on NEW and got to the first post.

So, if it was always there, it was hidden (or not obvious), and the NEW icon changed look as well as function in this rollout.

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

#1) Do NOT Bump on these forums. It's rude. When someone that can help sees your post, they will answer.
#2) There is no sense in making threads if only one thread at a time can be created. That defeats the purpose of threads.
#3) A void function cannot return a value.

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

Im liking the new "first unread" button, it even looks good! :P

Not me. It makes no sense. Clicking the NEW icon is what makes sense. Adter all, it already turns the cursor into a hand so it's a link. It's just a link to nowhere.

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

Add cin.get() just before the return statement.

A simple search would have found this solution in seconds.

Ancient Dragon commented: Absolutely right. +28
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

If memory is not an issue and you're running on a fast machine there's no reason not to go with them for complex and large arrays. On a single dimensional array of 10 ints...There's no point choosing anything other than an array of int =)

And, if someone is having a problem of this magnitude with a lowly array, they certainly haven't learned vectors yet, so to use them would be a failure on their program.

Therefore, please refrain from recommending that which is clearly beyond their current level. Let the instructors teach, while we help, and at their level.

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

yeah they are same even same value

Prove it because I don't believe it.

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

I was wondering if anyone could help me

We certainly can help...

(if you wanna do it... that would be awesome, i got 3 other finals in 2 days as well. Save me some time :) )

Oops, you just lost my help here. If you had left out this blatant "I'll cheat if you'll let me" request, we could have it done... Sorry.

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

First lets establish the definition of the word respect:

Sure, as it pertains to the site:

Read the Site Rules
Email addresses must not be posted
Snippets of Code (sorry) are not help requests
Posts should not be just an assignment description
Excess code needs to be removed for brevity and understanding
Code Tags are necessary
Tell us what's wrong in detail, don't make us guess

I fully understand some users frustrations with lazy students who would like the community to do their homework assignments for them, however, even in this situation one can still be polite and helpful to that lazy user. All that is needed is a deep breath of patience and a simple reply of “ please do not post homework assignments for others to do for you :) thank you.”

Tried that once. I passed out from hyperventilation, since 3 out of 5 posts I saw were "gimme codz plz" requests. And we get hundreds of posts a day.

One other response may go like this, “you should just crawl into a hole and die you moron.” I fail to see how this is helpful.

I have been here for two years and never seen something like this. Sounds like hyperbole. If you do see posts like this, report them, again simple.

Then you haven't been active in some forums. There are a couple people that are a-hole enough to say this -- and they do it often.

jonsca commented: Dang WaltP you are just too mulitfaceted :) +0
BestJewSinceJC commented: Your breakdown of respect = genius! +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

@Everyone
This is normally how new changes are rolled out on Daniweb. The new features which need to be introduced are made live, feedback is collected from regulars, changes are made to the site, rinse and repeat. I'm pretty sure that with the help of suggestions given by the regulars along with Dani working on them, things would be the way everyone likes it in a couple of weeks.

And that's the problem. Rather than keeping the site viable, it's an all or nothing. It's the Microsoft version of beta testing -- roll it out and let the users test it.

A core of people here should have beat on it for a couple weeks before rolling out to the general population. Then 70% of the problems and irritations would be gone. Like missing features (post number, navigation, post indicators), positional faux pax's (Start New Thread at bottom), Auto-expands that cover required links, and font sizes and colors. These should not be tested by the general members.

The new changes are a bit irritating but saying things like "this new design sucks" etc. instead of giving suggestions and waiting patiently for them to be resolved isn't fair IMO.

Completely agree. But to be fair, most that say it sucks are explaining why.

Nick Evan commented: Testing? What's that? ;) +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

But it's for a thread, not a post. It belongs at the bottom of the thread, maybe avove the reply box for easy access.

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

You could, but a real programmer wouldn't use scanf() or fscanf() to read strings in the first place. Dave's suggestion is the second best choice. Best is to use fgets()

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

2. You will need to call CheckWin() after CheckMove() as user's move can win the game. Based on your current logic, computer will make a move even if the user's move wins the game which is not right. Furthermore, the computer's move might eliminate the user's winning move.

Unless, of course, you write the game properly. In this case it would be impossible for a user to win the game, which makes a call to CheckWin() useless. Any player that actually knows the game can never lose -- including the computer.

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

When you create a Function, set the return value to the function name to return it:

Function GetValue(aVal as Integer, bVal as Integer) as Integer
...
    GetValue = answer
End Function

Use: newValue = GetValue(a,b)

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

By SHOUTING at us. Please don't shout again.

Are the lengths of cm and st the same?
Output each char in each string as an integer and see if they look the same.

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

Another usability "enhancements" found:

I open multiple threads in TABs all the time. In order to get to the first unread post, we now have to click a link after opening the thread to get there. But, when I close a thread I'm done with using the TAB exit, the next TAB is displayed. In order to click the "First Unread" link, I must drag my mouse through the auto-expanding forum bar which then obscures the link. Now I have to move the mouse off target to get the menu off screen then reverse direction to get to the link.

This doesn't sound like much, but I'd like to see you spend some time (an hour) opening up multiple tabs, and clicking that link. When you've done it 30 times you get very annoyed. After 50+ -- guess what!

Some functionality is really cool. But when that coolness interferes with day-to-day operation, it's uncool.

Aia commented: Less is more, sometimes. +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Hey now we look just like all the other Forums. Now I have to learn to navigate all over again. Let me dig out my GPS,flashlight & c-rats in case I get lost.

If it's just like all the other forums, why do you have to learn to navigate all over again? It's just like all the other forums. :icon_confused:

:icon_wink:

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

Don't know. What it do wrong? If you want help you really need to explain. Read the Member Rules.

The thing I noticed is your srand() is in the wrong place. Put it at the beginning of the program so it's called only once.

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

I have written the following Code which will convert an integer number to a roman..I have a array list of integer number which I pass through a for loop and the return value is individual converted Roman character..
My Issue is when the converted value is returned from the function I want to capture it in another character array one after the other but am failed to do it..
plzzzz Help

If you're going to return a value you have to avtually return the value. All you did is load a local array with the Roman numerals and exit the function.

Pass the Roman array into the function and load it.

And do not post as a Code Snippet. Requests for help are not snippets.

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

I have made a change to the way that quote tags are handled.

If you use the Post Reply button next to a post and quote the post exactly, the quote bbcode will include both the username and postid that you're quoting. If you do this, the quote will be hidden until it's rolled over.

However, if you just use [[B]quote[/B]] or [[B]quote=cscgal[/B]] then the post will be visible.

So all we have to do is remove the postid from the QUOTE tag... A little clunky, but workable. Can we consider these two styles a test and after a little time remove one form once we've used them both?


Also, the left edge of the MMF box is too far left and the forums are cut off. Please align the edge of the button and the edge of the box.

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

Don't and I mean don't ever use

gets(myString);

Read Please
BUGS
Never use gets(). Because it is impossible to tell without knowing the
data in advance how many characters gets() will read, and because
gets() will continue to store characters past the end of the buffer, it
is extremely dangerous to use. It has been used to break computer
security. Use fgets() instead.

I will add to that "Never use scanf("%s",...) and scanf("%c",...) ". See this series for an explanation why.

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

Talk about a signature spammer!!!!

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

A couple more things:

The post number is missing. That was an important piece of information that takes up little real estate.

The multi-post reply button was very helpful. Please bring it back.

Convert the post icons to a square of icons (below). When more than one icon is appropriate (new, i posted, etc) simply displaying one is not helpful.


Please reconsider the click-for-quote decision. It makes quotes mostly useless with way too much work to view, since we have to click on almost every single quote to understand posts.

You keep trying to convince us space differences are an illusion. Being a magician, I understand illusion very well. If we think so, it is. Stop trying to tell us we're wrong. Consider instead whether the illusion can be corrected.

diafol commented: Agree too +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

It is running very well on my side......
go through your header files folder....some files may be missing

the program and logic both are very correct...!!

Wrong, they are NOT correct. Please see the OP's question:
"in Linux using g++ compiler ... getch and _getch is not working."
What part of this did you not understand?

Ershad, if you really want ANSI Standard as your title states, you can't. There is no way to input as you desire in Standard C.

tux4life commented: I too was thinking that there's no standard way to do it, I just didn't dare to post it :$ +8
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

>The usual method used to convert a decimal to binary number is to store the successive numbers in a stack...
Or in an array representing each bit.

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

Oh, that's what that line meant! Maybe make the RepChange line more of a heartbeat shape. Is this over your entire life at DW?

Ahhh, yes. It's each month. Got it....

Oh, and the "Post" and "Advanced Editor" buttons are too large.

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

I very much like the new static bottom-toolbar. I was just about to start complaining about the (again) disappearance of MFF Thanks!

Although I liked the MFF on the side bar, I think the bottom bar may work as well.

I'm sorry to be blunt, but the monochromatic color scheme, the hard contrast, the incredible overuse of whitespace.... it's horrible. While it may be an illusion that posts appear to have more white space around them now, when placed side by side with the old design, you can fit nearly two of the new posts into the same space as one of the old posts. There is a SIGNIFICANT amount of less scrolling on forum thread pages. This is mostly due to the user information being moved off to the side instead of in between posts. The main initiatve behind this was that I wanted the content to flow easier, instead of having to read a discussion "piecemeal" constantly having to jump over extraneous information when reading a long discussion.

Love the 'user info' in the side bar. Helps with scrolling as you say. But why do we need a huge title at the top of each post? Big title at the top of page, little title (just a reminder) between posts would be enough.

Now, the discussion flows much nicer, and all of the extra stuff is off to the side where it doesn't get in the way of the actual content.

Agree...

I personally …

iamthwee commented: Totally right about the quote situation. No mouseovers or clicks! +0
jephthah commented: thanks for demonstrating the rollover quote box "feature" +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Open the file in binary mode and use binary output functions, not fprintf()

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

Russia & China.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
int remain1[8];
  int remain2[8];
  int remain3[8];
  int remain4[8];
  int * remain[] = {remain1,remain2,remain3,remain4};

Why?

Why not a simple int remain[4][8]; ??