kes166 37 Practically a Master Poster

I'm guessing there's no on board generic video on the motherboard?

I would suggest finding a low cost graphics card that will be compatible with your video adapter slot and plug it in.
You can find drivers for your card at

http://www.nvidia.com/object/product_geforce_8800_gt_us.html

If you power on the PC without a video card, I think there is supposed to be a beep code. I'm not at home at the moment, and my PC's I have access to all have on board video anyways, so I wouldn't be able to test it.

kes166 37 Practically a Master Poster

I didn't look yo tour prog you're right answer is fibonacci sequences but it's too long let me show you easier solution:

#include<iostream>
using namespace std;

int main()
{
int n; //the ladder
int currentNum=1;
int previousNum=0;
cout<<"enter the ladders:";
cin>>n;
cout<<endl<<previousNum<<" ";

for(int i=1;i<n;i++)
{
cout<<currentNum<<" ";
currentNum+=previousNum;
previousNum=currentNum-previousNum;
}
system("pause");
return 0;

}

you won't add step in input you just going to find the number of possible combinations.
That's all thanks!!!
Think simpler.
Your computer is too heavy tou are confused.
BE SIMPLER.:)))

I don't think the output of the program is going to be what you think it will be. If you are going to turn that in as a homework assingment, you are better off copy and pasting rdpm. A 4 step ladder will output:

enter the ladders: 4

0 1 1 2

According to the Op, outputting the fibonacci numbers is not the solution.

kes166 37 Practically a Master Poster

no there's no such condition that allows you move only oe or only two you can use both of them

If you reread the post, I account for all possible moves either taking 1 step or 2 steps. I did make one mistake in saying divide by 2, but you actually need to divide by k! to find the correct number of permutations where steps aren't reused. (n!/(n-k)!)/k!

In the 4 step example, the least amount of steps you can take is 2, for which there is only one viable solution: 2,4 add to legal struct.

you then find all solutions for taking 3 steps:
1, 2, 3 2, 3, 4
1, 2, 4
1, 3, 4

eliminate illegal moves and you are left with
1,2,4 2,3,4
1,3,4

add them to legal struct

Then all solutions for 4 stps
1,2,3,4

Eliminate illegal moves and you have
1,2,3,4

So you are left with
2,4
1,2,4
1,3,4
2,3,4
1,2,3,4

Only 5 possible solutions for a 4 step tower. It may actually be easier to just generate the entire (n!/(n-k)!) and eliminate redundant moves or back stepping in the elimination function.

kes166 37 Practically a Master Poster

It is correct ... if the steps are 1, 2, 3, 4 then 2 (taking 2 steps) then 4 (taking 2 steps) is a legal move.

1,3 is illegal because you don't end on 4.
3,4 is illegal because to get to step 3 is to many steps.

Anything that doesn't end on 4 is illegal.
If you have 5 steps, anything that doesn't end on 5 is illegal.
etc ....

kes166 37 Practically a Master Poster

yeah you just have to find how many different ways you can climb the ladder OK?
:yawn:

It's multi sets of the number of steps available. If there are 10 steps, the shortest distance you can get to the top is 5. If there's 11 steps, the shortest distance is 6 rounded up from 5.5. If there's 12, the shortest distance is also 6. Odd steps round up. You would then need to divide that number by 2, and it would give you the amount of possible solutions without repitition.

You'd then need to eliminate the illegal moves. Lets assume 4 steps, 1, 2, 3, 4 (excluding the 0 to make the math easier).
possible moves in 2 steps are:
1,2 2,3 3,4
1,3 2,4
1,4

Send that entire structure to a function to eliminate illegal moves and you are left with
2,4

All other moves are illegal, either taking more than 2 steps or not ending on 4 which are easy conditions to test for.

You then need to repeat the initial function which finds all possible moves, but in 3 steps instead of 4, then again to find all possible moves in 4 steps. Place all legal moves in a structure and throw out all the illegal moves.

kes166 37 Practically a Master Poster

Yes, you can buy converters.

kes166 37 Practically a Master Poster

> so to recap.nothing plugged into the tower works when it is turned off.

Turn it on ... I'm not exactly sure what you are trying to say. My best guess bassed on how you worded your Op, your graphics card is borked. Open your PC, check to see if the graphics card has a fan. If it does, check to make sure it works.

If it has a fan, and doesn't spin, you need a new graphics card. If you have an onboard video card on your mother board, pull the graphics card, and try the onboard video card.

Edit:
> so when i left yesterday to visit my b/f in a different city than mine
> for thanksgiving dinner the computer was fine and on.

It's good practice to shut your PC off. At least adjust the power settings for the PC to go into Hibernate after a few hours of inactivity.

kes166 37 Practically a Master Poster

Make an array of int count[26], initialize them all to 0. Read in the first character. Type cast the character to an int, subtract 97 from the int. That value is now the index of your count array.

If the letter is 'a', it will typecast to the value 97, 97-97=0. count[0] is your a value, so count[0]++. If the letter is 'b', typecast it will be 98. 98-97=1 so count[1]++.

The other way is to have a massive switch statement.

kes166 37 Practically a Master Poster

Just to Recap . o O

so, this guy walks in to a bar with a duck under his arm. the duck is wearing a plaid kilt and sunglasses. The bartender looks up and says... "What are you going to have Mister Wenting?"
"I am not Jwenting - how dare you!"
"I'm sorry Mr. Quackers....."
Mr. Quackers sneers and set the duck on the counter, pausing briefly to remember what he came for.
"The usual.....Pond water for my friend and whatever that guys having!"
The bartender looked at what the guy was having and... said,
"OMG that looks disgusting!"

That guy hears the bartender and winks at him. Mr Quackers wonders if having the same as that guy would be such a good thing, but after all... it was his birthday, and only him and the duck knew. The bartender gently placed down the 2 liquids and said...

I like the bartender
(Oooo If you're lookin' for me)
I'm at the bar with him
(Uh-huh, Ok)
I like the bartender
(Yeah if you're lookin' for me)
I'm at the bar with him
(Oooooh Uh-huh, Ok)

....the bartender gets angry and kicks him out of the bar.... then the man said..
"It's my b-day! Don't treat me like that! Let me enjoy inside together w/ my duck..."
then the bartender agreed & said..
"I'm sorry.. come in.."
The man w/ …

kes166 37 Practically a Master Poster

I would shoot the rabbit, then I would shoot my family, thus creating an Enigma wrapped in a Paradox, and laugh as it absorbs the world until nothing is left.

kes166 37 Practically a Master Poster

When you create a variable, it is assigned a random location in memory. It doesn't matter what's in that memory, it's now assigned that.

int i;

i is now a 32 bit variable. those 32 bits are given to i from anywhere in the memory. anything could be in those 32 bits. Let assume the bits in i are the following:
11100101 10100111 10011110 10111001

I have no idea what number that is, since I typed it in randomly, but now we do this in our code.

i = 0;

We just did this to the 32 bits:
00000000 00000000 00000000 00000000

Basically, a memory address never has nothing in it. It either has what was in it before, or what you assigned it to after. Now when you create a pointer

int *pointer;
cout "Pointer = " << *pointer;

This either causes an error, or displays what pointer is pointing at. I don't have a compiler, but either way, it's bad.

If you do it like this:

int v;
int *pointer = &v
cout "Pointer is at: " << &pointer;

This will produce the memory location in which pointer is pointing at.

kes166 37 Practically a Master Poster

how would you go about splitting it?

sorry im new im really trying to learn this

I'm going to quote the code right out of the post I linked and modify it slighly.

int length=strlen(sentence);
 int check=0;    
 for(int i=length-1; i>=0; i--){
        if(sentence[i]!=' ' && i != 0){
            check++;        
        }
        else{
            for(int j=i; j<(check+i); j++)
                cout<<sentence[j+1];
                cout<<" ";
                check=0;        
        }
 }

sentence = junk#crap

You will still need to modify this code, but once you understand it, it'll be easy to see. This code cout's where you would actually need to save the values elsewhere instead of just displaying them.

kes166 37 Practically a Master Poster

you could cheat and return

return ((pow(x,2)+x)/2);
kes166 37 Practically a Master Poster

An if statement.

If string[n] == '#' then split the string.

Also, take a look at this code that someone else wrote. If you can understand it, you can adapt it.

kes166 37 Practically a Master Poster

Sounds like you might have a raid controller trying to load up. Going into task manager and check the processes that are running, find the raid controller, and uninstall it.

Some SATA drives actually need the jraid.sys file. What OS are you running? I have heard of bad jraid.sys files being installed on Win7 installs. You may want to try to reinstalling your OS.

I'm pretty sure your problem is software related.

kes166 37 Practically a Master Poster

You are using the space as a deliminator, meaning you are breaking the words apart with a space. In the sentence "The input is" you get the space before is, then retrieve the word "is", you then get the space before input, and retrieve "is input" but there is no space before the word "The".

The letter 'T' of the word "The" resides in sentence[0]. Currently as written, line 12 will not execute when i = 0. You'll need to change that to

for(int i=length-1; i>=0; i--)

Your length value will be 12, so you will only need to reference sentence[11] through sentence[0]. Once you include the location sentence[0] in your for loop, you will need to check for that special condition, namly when i = 0. You can do that in your if statement in line 14. If i equals 0, then that is your first word of the sentence.

kes166 37 Practically a Master Poster

I'm assuming you mean these rules.

I would use two 2d arrays instead of four 1d arrays. You only have 2 1d arrays. The reason I would have an extra 2d array is to preserve the current board without altering it while coming up with the next phase of life.
o = life cell, x = dead cell

Phase 1:
o x o x
x o x o
x x x x
o o o o

Phase 2:
x o o x
x o o x
o x x o
x o o x

Phase 3:
x x x x
o x x o
o x x o
x o o x

Phase 4: 

etc etc etc

You will need to preserve the 2d array until you have the new 2d array filled out.

Edit:

Basically, I would start like

int main(int argc, char* argv[]) {
    bool oldBoard [20][20];
    bool newBoard [20][20];
    ...
}

Edit #2: Wait, I missed your 2d array bool on the first pass through. your line 11 and 12 threw me off a litte. If you know the size of the board, you don't need const, just put the size directly in the variable declaration

kes166 37 Practically a Master Poster

Did you change it in your function header as well?

class List
{
public:
...
private:
	struct ListNode	{
         ...
         };
         ...
	ListNode SearchCommunication(string);
};//List
...
ListNode List::SearchCommunication(string word){
    ListNode *temp = inbox.head;
    ...
    return temp;
}

Also, inbox was declared as a global variable. Not sure if that was intentional or not, but you may want to restructure the program so you don't need to declare it globally.

kes166 37 Practically a Master Poster

change void to ListNode. Keep in mind, ListNode is a private structure, so anything outside your class won't be able to make a type ListNode.

Edit:

Shoud be ok on keeping it private .... SearchCommunication(string); is also private.

kes166 37 Practically a Master Poster

I believe Visual C++ gives a list of functions similar to java as stated in the OP when you use ::

You can download a trial version of it from http://www.microsoft.com/express/Downloads/

I'm not sure how long the trial version lasts for. When I was using a compiler for c++ I used pico editor which is pretty close to using notepad then used GNU to compile the code.

kes166 37 Practically a Master Poster

I'm seeing quite a few issues in the code ... How many errors do you get when you compile?

void createTickets(char ticket[20],bool modified,char name[40]);

This is wrong. If you want to pass the size of the arrays, you will need a seperate int value.

void createTickets(char ticket[],bool modified,char name[], int ticketLen, int nameLen);

But since this is a class function declaration, it can be written as

void createTickets(char[], bool, char[], int, int);

The actual function header should be

void airplane::createTickets(char ticket[],bool modified,char name[], int ticketLen, int nameLen)
{

I'm not sure what types of errors the above will give doing it the way you have it, or even if it is giving errors at all since I don't have a compiler, but the way it is now doesn't look right.

Now, looking at your bookSeatAssignment

void bookSeatAssignment(airplane bookTickets[],int numberOfTickets)
{
		string seatId;
		string seatHolder;

		bool emptySeat;
		emptySeat=false;

			cout<<"Enter name of holder: "<<endl;
			getline(cin,seatHolder);

			cout<<"Enter seat id: "<<endl;
			getline(cin,seatId);
			
			cout<<endl;
			//cout<<"name of holder: "<<seatHolder;

	/*	for (i=0;i<=11;i++)
		{
			bookSeatsTickets[i].countEmptySeats();
		}

		if (totalEmptySeats==0)
			cout<<"You can`t make reservation. There is no empty seat right now"<<endl;
		if (totalEmptySeats>0)
		{*/
			//seatId="B3";
			//seatHolder="Alex Papasavva";
			//cout<<seatId<<endl;
			//convertSeat(bookTickets,seatId,seatHolder);
		//}

}

Most of it is commented out, but looking at what you have commented out, what is:
bookSeatsTickets.countEmptySeats();

bookSeatsTickets is an undefined variable.

kes166 37 Practically a Master Poster

I'll give you a hint. If you read in as a character, cast it to an int, and work with it based on it's ascii value, you can easily work with it using if statements.

kes166 37 Practically a Master Poster

My best guess without seeing the showMenu function is that showMenuTickets isn't assigned correctly to ticket.

kes166 37 Practically a Master Poster

It doesn't sound like a virus. Try updating with the current driver for your graphics card. Check the website of the graphics card, or google your graphics card and you should get their website.

I would also open your computer, and check the fan on the graphics card if it has one. If the fan doesn't work on the graphics card, you'll need a new one. If the above doesn't fix your problem, you will probably need a new one also.

If the problem is with your graphics card, the longer you try to run with it, the greater the chances are that you will ruin the motherboard.

kes166 37 Practically a Master Poster

Something else I noticed, nDays in main and nDays in timeCalc are not the same variable. When you pass nDays from main to your printTime, it is a garbage value regardless of how timeCalc finishes.

kes166 37 Practically a Master Poster

try initializing your variables. in your function void timeCalc, if line 70 executes, days will equal a garbage value.

days goes to printTime as nDays and you immedietly start using it in comparisons on line 80.

kes166 37 Practically a Master Poster

Cate Blanchett

kes166 37 Practically a Master Poster

When you create the new person from your Op post

tempPer = new Person[stuNum];

Using your example, you create 3 objects: 0, 1, 2. In your for loops

for(j = 1; j < stuNum; j++)
          tempPer[darrPer[j].age] = tempPer[darrPer[j].age] + 1;
 for(i = 1; i < k; i++)
          tempPer[i] = tempPer[i] + tempPer[i-1];
 for(j = stuNum; j > 0; j--)    {
          sortPerAge[tempPer[darrPer[j].age]] = darrPer[j].age;
          tempPer[darrPer[j].age] = tempPer[darrPer[j].age] - 1;
 }

You never reference tempPer[0]. I'm not sure if the for loops are doing exactly what you want, so I will try to break down what each loop is doing.

for(j = 1; j < stuNum; j++)
   tempPer[darrPer[j].age] = tempPer[darrPer[j].age] + 1;

[darrPer[j].age] is going to be darrPer[1].age which in your examples case will be 25, Jills age, which makes tempPer[25] = tempPer[25] + 1. I'm not sure what that does, and I'm surprised that line doesn't give an error or a warning. The second iteration, it will reference tempPer[27]. Basically, this for loop does nothing with memory that is in bounds.

for(i = 1; i < k; i++)
   tempPer[i] = tempPer[i] + tempPer[i-1];

this will set tempPer[1] = tempPer[1] + tempPer[0] in the first pass
then tempPer[2] = tempPer[2]+tempPer[1]
...
finally tempPer[89] = tempPer[89] + tempPer[88]

Again, I'm not sure what you are trying to accomplish here.

In the last loop

for(j = stuNum; j > 0; j--)    {
          sortPerAge[tempPer[darrPer[j].age]] = darrPer[j].age;
          tempPer[darrPer[j].age] = tempPer[darrPer[j].age] - 1;
              }

in the first …

kes166 37 Practically a Master Poster

I was asked a question, and now I'm determined to find a solution. I'm trying to disable a mouse touchpad on an hp2730p without messing up the pointer stick located in the middle of the keyboard or the mouse buttons. The hp driver conflicts with a security program that is installed on the notebook, so it uses the default mouse driver. The best solution I've come up with is electrical tape over the touchpad.

I'd like to write a driver in C++ since that is what I am most familiar with, but I don't know where to start. I'm looking for a book that might be able to help with writing a mouse driver. I've googled, but can't find any solid book as a teaching reference that will specifically teach how to write a driver. If there is a language better to do this in than C++, I can learn it, but I just need a book for reference specifically for writing a driver.

kes166 37 Practically a Master Poster

Well, two solutions I've found. Unscrew the keyboard and unplug the wire to the touchpad (untested) or put vinyl tape over the touchpad (tested and it worked)

kes166 37 Practically a Master Poster

Under Device Manager, there is:

HID - complaint mouse: Disabling this disables touchpad/stylus/buttons.
Drivers: mouclass.sys
mouhid.sys

PS/2 compatible mouse: No option to disable
Drivers: i8042prt.sys
mouclass.sys

kes166 37 Practically a Master Poster

I am trying to deactivate a touchpad on an HP2730p Notebook with a stipulation. There is software running on the notebook that is required to be there because it is owned by a company, so the software is a security software. You can't run the HP synaptic touchpad drivers because it classes with the software installed for security, so the touchpad uses default mouse drivers.

I've tried Fn + f7 and Fn+ f9. It says it's disabled, but it's not.

I've tried disabling it in BIOS, but is also disables the stylus which is what I want to use.

Are there any other ideas on how to do this?

kes166 37 Practically a Master Poster

Pliars or a small drill bit.

kes166 37 Practically a Master Poster

What OS?


Edit: Vista or 07

In the lower right corner, you should see an icon that looks like a speaker. If you don't, there should be an arrow that will expand the icons that are in the lower right corner near your clock time. Click the expand arrow, then RIGHT CLICK the speaker.

Left click sounds

You should see a dialog box that is titles "Sound" with three tabs: Playback, Recording, Sounds.

Left click Playback.

Make sure that your headphones are located there. Highlight the headphones by left clicking them, and then click the button "Set Default". That should get the sound to go out your headphones.

kes166 37 Practically a Master Poster

I'm not sure if I'm understanding the problem fully, but it looks like you are trying to give the same template two names?

You could try making a second template with the second name you want, and add

friend class QuantitativeStats<T>;

That should allow you to create a QuantitativeStats class that uses all the required variables.

I also found a similar problem where someone suggested wrapping the typedef in a structure.

template <typename T> struct QuantitaveStats
{
    typedef NumericalStats<T> type;
}

Then invoked by

QuantitativeStats<t>::type myStat;

Anyways, I'll admit this is outside my knowledge, but thought I'd fish around for an answer.

Edit: firstPerson beat me to it. Guess I surfed around to long :)

kes166 37 Practically a Master Poster
kes166 37 Practically a Master Poster

how can i make program using arrays related to my course civil engineering?
answer please?

Please, use code tags when you post. It makes it easier to read. Also, in your programming, the language you are using is C, not C++. You also are using main incorrect. you want to declare main as such

int main(){
...
}

Now what exactly is your issue that you are attempting to do? Your Op is vague.

kes166 37 Practically a Master Poster

led might not be working or their could be a lose wire in the laptop itself that came off some pins. Did this problem occur immidietly after sending your PC in for repairs the first time?

Edit:
Also, what do you consider a cold start? If the pc is hibernating, and you hit the power button, that's not a cold start. In order to cold start a PC, you would have to hold the power button in until it powered down, then hold the button in until it powered back on.

A reboot from a sleeping laptop is quicker than a laptop that is cold started, so that is a good way to tell which just happened.

kes166 37 Practically a Master Poster

You can use thiskey in the music constructor, but it won't work written as is. If you include a Key thiskey as a parameter in the Music construct, and pass thiskey to the constructor, it'll work.

Also, what was said before,

music[2]=thiskey.display;

display is a void, and void doesn't return anything. I know you said you trimmed some code, but what exactly is going to be assigned to music[2]?

kes166 37 Practically a Master Poster

Yeah, it sounds like the power supply doesn't have enough Watts anymore to power the entire computer, or something is wrong with the motherboard.

kes166 37 Practically a Master Poster
#include<iostream>
using namespace std;
bool IsConsonant(char);

int main (int argc, char* argv[]){
...
}

bool IsConsonant(char ch){
...
}

The structure will resemble something like that. I'll let you fill in the ...

kes166 37 Practically a Master Poster

I'm not seeing anything wrong with that function, but one of the other functions may be throwing it off. Try commenting out the other cin funtion, and assign the values and run the program. If that doesn't work, comment out each function one at a time until the getResponse function works.

kes166 37 Practically a Master Poster

If the problem occured prior to the laptops post, it would be hardware related. Because it happens after post doesn't mean it's software related,, it could still be either or.

How often does it succesfully load windows? Try booting until it loads into windows, then perform some tasks which tax the CPU, gaming or something.

It sounds like some components aren't getting the power needed to keep the laptop running, which would lead me to think it's a problem with the power supply. If you are able to keep the laptop running indeffinetly once it's booted up (shut the sleep mode option off so the laptop never shuts down) it may be an issue with where the Master Boot Record is on the hard drive.

I would also try to partition the hard drive, and install windows on a seperate part of the hard drive. If that works, chances are the problem is with the hard drive.

kes166 37 Practically a Master Poster

Your graphics card may be overheating. If your graphics card has a fan (most do) check and make sure it works when the PC is turned on. If it doesn't work, your graphics card is bad. Try pulling the graphics card and use on board video if you have it.

kes166 37 Practically a Master Poster

KoolAid --> Oh Yeah!

kes166 37 Practically a Master Poster
if (n == 1)
cout << "1";
else if (n == 2)
cout <<"1"<<endl<<"23";}
else if (n == 3)
cout <<"1"<<endl<<"23"<<endl<<"456";
else if (n == 4)
...

Repeat the sequence until you reach the maximum possible input for int which is I think 32,767.

After it's done, don't post your code :twisted:

Fbody commented: :twisted: Actually, for modern compilers it's about 2.1 billion :twisted: +3
kes166 37 Practically a Master Poster

line 23, set counter to 0.
line 32, your if statement is syntatically incorrect. you need ==. Also, you don't need that if statement.
Line 33, sumEvens = number + number? Think about that for a sec. If the number happens to be 2, sumEvens will be 4. The next iteration, number is 16. sumEvens will be 32. 16+2 != 32. You need to include the variable sumEvens in the addition.
line 38, you will never have a case of -1, you can erase that line.
line 37 once you get rid of 38, it will flow correctly.
line 40 your if statement is again wrong and why even have it?
line 41 same problem as line 33.

codingNewB commented: very clear and understandable instructions +0
kes166 37 Practically a Master Poster

I've only ever burned .ISO files, I've never worked with .DV's. Check the nero site, or call their support line to see if there are any known issues with burning .DV's ... You could also try converting the .DV to a .ISO and burn it through NERO as an ISO image. There are some applications, free and paid for, that will allow you to do that. DVDDecypter is another good program that is good at burning .iso files once you've converted the .dv file.

kes166 37 Practically a Master Poster

Yes.This puzzle is actually a koan. It forces the thinker to come to deep realisations. Eventually, there is an end to the struggle. So guys. What do you do?

Put that way, we pay taxes, then we die.

kes166 37 Practically a Master Poster

I believe it's

system("pause");