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

It is hard to get the pop out menu to appear

Windows Key+C will do that

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

Nevermind -- it was not visible because of the font size I have. It reappears when I scroll font size smaller :)

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

Any way to make it optional in Control Panel so that those who don't want it can disable it and those who like it can keep it?

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

t it looks like you didn't really look into real world use and other hardware research.

You're right -- I just thought all laptops would be able to run Linux, but that's what I get for thinking :) I went to Best Buy and said "I want the cheapest laptop you have", and I guess that's exactly what I got.

I see Dell has a laptop with Ubuntu pre-installed -- but it's mighty expensive.

Windows 8 has enabled EUFI secure boot

Yes, I already disabled that in the bios -- didn't help at all.

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

Last week I bought a new Lonovo G505 laptop for the purpose of installing Linux. After removing Windows 8 I tried to install three different linux distributions, none of them worked. None had a compatible wifi device driver, and none of them could start the X server after installation was finished.

Anybody have any suggestions how to make it work? Could the problem be that the laptop is just too new?

Thanks

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

depends on the compiler. Generally, DEBUG is defined when you want to compile the program for debugging -- the compiler adds a great deal of symbol information and data so that you can use a debugger to single-step through the program and view the value of variables at any given time. All that is compiler dependent. With Microsoft Visual Studio you don't have to explicitly define DEBUG because the MS compiler with do that for you when you select Debug build (instead of Release build). DEBUG affects the entire program instead of just certain parts.

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

Is it intentional?

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

Here is how to refer to members of specific classes

int main()
{
    S2 obj;
    obj.A::x = 123;
    std::cout << obj.A::x;
    return 0;
}
nmakes commented: Thanks. THat's what I needed! :D +1
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Secondly.. Does the 'NEXT' pointer in the first node point just to a memory location of the second node

Yes, exactly right.

Intuitevly.. I would think that there would have to be some form of increment to identify each node

Yes, you have to create one so that the program can iterate through all the nodes

void foo(struct node* head)
{
    struct node* iterator; 

    iterator = head;
    while( iterator != NULL)
    {
        // do something

        iterator = iterator->next; // point to the next node
    }
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

For one, why is it that when this second node is instantiated it does not totally overwrite the first node?

Because they are in different memory locations. It's somewhat the same concept as declaring simple variables inside a function

void foo()
{
   int x; // one variable
   int z; // another variable
}

In the above example x and z are completely different variables with occupy different memory locations.

void foo()
{
   int* x = new int;
   int* z = new int;
}

The above example is almost the same as the first except the integers are allocated dynamically, each integer has a different memory location so tha one does not overwrite the other

struct node
{
    struct node* next;
}

void foo()
{
    int* head = NULL;

    struct node* newnode;
    newnode = new struct node; // allocate a node
    head = newnode; // save address in head
    newnode = new struct node; // allocate another node
    nead->next = newnode; // save it's memory location
    newnode = new struct node; // allocate another node
    nead->next->next = newnode; // save it's memory location
}

The above code allocates new memory for each node then saves those locations in the head node. After the address of the new node is stored in head we can throw away the address contained in newnode as it is no longer needed. Yes, the address in newnode is overwritten each time and that is why we have to …

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

remove the & address symbol from both those lines

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

line 20: fgets() parameters are all wrong. Read the description for that function here. I think you should just delete lines 20-23.

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

lines 30 and 31: fin1 is an input stream, not output.

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

Why am I not surprised it doesn't work? All it does is read the data and then does nothing with it.

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

Olympus has Fallon -- 3-stars out of possible 4. Quite a bit of action with dead bodies lying everywhere.

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

It is certainly different -- will take a little while to get accustomed to the new look.

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

Also try reading your textbook.

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

line 348: that is not related to PEmployee class -- it's completly separate object. What you want to do is to use the person member of PEmployee.

delete lines 350-354 and use person_data instead of next.

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

From what I read I think Clang is just an IDE, but the description is somewhat confusing. The description calls it a front end in some places, meaning just an IDE, and a compiler in other places. It also says it's still under development, so it might not be very useful to anyone other than people who like to write compilers. If all you want to use it for is supprot for Regex you can get that with the Boost libraries.

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

Some compilers such as MS VC++ 2012 don't complain about that. I set it at it's highest warning/error level and it still didn't complain about no return value.

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

Of course it is -- you just need to figure out how to do it. Your program needs to iterate through all the rows of the listbox until it either finds the row that contains the search text (Name) or there are no more items. If it does not find the correct button then just add a new one to the listbox.

I'm no C# expert so I won't show you any code. But it sounds like a pretty trivel thing to do. I don't think you want to check for Qty == 1 like you do on line 16. Just look for a row that contains the Name. The value of Qty should not have anything to do with the search.

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

The difference is sooo small that it doesn't really matter. If there is any difference at all it's probably measured in just a few nanoseconds. And a good compiler optimizer will most likely make them both the same. What you should be asking is which is simpler to read, which is more maintainable for us humans.

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

It seems to have corrected itself now.

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

I just noticed this behavior this morning -- when I select a thread in Chrome the wait cursor never stops unless I click the X stop button or browse to one of the pages that contains list of threads. I tried clearing catch and browsing history, but the problem persists. IE10 is ok, doesn't have that problem. It doesn't prevent me from doing anything in Chrome, just a little annoying. Any suggestions?

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

Here is another take on that.

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

IMO creating separate partitions for those things is a waste of hard drive space. The only real reason to repartition is so that you can put other operating systems on the same computer.

In any event, windows xp doesn't have the software needed to partition the hard drive after the os has been installed. -- you will need to use an external partitioner, such as Partition Magic., which is free for home users.

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

Chrome doesn't seem to have that problem.

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

change them from int to unsigned int and see what happens. Also change bit1 to be 2 bits instead of 1.

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

I've had similar problems with my PC, so I just turned sleep mode off.

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

I think this suits the problem. I used goto instead of a loop

Nope. goto can be used a just another type of loop.

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

I failed to mention that such a degree is worthless.

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

@Jim, you can do that in a lot of countries... it doesn't cost very much.

I think you can buy Ph.D. in USA

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

I will take a lot of suction to suck the keys off my keyboard -- I had to use a screwdriver to remove the Windows key because I kept hitting it while playing games. Years ago I used to clean the keyboard by popping off all the keys and washing them in a soapy solution. I would take them all off and lay them out on a table in the same order that they are on the keyboard so that I could easily put them back. Some keyboard have (or had) a small spring under the keys which made that more difficult.

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

Install is very simple -- just buy the install dvd, put it into your computer's dvd drive, then restart the computer and boot from the dvd. I think I've seen some YouTube videos on how to do that too. From there on just answer the questions. Windows 7 and 8 is a lot easier to install then XP because Windiws 7/8 installer figures out the computer's IP and network information. As I recall with XP I had to enter all that information during install.

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

This is the implementation in Java... Hope this will help.

It won't because your program doesn't meed the requirements of the problem. The program can only contain one loop.

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

You could -- but you may never use that PC again. I hope you realize I was just joking :)

aVar++ commented: I was curious as I read somewhere a guy cleaned his motherboard with soap and water then let it dry, then you said it :) +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

or maybe this

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

If you look at the calendar you will notice that Jan 1 falls on a different day of the week each year. So if 1 Jan 2001 was a Monday, then 1 Jan 2002 will be Tuesday, 1 Jan 2003 is Wednesday, etc. On leap year a day is skipped, so 1 Jan 2004 was Friday, not Thursday. Your program should find out the number of years between 2001 and the inputed year then figure out the day of the week.

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

But all in all the best approach is fgets().

Agree -- scanf("%[^\n]%*c") is awkward and difficult to read.

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

Isn't it possible to convert to IPB now?

probably, but why??? Dani already has a hefty investment in the DaniWeb software, why change horses now?

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

If you are talking about a Service, you can set the Admin Password in the Services control panel. For Windows 8 bring up Task Manager, select Serivces tab, right-ckick on one of the service program, select menu item Goto Services. That will bring up another windows which will let you set the password for the service you want.

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

If you define ListView1 in details view with one column

Do you mean in Designer view? Then in Columns property, add one column? I did that but when I chick the button the selected item does not get highlighted like it does when you just click the item. And the text in the MsgBox is empty.

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

did you attempt to run the program as administrator? Right-click the executable and you should see a menu item to Run as Administrator. Even though your account may have administrative rights doesn't mean you automatically have all administrative privaledes. Unfortunate, but that is the way it works with Windows 7 and 8.

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

Huh? I didn't say anything about connecting to the database. What I mentioned is the SQL statement required to delete a row from the database after the connection has been made.

You need to get the values of the columns from the listview row you want to delete and plug them into the SQL statement which is probably why the sql statement doesn't work.

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

DELETE FROM table1 WHERE Processor="", Memory="", VideoCard="", HardDrive="", AntiVirus="" "

Shouldn't there be AMD betweem variables instead of commas?

DELETE FROM table1 WHERE Processor="" AND Memory="" AND VideoCard="" AND HardDrive="" AND AntiVirus=""

Another possibility: use Nothing instead of ""

DELETE FROM table1 WHERE Processor=Nothing AND Memory=Nothing AND VideoCard=Nothing AND HardDrive=Nothing AND AntiVirus=Nothing

Which of the above (if any) is correct will depend on the contents of the database.

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

Read some of these tutorials

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

Home made lasogna. I just substituted low-fat cottage cheese, low-fat ricotta cheese, non-fat mozzarella cheese, and omitted the salt (it's already salty enough).

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

The easiest solution is not necessarily the best solution. When writing programs you have to consider the "stupid users" factor by making your program as non-breakable as possible. Murphy's Law -- if anythihng can go wrong, it will. Don't expect averyone to enter perfect data -- when testing your program you have to now only test the the right data but also the wrong data. Make an effort to see what breaks your program then make changes to guard against it.

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

one way to do it is to use strtok() to separate the original string into its individual parts (tokens). Call atoi() or atol() to convert each part to integer. Next, multiply the year and month by some factor of 10 so as to shift them left and make room for the next integer. For example, if the year is 2003 then multiply it by 10000 making it 20030000 which leaves room for month and day.

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

how would you ever extract a specific file? Is the data for a specific file static, that is, is the data written in stone and will never change? Or do you need to edit and modify the data occasionally? The jar concept along with an index file might work as long as no changes are possible to the data. Then you have only one humongous multi-terabyte file to work with. Access time might be slow though.