User Profile

Collapse

Profile Sidebar

Collapse
akinidu
akinidu
Last Activity: Jun 22 '10, 07:07 PM
Joined: May 30 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • akinidu
    replied to Regarding array operations using pointers.....
    in C
    WHy dont u post the revised code tooo...
    See more | Go to post

    Leave a comment:


  • akinidu
    replied to basic question in C
    in C
    Where is your main function
    Code:
    int main (){
    }
    See more | Go to post

    Leave a comment:


  • akinidu
    started a topic Reading external File or File processing in C
    in C

    Reading external File or File processing in C

    Hi!

    Below is the code which can be use to read and display a simple extrenal file in C...But I am wondering How can i use pointers here and access this file via pointer
    Code:
    /* Display contents of a file on screen. */
    # include "stdio.h"
    int main(void )
    {
         FILE *fp ;
         char ch ;
         fp = fopen ( "sinfft.dat", "r" ) ;
         while
    ...
    See more | Go to post

  • akinidu
    started a topic Shuffle a group of numbers
    in C

    Shuffle a group of numbers

    Hello Every one !

    Suppose i have a vector a=[1 2 3 4 5 6 7 8 9 10]

    Now i want to shuffle these number! and produce new vector b which consist of shuffle numbers which is best way to do it !

    This problem is very similar to shuffle a group of cards!

    I have a approach in my mind like

    Take a random number from a, put it in a b in random position then choose another one from a...
    See more | Go to post

  • akinidu
    started a topic Arrange elements of vectors randomly
    in C

    Arrange elements of vectors randomly

    Suppose i have a vector a[i] having size of100, which means i=100 here ! Now I know if my vector is random i can rearrange it using qsort() in C..or can use bubble sort algorithm !

    But suppose I want to arrange my elements randomly and remove 30% of numbers from it and again rearrange it using indices !

    Problem :

    How to arrange a elements of vector a[i] where i is = to 100, in random manner then chop...
    See more | Go to post

  • akinidu
    replied to Simple SIn Curve
    in C
    Oh its fine i corrected this code but still i am not able to figure it out how can i chop of 30% of values from this curve randomly....... ........i wabt to use rand not srand as i am looking for chopping 5% fst then 10%..slowly slowly 50%
    See more | Go to post

    Leave a comment:


  • akinidu
    started a topic Simple SIn Curve
    in C

    Simple SIn Curve

    I just move from Matlab to C ;;;;;

    I am trying to plot a Simple sin curve in C
    Code:
     
    
    #include <math.h>
    #include <stdio.h>
    
    #define PI 3.1415926535897932384626433832795l
    
    int main()
    {
      const float dt = .001;
      int i, n ;
      float  t,t1, y;
      t=0.0;
      n=20;
      printf(" i             t                   y \n");
    ...
    See more | Go to post
No activity results to display
Show More
Working...