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

home made chicken pizza

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

yes

have you even seen a kangaroo in the wild?

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

line 22: use == operator, not the = assinment operator.

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

I'm watching The Day After Tomorrow on tv right now.

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

No

have you ever ridden a horse?

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

One way to do it might be to convert the strings to int then create a DateTime structureClick Here, then use the Compare function to find the line that contains the first time equal to or greater than the specified date and time.

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

Have you ever smoked?

Yes

Have you ever been baptized?

Yes

Have you ever attended a wedding of a close relative?

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

since "Contains" needs the spesific time.

What does that mean? What is wrong with "2013-05-03 14:10:00 to 2013-05-03 14:12:00"?

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

What is the "small problem" ?? Or do you want us to guess? My guess is that you hold your knose when you tried to compile it.

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

Are you using Visual Studio IDE? It has two ways to compile program: Debug and Release. The Debug project adds a great deal of data (such as a symbol table) to your compiled program to make it easy to debug. This is great if you need to debug the program, but not very useful when you want to give your program to someone else. Before you give the program to someone else you will want to compile for Release mode, which strips the excecutable of unnedessary stuff and optimizes the code (loops etc) to make the program run faster.

Microsoft Visual Studio IDE will place the compiled program in a folder named either Debug or Release, depending on which compile mode you have chosen. This folder is created in the same folder as where you place the source code for your program. When you give your program to someone else you can put the executable anywhere you wish, such as in c:\Program Files\MyProgram or somewhere else.

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

Your program doesn't compile correctly, until you fix the errors it will produce undefined behavior.

You need to add = symbol in two places, like this:

creature human  = // <<<< add the = symbol here
{
    100,

I can't compile the rest of the program because you need to post "bresenham.h"

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

Nice advertisement for a program Don probably doesn't want. Next time try posting something useful.

@Don: MS Sql Server accepts several different data formats, here is a list of them.

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

Congratulations! You get all the puppies you want :)

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

c++ itself knows nothing about graphics so you have to use operating system api or some 3d party graphics library such as OpenGL and DirectX. See this Microsoft article for GDI functions on MS-Windows. You must be using a fairly recent 32-bit compiler to access those functions. *nix has completly different functions but I'm not familiar with them.

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

Drinking ice tea straiht up.

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

All you have to do is replace cout with printf() and cin with scanf or fscanf. The rest should be the same.

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

cold and raining since yesterday.

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

verify that app.path returns what you think it does. Also the file can not be open by some other procesas.

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

persistence

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

atoi() does not write to a buffer that you created like fgets() so that's probably why atoi(( works and fgets() doesn't.

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

What's the problem? You stated what it is supposed to do but failed to say what it doesn't do. Don't expect us to guess what you want.

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

Do you mean inherentence or do you mean another programmer? For inherentence just make the objects private.

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

One possible problem is that the instruction push 0 pushes a 32-bit value onto the stack, not a 64-bit value. To test that out, store the value to be pushed into a register then push the register.

mov rax,0
push rax
mov rax,100
push rax
mov rax,string
push rax
call fgets
add rsp, 24 
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Don't worry about it -- airport security are just too busy to thoroughly search all the files on everyone's computers. All they want to see is that the computer is indeed a computer by turning it on to make it work. They don't really csre about what's on the computer unless the person's name is on some sort of watch list.

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

As I recall a few years ago (2006) a *nix super computer beat the world chess champion at a game of chess (link). The program could probably not have been accomplished under MS-Windows.

*nix and Unix is so cryptic in both filenames and parameters most likely becuse it was invented by geeks for geeks on mainframe computers. No one in 1969 imagined there would be computers in people's bedrooms that have more processing power and operating systems than the mainframes of 1969. And most certainly it was not originally intended that Unix would be used by every person over 5 years old in the world.

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

Oh, then I would read the file until end-of-file like this: Not that calling eof() is not necessary because the loop will stop when eof is reached.

int i,j;
float price;

while( infile >> i >> j >> price)
   sales[i][j] += price;
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It will depend on how the file is layed out, but probably replace both lines 21 and 22 with this one line:

infile >> sales[i][j];

Post a few lines of the data file and we can be more specific about how to read it.

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

Read this article. It was written for 32-bit programming but the way to call c functions should be the same. Also make sure your progrzm links with the 64-bit c runtime libraries instead of 32-bit libraries.

do pop and push automaticly adjust the stack?

Maybe -- after retuning from c library function you may or may not need to pop the registers that you pushed. It depends on the c libraries you link to, libraries produced by Microsoft compilers may not be the same as those produced by Borland or other compilers. When you use assembly languaage you have to check the documentation of the libraries you want to use to find out how to clean up the stack after calling one of their functions. Here and here are brief articles about calling conventions for Microsoft compilers. I don't know about gcc or Borland compilers.

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

Are you saying those two files are created when your computer crashes while your vb.net program is running? That's an odd behavior, never heard of that one. You need to check your program code to see what caused it to crash your computer. What version of MS-Windows are you running, and what compiler did you use to compile your program?

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

Add multithreading. Put line 57 in a tight loop, inside that loop after listen() returns create a new thread. lines 62-110 should be in another function which is the thread code. The newest version of c++ standards includes new standards for creating threads which I have not read or used. You can use either that or the operating system-dependent way of creating threads. Since you didn't say what operating system you are using I can't help you further with that. I'd suggest you use the new c++ standards for creating threads so that your program can be os independent as much as possible.

[edit]Here is a link you might want to read.

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

I saw on CNN today that in California, just a few miles north of LA there is a raging fire that has burned over 6,500 acres as of about 2 hours ago (story here). They have what is called "Santa Ana winds", which is very strong wind caused by surrounding mountains.

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

What operating system? Under MS-Windows see this article. Since we know nothing about your installer we can't tell you how to implement that.

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

What sql server are you using? Have you use a server system tool to verify the data was stored correctly? With MySQL there is an admin tool you can use to do that, I'm certain most other SQL servers have something similar.

This may not be relevant, but shouldn't there be a () after Read?
While reader.Read()

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

We are in Spring season here in St Louis, Missouri, USA, it got to 80+F (26.7C) today, nice sunny day. Tomorrow starts about 2 days rain. We'll take all we can get this year after last year's drought.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
    static methods can not access non-static class members because the static method has no idea what instance of the class the variable r belongs to.  
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I mean I'm all for being elitist, but I think that the creating the distinction between 'programmer' and 'scripter' is futile and meaningless.

Did you bother to read the link I posted? Nothing eletist about it, would you call an electrical engineer a programmer? Of course not.

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

You need to set all the elements to NULL after calling malloc(), such as like this:
memset(lines->list,0,num_elements * sizeof(char*))

or call calloc() instead of malloc(), which will do it for you.

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

what parameters will be used in this function?

Here is the complete description of that function.

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

That bill seems to have very broad provisions covering many different things. Can you post a link that discusses the topic which you are concerned?

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

The ads I've seen start with "Software Developer" then go on to be more specific about language requirements.

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

maybe add another char* to the struct. Then you would create an array or linked list of these structures so that you can search them to find the one named Foo or Bar. Very time consuming and inconvenient.

typedef struct {
        int stat1, stat2, stat3;
        char name[20];
} X_type;
void createPlayer(char *name) {
        X_type X;
        strcpy(X.name,name);
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

HTML, XML, CSS, etc. are not programming languages, they are markup languages, so people who use them are not programming. Instead they are writing scripts for a browser to interpret. This seems to be a good article which discusses the differences between markup and programming languages.

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

link doesn't work, just use the Advanced Editor and attach it to your post.

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

You could probably do that yourself with the new DaniWeb API.

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

@AD: Throw away these 3 year old cans immediately! They most have an awfull taste.

I'm keeping them because they are special bottles, created when the St Louis Cardinals baseball team won the baseball World Series in 2011 (I think the only other country that participages is Canada.) I saw them on ebay recently for $4.50 USD per empty bottle (link). I likw vwwe that is a little aged, about 6 months old. I don't like the yiest taste of fresh American-made beer.

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

That was no joke in the 1980s. I'd start a compile and then read a book.

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

Suggestion: Give us the option of collapsing the threads shown in My Posts so that it looks more like My Articles. As it is I have to do an awful lot of unnecessary scrolling to find the thread I want.

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

QuizForm.h file which is almost 2.5 MB and it has 81875 lines of code!

OMG! Why??? Maybe you need to rethink what you have in that header file. There should not be any executasble code (such as functions) unless it's inline code. Zip it up and attach it to your post so that we can see what you did. If you don't want to make it public then you can email the zipped file to me and I'll take a look (not promosing any results though).

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

I didn't have a problem with the link. I wholeheartedly agree with what that book said. Caution: never, ever drink alcohol on your breaks because any code written by you afterwards will be garbage.

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

water spiked with Mio (strawberry watermelon flavor). I stopped drinking soda about a month ago and started drinking more water. I'd drink beer too, but I can't any more. I have two cases Bud Light that have been in my house for thee years now, drank less than 1/4 of it.