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

First you need to make a list of commands and associated functions that are to process them. Then you have several options, probably the simplest is to use a switch statement for each command

char command = 'B';

switch(command)
{
   case 'A':
      // do something
      break;
    case 'B':
      // do something
      break;
    // etc. 
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

We can help you if you would tell us what you don't understand about 2d arrays.

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

kurianjoseph seemed to have offered a new suggestion two weeks ago. I'm a rookie at it too and I think I'll take his advice.

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

I have both wired and wireless on the same home network and works great. File sharing is a bit of a pain to set up right, but once it's done it works ok.

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

Yes

Isn't that by design?

I wouldn't know. but I can live with it -- if I want to move it somewhere else I can just manually erase the original text.

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

276884324a0dbf1d0c97b4fb6f6d0d40276884324a0dbf1d0c97b4fb6f6d0d40276884324a0dbf1d0c97b4fb6f6d0d40 test

[edit]Yes! It works now 276884324a0dbf1d0c97b4fb6f6d0d40 .

Huum: Each time I edit and click Left or Right it adds the image again. But I'm not going to complain about that because it works ok now.

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

line 9: what's the value of variable a???

line 20: what's the value of variable j??

Answer: both i and j are uninitialized variables, so their value can be any random number.

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

Probably not -- it has most likely been overwritten by something else. Did you look in the Recycle Bin if you are using ms-windows?

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

sizeof(int) * 200.

Thats the same as sizeof(*p)

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

you did it wrong. look again at the examples I gave you.

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

Such a thing might be useful for other languages as well. The only problem: would new programmers bother to read it?

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

World War Z -- good movie, if you like The Walking Dead and other zombi movies.

Watched Catch Me If You Can again last night -- an old movie but very good and it's a true story too.

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

line 67: it is not allocating enough memory -- need sizeof(struct node) instead of sizeof(struct node*) because it needs to allocate memory for the entire structure, not just a 4-byte pointer.

lines 69-79: q is now a ** pointer, and to reference an object of q is like this:
(*q)->front=ptr;

or like this:
*(*q).front=ptr;

And before using *q you need to check that it is not NULL, e.g.

if( *q == NULL)
{
    *q = ptr;
}
else
{
   // do stuff with *q here
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Sounds like a good idea -- might also include and area where members can post their resumes.

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

I don't have a problem with new posts -- just with editing an existing post.

[edit]I'm using Chrome on Windows 8, disabled all extensions including ad blocker, cleared catch and history , and I still can not upload a file.

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

I use Chrome.

Try disabling all plugins, then clear your cache and try the upload again.

Tried that, still cannot upload files in a post I want to edit.

[edit]
Doesn't work on Windows 7 using IE10 either.

[edit/edit]
Now I'm on a completly different computer running Windows 8 IE10. Doesn't work here either.

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

bump

I still can not do this!

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

Here is picture of my McAfee setting

96c3e2240bce6b14219f709e3b578242

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

It's been many years since I used XP so I don't know if the Security tab is available on XP or not.

As for McAfee -- see picture

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

The tile for the desktop is right in front of you after boot. It's in the lower-left corner. Just click on it. How much time does that take??? Windows 8 is a little bit of a learning curve, but not much. I hate the ribbons in MS Office more than I do Windows 8.

I don't like the Windows key on the keyboard -- I used a screw driver to knock it off because I am constantly hitting it while playing games. Too bad they didn't put the windows key somewhere else, like on the top row with the function keys.

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

also stated that we use the Start8 add-on to bring back the desktop,

Waste of time -- the desktop is already there. Just click the desktop icon on the metro screen.

If you use Ubuntu, and do not like their out of the box Unity interface, just load another. Hard to do that with Windows.

AFAIK you cannot do that with Windows -- no version of Windows allows that.

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

No order the this list

Ink Masters
Tatto Coverup
Judge Judy
Law and Order SUV
Top Gear (UK version)
Dr Who
Star Trek (all of them)
American Ninja Warrior
Big Love (HBO series)

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

Could you put a cut-off date for the calculations, for example only calculate for the most recent 3 or 4 years? That would de-emphasize the quality of very old posts.

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

I had a similar problem with Windows 7 and Windows 8 computers. On Windows 7 I had a couple of shared folders. Windows 8 could see them but didn't have access to them. The solution is to grant Security permissions for Everyone and Home Group Users. You do this in the Security tab, which is located right next to the Sharing tab. If you don't see Everyone then you have to add it by using the Advanced option.

Also, some firewalls will block other computers from accessing shared folders. My Windows 7 computer was running McAfee firewall and I had to turn that feature off.

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

Post Raison Bran with Silk unsweetened Almondmilk

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

Notice how the Fox News pundits are claiming that "Obama just led us into a humilating defeat".

Huh? defeat from what war? I didn't know any was at war yet or that anyone won that war. In his speech last night Obama indicated Russia is going take some sort of diplomatic steps to alleviate the tension.

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

Yes but that's not what it should have. A filename such as "myfile.txt" is char*, not char** or char*[].

argv is char**, which is an array of strings. If you only pass one string such as argv[1] then you are passing char*

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

AFAIK there are no broadcast 3d programs -- only 3d movies, and you'd have to buy a 3d movie player to watch them.

I use my TV to fall asleep,

You'd sleep better if you turned off the tv. If you need noise, use a fan which has a constant soothing sound. There are other sound generators that generate other kids of sounds, such as ocean waives.

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

why didn't you change the parameter of r_file() from char** to char*???

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

line 14:r_file(argv);

Wrong. That is passing the entire array of strings, not just a single string. You have to tell it which string you want to pass. I'm assuming the filename is located at argv[1]

r_file(argv[1]);

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

I read the other day M$ might be supporting XP beyond the cut-off date they said which is next year.

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

Yes, it was 64-bit. But it doesn't matter anymore because I restored the os to Windows 8 and returned it to where I bought it.

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

clock() returns milliseconds, time() returns seconds. If it's bubble sort then just to the bubble sort once instead of a million times as in my previous post. But you will have to give it a pretty large array so that the time is measurable. If the entire time to do the bubble sort is less than 1 millisecond then the measurable time will be 0.

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

You'd have to get a hook into the clock cycles of your computer

That would be going a bit to the extreme -- just using standard C function clock() and repeating the algorithm a million times would probably be sufficient.

clock_t t1,t2;

t1 = clock(); // get starting time
for(int i = 0; i < 1000000; i++)
{
    // do algorithm here
}
t2 = clock(); // get ending time

int diff = t2-t1;
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

@dominiquehelper: what exactly is the question about the code you posted? Does the code you posted compile and work correctly? If not, why not? Just posting code without an explanation of what you don't understand isn't helpful to any of us -- we are not mind readers.

Here is some good advice for new members. You should read that post.

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

This sort of reminds me of the day many years ago (1985) when Coke company decided to change the fomula, there were so many demonstrations that Coke had the bring back the original formula and call it Coke Classic. I don't think they even sell that new coke any more, at least I don't see it in the stores around where I live. Microsoft better watch out or they will be in a similar situation.

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

The President just made a TV speech in which he said he is not going to take any military action at this time. Russia is apparently willing to do some negotiating with Syria.

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

Can't help you until you post code.

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

No tasklbar when an application is open

Some yes, others no. I miss the taskbar sometimes too. Just Alt+Tab get you to the desktop window with the taskbar.

If I bought a new Car, but I forgot how to unlock and open the Door

I bought a new car and when I went to the gas station I didn't know how to open the lid to the gas tank so that I could put gas in it. I had to get another customer show me how it is done -- no big deal, just a little training solved the problem. If you are not willing to learn new things then you might as well live in a cave all by yourself. Same with Windows 8 -- the additional training isn't all that difficult for most people, even an old geeser like me learned it in just a few hours. I'll bet a 10-year-old could learn it in less than an hour.

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

that's interesting, the UK has no F-16s :)

And how do you know that?

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

He probably is not allowed to do that.

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

In the first loop the j counter contains the value of the last concantinated string, so you want to copy the strings from i to j

for(; i < MAX_S_ROWS; j++, i++ )
   {
      strcpy(dest[j], dest[i]); // no clue what goes here
   }
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I still have not figured out how to GET to the taskbar (if it exists).

In the Start screen (the one with all the icons) the icon in the lower-left corner is named "Desktop". when you click that your computer will look just like Windows 7, but without the Start menu in the taskbar. In that window you can easily switch between applications just like you do now with XP, and you can do the same thing with windows 7.

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

I never intend to own a laptop

I believe they were designed for people on-the-go, not for people who have constant power supply. But IMO I agree with you, and they are also more expensive then desktop PCs.

And give me back the original MSpaint.

Yes, and the original version of MS Office. I hate that new menu strip across the top which many programs are duplicating today. Very confusing.

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

The remaining 8 are still where they always were -- at the end of all the strings you null'ed out which makes them unaccessable. In the concantination function you will need to move them just after the last concantinated string. You will have to put a 3d loop in that function between the two loops you already have.

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

If you contantinate 200 strings how do you wind up with 108 strings? The math doesn't add up.

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

Have you studies linked lists yet? This would be a lot easier to do if you could put the concantinated strings into a linked list. I have no idea where the other strings are, if you started out with 208 you should wind up with 104.

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

Same problem as I explained before. On line 68 what is the value of q ? Answer: NULL. You can't use a NULL pointer for anything because there's no memory assigned to it.

Also, in that same function, you need to pass q by address or by reference, not by value, so that the function can change the original pointer. You will have to make additional changes inside the insert() function.

struct queue *insert(struct queue** q, int val)

And change line 16 like this:

struct queue *insert(struct queue**, int);

line 41 change: (note: you don't need the q= assignment operator because insert() will do that.
insert(&q,val);

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

line 22: there are not 108 elements in the array. You need to count the number of elements so that you can plug that number into the formula on line 22.

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

you need to declare j counter above and outside both loops. I don't see how it could break the display function.

The loop in ShuffleArray() need to be fixed too -- when that function starts there it not 208 elements in the array. Use the same loop that's in display function.