I assume you mean MS-Windows operating system. It all depends on the program, compiler and libraries you used. When you try to run the program on another computer does the os give you some errors, such as missing DLLs? Some compilers let you statically link all libraries so that it doesn't require any DLLs other than standard win32 api functions. We have to know a lot more about your program and compiler.
Ancient Dragon
Achieved Level 70
32,137 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69
What kind of project are you using? Is it a standard win32 console app or are you using something differently?
NathanOliver
Posting Virtuoso
1,515 posts since Apr 2009
Reputation Points: 281
Solved Threads: 277
Skill Endorsements: 3
You want to make sure that you are NOT trying to execute the DEBUG version of your executable on machines not having Visual Studio (2008) installed, i.e. build and use the RELEASE version on such machines.
mitrmkar
Posting Virtuoso
1,834 posts since Nov 2007
Reputation Points: 1,119
Solved Threads: 399
Skill Endorsements: 8
Is the data in ascending sorted order? If not then the program can't work.
why does the loop counter i start at 1 instead of 0?
ksz[i]=KSz[0];
Don't name your arrays like that because you will do nothing more than confuse yourself (and others) when read later. name kSz something else and make the name meaningful for what data it represents.
for(j=0;j<=18;j++)
That is reaching beyond the bounds of the array. The array only has 16 elsmenets, not 19. The loop counter should be: for(j=0;j<14;j++) (14 because of the j+1 in the next statement)
Ancient Dragon
Achieved Level 70
32,137 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69