User Profile

Collapse

Profile Sidebar

Collapse
mrtcnr
mrtcnr
Last Activity: Jan 10 '07, 06:55 PM
Joined: Oct 18 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mrtcnr
    replied to need help for randomizing numbers
    in C
    I think I defined gpa1 and gpa2 outside the loop. As you see I defined them just after int main(). The reason I calculate GPA several times is because I couldnt randomly generate decimal number. That's why I tried to generate randomly between 0-4 which i called as gp1 and then between 0-1 which i called as gpa2.. Finally I add gpa1 to gpa2 to get a decimal number like 2.54....
    See more | Go to post

    Leave a comment:


  • mrtcnr
    replied to need help for randomizing numbers
    in C
    I think my randomizing is ok but I have a problem with my for loop and I still cannot solve it....
    See more | Go to post

    Leave a comment:


  • mrtcnr
    started a topic need help for randomizing numbers
    in C

    need help for randomizing numbers

    Hi everyone! I have a problem with my code. At that program I am randomly creating ID NUMBER and then GPA. First I enter the number of records.And then create ID NUMBERS for students. Since then everything is OK. But I am having some problems when creating randomly GPA's between 0.00-4.00 . First i tried to create randomly GPA's but then i had some errors. So I tried something different. I randomly create gpa1 between 0-4 and then randomly create...
    See more | Go to post

  • mrtcnr
    started a topic vector template
    in C

    vector template

    Hi everyone
    This is my assignment.

    Assume you are given a large vector of records. Each record has two main fields, 7 digit ID_NUMBER and the REST as 73 byte long rest of the record. You are to sort these records in ascending order of ID_NUMBER, using all four sorting techniques.

    I am comfortable at using these 4 sorting techniques but for using them I have to create a vector of length NUMRECORDS in memory. And...
    See more | Go to post

  • mrtcnr
    started a topic problem after compiling successfully
    in C

    problem after compiling successfully

    I was using another compiler while I was programming in C language. But this year
    I started to program with C++. Now I am using Dev-C++ as a compiler but i am having some problems. After compiling the program successfully , when I want to run the programme, command prompt appears and then disappears immeditely which means I cannot input any values. How can I solve that problem?
    See more | Go to post

  • mrtcnr
    started a topic dynamic 2d array
    in C

    dynamic 2d array

    Hi everyone,

    I am new at programming. I was googling for how to create an 2d dynamic array. But I couldnt find what i want.

    I want to create an array which i will define during run time. For example i will say i want to input an array which is 2X3. But normally it should work for any size. And then i will input 6 numbers which are all unsorted. After compiling and running the program the numbers will be outputed in...
    See more | Go to post
No activity results to display
Show More
Working...