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

Please note that clicking on an arrow does NOT give reputation. Reputation and comments are only submitted if you click the form button or hit Enter.

Not true. I've been clicking the arrows and rep has been given. If this is a bug, please don't fix it!

Also, look at what happens when one person gives rep to the same post two or more times. It's a little screwy.

Dani commented: Giving you negative rep ... test +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

The publicity team for Technozion is in full swing. Like every year, this time too, the team is planning to visit N different colleges in India. This publicity campaign shall involve the members of the team giving presentations...

How about presentations on

"The Benefits of Using 25-year-old technology (TurboC) and Handcuffing the Students to (equivalently) Bronze Age Technology".

"How the Word 'Question' Becomes Twisted into the Word 'Doubt'"

"How to Make Yourself Understood When They Call Your American Tech Help Desk"

But I kid... ;o)

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

Adding this feature alone has increased our "social activity" from an average of 250 likes/tweets per day to forum discussion threads up to an average of over 400 per day.

WOW!!! Significant! And surprising, at least to me. With many of the posts I see, I'd be embarrassed to socialize them. Are these likes/tweets across the forums or mostly in a certain cross-section of the forums? What percentage of the new threads are socialized from the message in question? What percentage from other directions?

For example, we just fairly recently integrated a Login with Facebook feature, and we're now seeing an average of 500-600 new members registering through Facebook daily! What this means is that we first created the Login with Facebook feature late July/early August, and we already have seen over 20,000 new members joining our community thanks to the feature.

This one actually, if I thought about it, makes sense. That never bothered me, though.

While I can appreciate that you guys might find it a bit irritating, I also need to take into consideration that most regulars very rarely start new threads, and therefore this is not a feature that needs to appeal to regulars as much as the newbies who will really take advantage of this feature.

Absolutely true...

For example, you, WaltP, have been a member for over 6 years and have only ever started 87 threads.

And mostly in Feedback and Mod I bet...

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

Nope. Never cared to progam anything like that.

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

Now I see what's happening. It happens when you start a thread!

For every lame-assed question we post to get help, we're being asked to broadcast our stupidity on Twitter and Facebook. Why the 7734 would we want to do that????

I agree. Get rid of it -- it's annoying and useless.

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

If there was a "BEST", there's be only one. We wouldn't need the rest because they'd all be crap.

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

Do read the forum description to ensure it is is relevant for your posting.

Members who break a rule will usually be warned, followed by a points-based infraction for subsequent offenses. When a member is given an infraction, they accrue points which remain on their record for a time period. 10 or more infraction points will result in an auto-ban from DaniWeb effective until the number of active points falls below 10.

Do you really want to start getting infractions? I suggest you reread all the member rules again.

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

what google can ?

Damn, you're useless.

Can anyone please explain...

I_m_rude commented: Damn rude and insultive. be away! +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I never said that using double will solve the problem.

Yes you did.

You said "yes, you'll get same value if you use double." That implies that the problem was solved, which is wrong.

If you didn't mean that, you should have expounded on your information.

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

yes, you'll get same value if you use double.

I really wish people would learn the details before regurgitating bad information all over these forums.

No, double will not correct the problem. Float and double both have the same inexactness problem, just at different levels. It cannot be solved. It simply has to be understood and dealt with.

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

iam not a highly efficient programmer .iam still in learning the beasics.

So learn the basics!!!! Stop trying to understand how to build an airplane when you barely understand how to ride a bike. You clearly don't understand pointers well yet. Why the hell are you trying to deal with double and triple pointers???

And compilers don't stop working! Your CODE stops working!

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

Are you kidding me??!!??

Forst of all, we don't write programs for people, we help them write their own.

And the code:

#define ODD(X) (X%2)        // Why? This is just confusing when used

main(nargs, args)           // I haven't seen this MAIN signature since
int nargs;                  //    1985! AFAIK, this has been deprecated 
char **args;                //    for over 30 years
 {

    int *num = (int*)malloc(sizeof(int));   // Malloc one int? You're nuts!
    *num = 0;

    printf("enter number: ");
    if(!(scanf("%i", num) != -1) || (*num/10000 < 1 || *num/10000 > 10)) return 0xDEADBEEF;
                            // Unreadable worthless combination of multiple statements

    int values[MAX_SIZE];

    int*odd=(int*)malloc(sizeof(int)),*even=(int*)malloc(sizeof(int)),*zeroes=(int*)malloc(sizeof(int)),*remains=(int*)malloc(sizeof(int));
                            // Another unreadable mess, again mallocing single integers

That's enough...
Ian, don't bother with this code, there's nothing to learn from it. You can write your code far simpler than this.

Profyou gave helpful hints you can actually use.

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

1st: Store the password in a file. Read it in for the compare.
2nd: For more security, encrypt the password somehow. Decrypt it before comparing.

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

......????

......!!!!

Reread deceptikon's first sentence in the previous post. Answer that question.

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

So far you've only given vague information. You need to be specific in what you need help with and post code that shows what you are having trouble with. The more detailed the information, the more good help you will receive.

So far, our best response to

I am a bit weak in functions writing. can anyone help me please?

is "yes". Nothing more,

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

What value do you expect

sizeof(char*)

to be?

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

And what do you need help with, other than learning how to format your code so we can understand it.

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

Read my post.

Tygawr commented: spam +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Before printing use an IF statement: if (lastCharEntered != 'p') print

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

Think about it... What kind of character array(s) are needed to do this?
Try something... See if you figured it out.

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

You got neg rep from me because you are telling a student uncomfortable with
1) programming -- he's NEW!!
2) English -- he's from Malaysia
to create a GUI app. He just want's to know how to ask a question again when an improper answer was entered, not to take over the screen and bounce all around it!
Sheesh! :icon_rolleyes:

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

But i am new bie in c++.

Based on the above statement you made, the easiest is the file. All others are much more complex and not appropriate for the "new bie"

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

Just make the password a character array.

jember commented: you didn't even explain the whole thing. -1
zeroliken commented: to negate the downvote +8
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

ID = 1;

After reading a person
ID++;

All you have to do is think about it...

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

Create a loop.
If they enter an invalid value, stay in the loop.
If they enter a valid value, exit the loop.

deceptikon commented: Not what the OP asked for. -1
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Start the number at 1.
Every time you input a patient, add 1 to it.

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

Thoughts? =)

Either.
Which seems easier? More straight-forward?

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

Yes

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

What's a nod?
What's an edge?
What's a weight?
What the **** are you asking?

Treat us as if we aren't in your class and didn't hear the instructions...

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

I don't see any personal info. There seems to be nothing to delete.

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

Wrong.

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

That completely depends on what is proper and improper results.

Asking us to read 359 lines of inconsistently formatted unexplained code to figure out
*) what the program does
*) what the program outputs
*) figure out with no clues what the proper output should be
*) where the problem is
*) how to fix it
is a little above and beyond the call of volunteers.

After 53 posts, you should know better than this.

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

So what's the problem on that line? We can't read your mind.

I see no problem at all. If that line is executed once, Grade1 contain -28. If that's what you see, that's what you should expect.

Just to point out, when the you define your 'grades', the initial values are:
Grade1 = -29
Grade2 = -9
Grade3 = -29
Grade4 = -30
This info may be of interest.

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

Sure we can help. But with no effort shown on your part so far, all we can do it write it for you. If you need help you will have to give us something to help with.

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

So basically I'm a little bit confused. I believe the logic of my program is correct; file pointer is declared, and I do have a character to store my array, it reads the file, and counts all the words pending a space in front/between/etc. Basically the program should ask the used the used to input the name of the file they're scanning. The file opens and goes through the program and outputs a line that tells the user the # of words in the file that was inputted.

My problem has been compiling it.

How can it possibly do all that stuff you claim it does if the program doesn't even compile? The mind boggles! :icon_rolleyes:


Your code:

#include <stdio.h>
#include <string.h>

int main()
{
    int count = 0;
    char *doc;              // Where is the actual storage?  A pointer 
                            //   does not hold data, it holds a pointer
    FILE *inp;
    
    printf("Enter the file name: ");
    scanf("%s", doc);       // See the scanf() link below
    
    inp=fopen(doc, "r");    // Why are you opening the file with a char*? 
                            //   Aren't you supposed to use a FILE pointer?
    
    while((doc = fgetc(doc)) != EOF)    // You get a character and
                                        // 1) destroy your file pointer
                                        // 2) destroy your character pointer.
    {
        if (doc == ' ')     // doc is a pointer.  It can't be == to a character.
            count++;
    }

    fclose(doc);
    
    printf("%s contains %d words\n",doc,count);
    
    return 0;
}

scanf()

MrNo commented: Ever consider that someone has been learning this on the side for less than a week or two? -1
Eagletalon commented: Attempts to help people develop their skills themselves, accurate comments and assistance +3
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Sounds like you need to learn some coding techniques. "just throwing codes together" rarely results in a working program. And "I believe I have the function that inputs the trapezoidal rule correctly" is also a recipe for disaster. If you don't...

Questions:
1) Can you solve the equations by hand?
   a) If not, you need to figure this out. You can't program what you don't know.
   b) If so, write down the steps (in words) you take to solve it. 
      This is partially where your [I]code[/I] comes from.
2) Can you test your function with known values that have a known answer?
   a) If not, you will never be sure if it's right or not.
   b) If so, good. Do it.  
      Test as many possibilities as you can. They [B]all[/B] must work
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Is there a best anything? Aren't there different bests based on use? And if you don't like my best, then what? You don't really want the best? Or is someone else's best better?

IOW, never ask for best. It depends on what you are doing and how.

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

So sorry the site has been down for a few hours this early morning. It happened when it was time to switch the clocks back (the servers didn't like that) ...

After 50 years you'd think someone would have figured out the DST switch by now! :icon_rolleyes:

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

That was not the response I was expecting, but thanks all the same. I already have the code to create the process.

So it was just a test to see if someone gave you the answer you already knew? That's not even fair... :icon_wink:

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

Yes I have an old fashioned phone, and I have tried the *69 thing but doesn't work, that may be because I live in South Africa, any other solutions?

Hmmm let's see. South Africa. Phone. Ummmmm. Can't think of a thi... No Wait!!!! Call your phone company! Noooo, you'd have to be pretty stupid to not think of that. So obviously the phone company doesn't know. And if the phone company doesn't know it's not likely we would know since few of us live in Africa. Maybe the utilities commission, or the government knows. Sorry to hear about your phone company, though. I'd get another company that knows their system better. You might want to move to Spain.

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

So where are you now? Remember, we can't see your screen. And we can't read your mind...

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

Lots of great pics here can be turned into wallpapers.

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

Ok, It's my turn of trying a different way of solving the problem:
. . .
SO how do you like my code?.

It's bad...
1) Two years too late
2) No formatting making the code hard to follow
3) Using fflush(stdin); -- not defined for input streams
4) Using sequential IFs instead of SWITCH.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Sub btnModify_Click()
    delete *.*
End Sub
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

That's like asking what are the advantages of Apples over Video Games. They are two different things.

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

Try explaining what is wrong -- in detail.

You said to insert a counter when I enter a variable. I did that and it doesn't work. All I need to do is detect how many operators the user imputed.

And that's explaining the problem in detail? I think the first thing you need to understand is what detail means.

Your code will not enter the inner for() loop because you have c = 0 right before it and your condition is when c > 0 .

So how would you write it?

You're kidding, aren't you?

Sit down with your instructor and tell him you are having problems understanding why the code STFU referenced is wrong. He's the one you need to take these little problems to. We are a help forum, not a teaching forum and you need to be taught some very very basic concepts. Your instructor is the best one to do that.

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

Best is the one you like best.

Anuradha Mandal commented: Not a good advise. +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

No thank you. I'm done with school. Now if you need help, ask a valid question.

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

I've only read the first few pages of this thread. Outside of the Bible-bashing and God-bashing statements that make worthless claims rather than debatable points, there are some good points, and flat out wrong information.

Disclaimer: Many of my points have not been fully researched by me as I am not a biblical scholar, but I have seen some research that I am relying on. Most, if not all, can be found on the web.

First, to your post (FYI - using LIST tags makes responding difficult...)

First of all, I am a confused christian, and I am creating this thread to see if I can clear out some fog in my head. So lets start.

Claim: The bible is false in the sense that it was not written with the guidance of "god"

The way I say it:
"Did God create Man? Or did Man create God". IOW, If there is a God, enough said.
But if there isn't, Man needs something to believe in, other than we were just an accident of nature. So God was created to answer the unanswerable.

Reasons for my claim :

Originally there was a lot of contradiction in the bible because it was written by humans

  • These contradictions were refractor-ed by a humans, specifically some committee of who's name I can't recall
  • No claims, if it wasn't for all of these refractor, more and more people will be aware of such contradiction and hence people will start …
frogboy77 commented: IOW is that short for Iowa? +0
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Start xLow at 50
start count at 0
while xLow not 90
  add 1 to count
  increment xLow

Is this really that hard?