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

Name one.

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

But, as the universe expands, it uses energy. Space is constantly cooling, and one day when most stars have become black stars and lost their energy... the temperature of the universe will approach absolute zero. They have recently done tests to see what happens at such low temperatures, and have discovered that the atoms come apart.. that’s about as much of it as I can comprehend lol:rolleyes: ..still got years of science to go be4 I understand most of it..

Why but? So the universe expanding uses energy. What of it? Once it gets to a universally defined maximum size, it starts contracting again and warms up. It does this until it reaches a universally defined minimum size, the starts expanding again. It never has to reach the point of destruction.

Yea, the multiverse theory does state that there could be many other universes. But it is no more true than any of the other ideas of the universe. But, we have not found any evidence of more than one universe yet..

Did you just say that the multiverse theory is false?

Why everyone claims our founding fathers were Christian is beyond me, most of them were anti-christian.

Actually, most of them were extremely Christian. Although Ben Franklin was an atheist. But even so he still led the Continental Congress in prayer. He knew the benefit of Christianity.

Forgiving sins with murder was a belief in Judaism, in the Old Testament. You had to sacrifice a spotless lamb …

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

vixens

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

Testing testing 1-2-3 ...

Hey!! This is a computer forum -- use the proper testing technique!

Testing testing 001 010 011 100...

:mrgreen:

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

I wonder how much it would cost Dani get the customized smileys done...

Why should it cost? Aren't there members who can click pixels in a 19x19 grid?

You obviously didn't like mine. :cry:

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

Depends totally on the compiler and the operating system. There is no standard way to do it.

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

Is flip some technical term in computers I've never run across? You need to use words that actually describe the symptoms.

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

>Is there a way I can cin Mon, skip char, cin Day, skip char, cin Year ?
Too complex for cin , way easier with getline() . Just use it to grab the entire line, and then parse out the numbers in between the tokens (perhaps use strtok ?)

Not really.

It's not very robust, but

int mm,dd,yy;
  char x1,x2;

  cin >> mm >> x1 >> dd >> x2 >> yy;
  cout <<  mm << ' ' << dd << ' ' << yy << endl;

works... ;)

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

Please read this so we can read your code easier.

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

Here's another good place.

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

They don't have an extension. They are a specific location on the disk that when the computer is booting, if that sector has the correct format, the system uses it for the boot.

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

Ur right, If you had a server and maybe the data base which holds the items you wouldnt want the server holding the item before you got it I guess I will always just use i++

I just dont fer what the statments do? whats the diffrence?

/code for (int i = 0; i < numItems; ++i)
what does that do like? lol explain

Huh? Try using the PREVIEW button and proofreading your posts please. And please read this, too.


Try this program for illustration:

int main()
{
    int i = 5;

    cout << "        i = " << i << endl;
    cout << "prefix  i = " << ++i << endl;
    cout << "now     i = " << i << endl;
    cout << "postfix i = " << i++ << endl;
    cout << "now     i = " << i << endl;
    return 0;
}
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Jimmy, please read this about the language we speak here, please.

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

Over the past week or so, after hitting submit and being thanked for my submission (such a nice forum) I get redirected --not to my post -- but to the following page. This has happened on multiple occasions, usually on longish posts.

(gee, the spell checker liked longish? How weird)

The address redirected to is
http://www.daniweb.com/techtalkforums/post341863.html&post341863

It seems that the redirect code is loading & instead of # because
http://www.daniweb.com/techtalkforums/post341863.html#post341863
works.

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

It IS a joke.

But, I'm sure I'll burn in hell for it.

Why wait? I've got matches... :twisted:

Also a parting note, Current Big Bang Cosmology indicates that the Universe had a finite beginning, and if everyting continues on its current course, will continue expanding, thus cooling, and in more possible years than I can fathom burn out as matter will be too spread out to form starforming regions. It is however currently not predicted to go through a big crunch and start all over again... Thus it seems the universe began at a finite beginning from a transcendental event, and naturalistically unless something happens or intervenes, all current knowledge indicates a cold dead ending... no cyclic rebirths.

Yes, as I said: Everything that has a beginning, ultimately has an end. Infinity is not real.. History, science, mathematics all prove that nothing can ever be infinite.

I still don't buy this stuff. Just because humans can't really conceive of infinity and something with no ending or beginning, they have to come up with something bizarre to explain a beginning -- like "The Big Bang". I just can't fathom the concept that all the mass and energy of the existing universe started as a single infinitesimal point and exploded the universe into existence. It makes more sense to me that the universe has always existed, and is currently in it's expanding phase. Eventually it'll contract to a minimum size and start expanding again. Like one of those resperator masks in those …

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

The last movie I saw was also 300. It was by far the best movie I've ever seen or will ever see in my life!

Boy, you don't have much left to live for... entertainment wise. :twisted:

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

beveled

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

No moving ads.

They are extremely distracting.

Yeah. And flashing!

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

C and C++ know nothing about how the screen and keyboard actually work, so there's no provision in the languages themselves to accomplish what you want and have the program portable -- which is the one good reason for using C/C++.

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

Sorry if this belongs elsewhere, it's BASIC, so VB is the closest. (By the way, long time no post for me, I'm back, yay)

Okay. I'm writing a game (a SRPG) in QBASIC (wicked leet, huh?) so that my friends can edit it and crap (I know other languages, but they don't). However, I can't run any programs that use graphics. Here's what happens:

I click Run > Start (in a graphical app, downloaded from petesqbsite.com as a test)
It hangs, I can't click anything, nothing loads.

Even if I use a small app like:

SCREEN 12
PRINT "Hello, World!"

It hangs.

Solutions?

Try running it at a command line. That's usually how QB works.

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

Your the damist person if ever herde becouse al the basic prensiples is the sam so shat up

What the heck does that mean? And who is to "shat up"?

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

How about just running the code from the command line?

Most people have no idea what the command line is, unfortunately. And doesn't it defeat the purpose of using an IDE that allows editing, compiling and running the program to pop out of it after editing and compiling just to run the program?

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

That's okay, I got it. I had to use an if/else statement within the other if/else-if statements. :p

Actually, no you didn't if you did not change your IF statements. else if (choice == 'C' || 'c') is not a proper comparison. What this does is OR the 'C' and 'c' together giving 'c', then test if choice is == to 'c'.

To test an OR condition you need to test each case separately: else if ((choice == 'C') || (choice == 'c')) Also, else if (choice > 'C' || numberofHoursUsed >744) is not a good comparison either. What if someone types in '1' as a choice? It could happen. When you get to this else, you know the choice entered is not A, B, nor C. And since the input for numberofHoursUsed is only in the previous else conditions, you never have a valid numberofHoursUsed at this point. And where you actually do enter it, 800 is a valid value!

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

Because the government added tax to the calculation.... :p

Actually, because you never calculated overchargeTime. You mistyped the equation for that calculation.

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

Read a bunch of posts here and you can see what we can help with, and also what you should not post.

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

True but he should be able to get the point and fix it. Thanks though I didn't think of those things.

Another thing you didn't think about is if you do someone's homework for them, they learn nothing, but get a passing grade anyway. Please help them find the solution, don't give it to them.

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

Why are you asking for a seed value? And why are you not using it?

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

what is the use of such a site. your are not doing any help. thanks for your reply.

This site helps a lot, for people that post code and ask good questions. When people don't post what they've tried, we can't help them fix it. All we can do is write it for them, and that's against the rules.

Sorry.

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

drain

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

Conversations must have input from all parties.

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

My preferred ;) smily

Like

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

Definitely a full database system.

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

They don't necessarily contradict each other ...

Of course not. A possibility is that through natural selection, trees, animals, birds, fish, corn, etc. evolved. Then when the time was right (or He was bored) He created man.

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

So all turtles in streams flee in early daylight

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

Roach killer.

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

smacking

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

I really wonder who Sanya is....:eek:

He misspelled it. It's probably Sandy :p

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

Hello C/C++ experts,
I write the following code

int a[10];
int b[10];
// initiliaze all element of array a and b to 0.
a[11]=255;

Neither the program crashes nor the value of b[0] becomes 255
What could be the reason?

Because
1) in some (most?) compilers the variables are laid out in memory in reverse order. When I do this I always add a third array c and overwrite the middle array. (I've illustrated this behavior many times)
2) Variables are (generally) allocated on 4-byte boundaries. Therefore there's an extra 2 bytes at the end of each array that is 'no-mans-land', so writing to that will just loose the data. So I always write 4 or more bytes to be sure to reach the next array.
3) You did not blow the bounds of your data space, only your array. Things crash when you try to access outside your data space. I believe you can corrupt your own data all day without crashing.

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

enum { MAX_ITEMS_PER_LINE = 25 }; I don't understand why this is an enum. Please explain why it's not a const or something similar.

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

Yes astyle is good, but good IDE's always come with the same feature inbuilt. Take for example Code::Blocks and Eclipse. They both come with the feature of automatic indentation of code.

And good editors, too :mrgreen:

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

Did you stop reading my post after the questions? I followed it with the answers... :rolleyes:

Salem commented: I know what you mean! - Salem. +6
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

tisket

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

Band together, friends, and overthrow the establishment!

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

*shrugs* You have been warned... :D

And you have been brainwashed :p

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

TextBox3.value = val(TextBox1.text) +val(TextBox2.text)

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
#include <stdio.h>

int main()
{
    float y;

    for(y = .1; y != 1.0; y += .1)
        printf("%f\n", y);
    
     return(0);
}

Are you saying this code is OK then?.

Not quite. Because of the inaccuracy of float and double your comparison can't be == and !=.
Use for(y = .1; y < 1.0; y += .1) instead.

Nope, won't do. Try using double and float as your array indices while writing normal programs and you would know the reason. Comparision operators don't cut well with floating point numbes.

Will so. The inaccuracies of float and double is a standard part of using floating point values, and knowledge of programming. You must always take into account this inaccuracy and program accordingly.

The above works fine with the stated change. For more accuracy, though, a small fudge factor can be added to the comparison to prevent .9999999 from inaccurately being displayed: for(y = .1; y < 0.99; y += .1) Armed with this knowledge, floating point is not the demon it's made out to be.

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

If you would have to write your own implementation of the
function getchar() in C; how would you do it?.

I wouldn't. It a C primitive function and is written to access the keyboard input buffer, which is generally beyond the compiler's capability.

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

srting FirstName[10];

Do you mean to make
1) an array of 10 strings
2) a string to hold 10 characters?

If 1, you reference the length with stringname[index].length() If 2, you create the string with char stringname[10] then reference the length with strlen(stringname)

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

hell, before i had a for statement only with breaks, but my teacher didnt like it........dont worry bout the int main...im pretty sure it works right

Being "pretty sure" and actually working right may be 2 different things. Remove that while , it's a very bad practice, and add getchar() instead.

And I think your problem is in this section:

else
    {
        prime += 2;
        divisor +=2;
    }

Look carefully at what happens after this code is executed. Run through your code on paper to see what happens.

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

cask