Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

So why did you post all that code?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Funny, all you athiests out there so willingly use the Gregorian calendar, which is based on Christian holidays (Easter, Christmas and the birth of Christ). If you don't believe in God then why use the Gregorian calendar? Why not the Chinese or some other calendar? Even the year 2013 means 2,013 years since the birth of Christ (which is just a guess).

The term Anno Domini is Medieval Latin, translated as In the year of the Lord,[1] and as in the year of Our Lord.[2][3]:782 It is sometimes specified more fully as Anno Domini Nostri Iesu (Jesu) Christi ("In the Year of Our Lord Jesus Christ").

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Before doing the above, you have to make sure your compiler has access to windows.h and associated libraries. If not, then you need to download and install the free Windows SDK.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

See the function SetConsoleCursorPosition() from this link

Here is a hint to get you started. First, define the values for the arrow keys, then call SetConsoleCursorPosition() inside a switch statement.

#include <windows.h>
#include <stdio.h>
#include <conio.h>
#define ESC 27

#define UPARROW 72
#define DOWNARROW 80
#define LEFTARROW 75
#define RIGHTARROW 77

int main()

{
    int key;
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    COORD cord = {0,0};

    while ((key = _getch()) != ESC)
    {
        if (key == 0 || key == 224)
        {

            key = _getch();
            switch(key)
            {
                case UPARROW:
                    if( cord.Y > 0)
                    {
                        cord.Y--;
                        SetConsoleCursorPosition(hConsole, cord);
                    }
                    break;
                case DOWNARROW:
                    break;
                case RIGHTARROW:
                    break;
                case LEFTARROW:
                    break;
            }
        }

    }
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I tried it an it (the first example program) won't work on my Windows 7 computer. I have no idea why since I have an 8-core processor.

Aborting: failed to launch 'ûn 8 mpiTest1.exe' on TARDIS
Error (2) The system cannot find the file specified.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't get it. If the program is supposed to be similar to Notepad.exe, how is it supposed to use the S, L and Q characters as commands? That's more like the behavior of Edline.exe, which is a very old MS-DOS line editor. In Notepad you can't use characters as commands because the characters become part of the document.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

put a print statement after line 17 and display the value of rc.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

:Question #3: These 200 Textboxes / labels text or values to be populated into Excel sheet as headers.

As I mentioned a week ago all you have to do is write the data in the text boxes to a comma deliminated text file, then Excel can easily import the file into a worksheet.

But Every Time I can't open VS and do the programming right.

Sorry, but I don't understand that -- I thought you said you had all that fixed, in this post.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I favor death penalty when DUI results in death of other people. In USA it takes too long to administer the death penalty -- 15-20 years, or more. Let's cut that down to 15-20 DAYS instead of years.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

A little more, I still find Recently Updated Articles more useful. But now that I know how to jump directly to the post I will begin using Home Page more and more. Just a matter of a little retraining, like going from Windows 7 to Windows 8, everything's there it's just a matter of finding out how to use it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

getch() returns either 0 or 227 for special keys. When that happens you have to call getch() again to get the actual key code. This is one of the few times I would recommend using non-standard conio.h, but I don't know if your compiler supports it or not. If not, then you will have to use win32 api console functions, which are more complicated.

#include <stdio.h>
#include <conio.h>
#define ESC 27

int main()

{
    int key;
    while ((key = _getch()) != ESC)
    {
        if (key == 0 || key == 224)
        {

            key = _getch();
            printf("%d\n", key);
        }

    }
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

What compiler and operating system are you using? AFAIK the ascii table doesn't have anything that will move the cursor, except for the backspace key.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Youtube version of that song

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Either Windows 7 or 8.1 is ok -- 8.1 is radically different than any previous version of Windows, but it has other desirable features, such as quicker bootup time. Before buying either you need to download and run Microsoft Compatibility check program. Click here and here And here is a list of some of the differences

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted, but now you live on the planet Crypton, which exploded.

I wish I had won the Mega-Millions Lottery (worth $630 Million last night)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Please remind us again what your 3d question is.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You might check out some of these free apps

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Perfect :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

. i wished it snowed in southern california...

My sister lived about 30 years in Tustin Calif, which is just south of Disneyland. She saw it snow, twice.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Another suggestion: The link in "Edited post in ..." or "Replied to post in ..." -- suggest the link go to the post in which the member posted or replied instead of just to the first post in the thread. The same behavior as the time link in the Recently Updated Articles page. If I want to see what the member did I don't want to search the entire thread for the post.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The answer might be simple (lock them up forever), but the available resources are not. Where are you going to put them? Why should they get free room and boasrd (in prison)? In USA we alreasy have too many prisons and too many people in prison for petty crimes, such as drug users.

Maybe a better solution is to reinstate the firing squad and just shoot them.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

He take WAP as Write A Programme

Yes -- that makes sense. I'll write the program for him, but first me must deposit $10,000.00 USD in my PayPay account (as I've told others like him)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted but a tornado came along and ripped it up and blew it away.

I wish I were a bit thiner.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

granted -- but the pararazzi hound you to death.

I whsh I had a big cookie

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If you have 32-bit Vista then the max size of 2TB -- you'd have to partition it into smaller partitions to make it useful for 32-bit operating systems.

To check the bios, during reboot and before Vista starts press the Del key (or whatever key the computer tells you to press) to get into the BIOS. Once there you will have to browse around it to find the manufacturer's ID or part number, then look it up on the web. The BIOS might even tell you the date it was made. Contact the manufacturer to see if there is a problem with that 3TB drive.

If you are in USA you could take it to Best Buy Geek Squad, but it will cost you some $$$.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

12 days of Christmas song -- how many people were given to my true love? No fair peeking or googling.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

My uncle did a few years prison time for DUIs -- don't know how may DUIs he got before getting sent up the river.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

What is WAP? Google says it's " Wireless Appication Protico", but I doubt that's what you are talking about.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Can't help you if you don't post the code and the errors. My eyesight's too poor to see your monitor from where I'm sitting.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted -- you can't shut them up they talk so much!

All I want for Chiristmas is my front two teeth.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Check the hard drive to see if it's nearly filled up, also check the computer's memory -- could be a bad memory stick. I use memtest86

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Do we need self-tests?

Well, yes. I hear rumours about court ordered devices put in the cars of DUI offenders. The car won't start if the driver doesn't pass the test.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Is this the movie you mentioned? From the IMB description it looks to be about something else.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I that an exe file you want us to download to our computers? Not going to happen because it's just too risky (viruses, malware, etc).

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted -- you are instantly teleported into the year 3,000 when you will be nothing more than a speck of dust.

I wish for joy this Christmas.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You probably need to download and install the device driver for it.

do you have the Verizon Wireless Pc5750 Usb Modem? If yes, then I think you can get the device driver from here.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

How old is your computer? Is it the BIOS that doesn't recognized it, or the operating system (which one)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Here's a good story about a homeless guy that learned how to write programs and was successful.

<M/> commented: great story :D +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Prey.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

So is the Easter Bunny :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

there were seasons 1-5, then there was one called "Remember My Name -- The Final Season". I haven't watched it yet, so I don't know if that was a full season or not.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

According to wiki that isn't exactly true

Images of Santa Claus were further popularized through Haddon Sundblom’s depiction of him for The Coca-Cola Company’s Christmas advertising in the 1930s.[7][32] The popularity of the image spawned urban legends that Santa Claus was invented by The Coca-Cola Company or that Santa wears red and white because they are the colors used to promote the Coca-Cola brand.[33] Historically, Coca-Cola was not the first soft drink company to utilize the modern image of Santa Claus in its advertising—White Rock Beverages had already used a red and white Santa to sell mineral water in 1915 and then in advertisements for its ginger ale in 1923.[34][35][36] Earlier still, Santa Claus had appeared dressed in red and white and essentially in his current form on several covers of Puck magazine in the first few years of the 20th century.[37]

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Most effective solution would be to pass a law implementing a new technology to test before starting the car.

That technology already exists (Click here)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I'm watching the HBO series Breaking Bad -- story about a high school chemestry teacher who gets lung cancer and starts making meth to pay for the treatments. The series lasted 6 seasons, and I'm about half way through season 4.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Ban alcohol -- Oh wait, we already tried that and it didn't work. Oh well, ban it again, along with tobacco, fast food, french fries, candy, ice cream, etc. because they are all bad for us and can kill us.

<M/> commented: All in! +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You need to split the line into individual tokens immately after reading it from the text file, then you can copy the integer portion to n member of the structure and the name portion to the nom structure member. I think fscanf() would be easier to use than fgets()

char nom[80];
int n;
struct S* head = 0;
while( fscanf(f,"%d %s", &n, nom) > 0 )
{

    tete=(S *)malloc(sizeof(S));
    s->n = n;
    strcpy(s->nom,nom);
    AddLinkedList(&head, s);
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

In that case the escape characters are not needed -- only useful for literal strings.

You don't need the for loop. This works

#include<iostream>
#include<string>
using namespace std;

string Quote = "\"";//Maybe I initialize this wrong?
string text = "I'm \"trying\" to search for quotes";


int main()

{
    size_t found = 0;
    string doublequote = "\"\"";
        while ((found = text.find(Quote, found)) != string::npos)

        {
            text.replace(found, Quote.length(), doublequote);
            found += doublequote.length();
        }
    cout << text << '\n';
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

line 2 need escape characters

string text="I'm \"trying\" to search for quotes";

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted -- but someone just put a knife into your head.

I wish I had all of Bill Gate's money.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

what did you enter for cyp? gets() doesn't accept spaces.

You should NEVER EVER use gets() because it can corrupt your program's memory when you enter more characters than the buffer can hold. Instead, use fgets(), such as fgets(cyp,sizeof(cyp),stdin); scanf() with "%s" has a similar problem, you can use "%149s" to limit input to 149 characters plus 1 for null terminator.