User Profile

Collapse

Profile Sidebar

Collapse
seeminsuleri
seeminsuleri
Last Activity: Nov 8 '06, 07:57 AM
Joined: Nov 3 '06
Location: Lahore-Pakistan
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • seeminsuleri
    replied to whats the usermode and kernelmode
    in C
    hey there,
    I think you are not clear about the difference between User mode and kernel mode.
    Sometimes there are some instructions that update the values of some variable that is actually required by another process.
    Like I/O instrauctions, if a process wants to read a variable , say x, and another process updates the value of x, before the former can read it. Then the first process will never get the reuqired value. For this...
    See more | Go to post

    Leave a comment:


  • hey wendy try this website.
    http://www.java2s.com/Code/C/File/Writeoutfile.htm
    it is very useful for the work you are tring to do.
    Best Of Luck....
    See more | Go to post

    Leave a comment:


  • hey there,
    its a lengthy assignment. Why dont u mention what parts u would like to get help in :)...
    See more | Go to post

    Leave a comment:


  • seeminsuleri
    replied to Reversing digits
    in C
    Hi there,
    well i suppose that if you are learning arrays right now in your class then, the problem cannot be solved by using complex data structures like linked list.
    Have u done linked lists? So tell me so that i can help u with the solution.
    if not then there has to be an upper bound on the length of integer input.
    Do ask this from your teacher.
    Keep cool,
    See more | Go to post

    Leave a comment:


  • hey there,
    try the following code
    Code:
    #include<stdio.h>
    #include<conio.h>
    using namespace std;
    
    void main()
    {
    int x;
    cout<<"Enter value"<<endl;
    cin>>x;
    if(x<0)
    {
    cout<<"Number Negative"<<endl;
    }
    else
    {
    if(x>0)
    {
    cout<<"Number Positive"<<endl;
    ...
    See more | Go to post

    Leave a comment:


  • seeminsuleri
    replied to need your help, i'm waiting
    in C
    hey there,
    the first function would be something like the following code. but keep one thing in mind that the user will have to enter some ending value to denote the end of input and this has to be mentioned while taking the input from the user. This is called the Sentinel value. :)

    Code:
    #include <stdio.h>
    #include <conio.h>
    #include<math.h>
    using namespace std;
    ...
    See more | Go to post

    Leave a comment:


  • seeminsuleri
    replied to hi there, ca you help me please
    in C
    hey there,
    following is the C++ code for it. but there is one ambiguity in it. you have written the formula for calculating the Celcius as under:
    Celcius = 10 (depth) + 20 (Celsius temperature at depth in Km)
    But i dont get where will this "Celcius Tempertaure at Depth" Come from?
    will u take it from the user as well?because i think ur program is only taking depth as an input from the user!

    just...
    See more | Go to post

    Leave a comment:


  • seeminsuleri
    replied to Calculating File Size in C
    in C
    thanks for your help Paul,
    I was looking at a code

    fseek (pFile , 0 , SEEK_END);
    lSize = ftell (pFile);
    rewind (pFile);

    I didnt know these functions exist in C.
    I think they would do the job too....
    See more | Go to post

    Leave a comment:


  • seeminsuleri
    started a topic Calculating File Size in C
    in C

    Calculating File Size in C

    hello there,
    Can anyone plz guide me how to calculate the sise of a string present in an opened file.
    we already have the file descriptor, inputFile. but when i try to do

    begin=inputFile .tellg();
    inputFile.seekg (0,ios::end);
    end=inputFile.t ellg();
    size=end-begin;

    it doesnt work in C. It does work in C++ though.
    Can u plz give me some C alternative for the above.
    See more | Go to post
No activity results to display
Show More
Working...