Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ckrieger1

    Help with Bus Error when I run my program

    Well I feel stupid lol, I just found my error, all I did was change a 'j' to a 'k' in another part of my program and I got rid of the bus error.
  2. ckrieger1

    Help with Bus Error when I run my program

    Ok I tried that. I guess it's not an alignment problem. Here is the code for the whole function. n data.n and data.N are all different variables. int allocate_bayes(Bayes &bayes, int n) { // bayes.px0c0 = (double*) calloc(n,sizeof(double)); // bayes.px0c1 = (double*) calloc(n,sizeof(double))...
  3. ckrieger1

    Help with Bus Error when I run my program

    The way I allocated px0c0 and px0c1: bayes.px0c0 = (double*) calloc(n, sizeof(double)); bayes.px0c1 = (double*) calloc(n, sizeof(double)); Then I used a for loop to initialize all of them. They all contain valid values.
  4. ckrieger1

    Help with Bus Error when I run my program

    I need help. I keep getting a Bus Error when I run my program and I've narrowed down where it occurs to the following code fragment. px0c0 and px0c1 are type double pointers and count_x0c0[m] and countc0 are integers. Can anyone see why this code would be giving me a Bus Error? Thanks. // set...
  5. ckrieger1

    need help with a Kornshell function

    I am trying to write a Kornshell function that takes a string parameter which represents a filename or directory name. The function checks to see if there are any spaces in the filename or directory name and then replaces the spaces with an underscore. The returned value is a filename or...
  6. ckrieger1

    Need Help with a KornShell script

    I need a KornShell script that will, among all the users currently logged on to the system, find a slot of one hour that contains the most number of users. I know how to list all the users currently logged on but how do I do anything with the times that are listed? Please help, thanks.

Part and Inventory Search

Back
Top