Search:

Type: Posts; User: s.sidak

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,164

    static varibales simple qns

    Hi all,

    I have a doubt that id like to clear on

    say in a program ur given something like this


    int x=1;
    int main() {
  2. Replies
    1
    Views
    642

    Writing onto a file errors

    Hi,

    I am trying to write a code to print the contents of a file onto another file. However it prints out only "y" onto the second file.

    Here is the code. All help is greatly appreciated.

    ...
  3. Replies
    4
    Views
    891

    Sorry, I cannot use strlen Is there any other...

    Sorry, I cannot use strlen

    Is there any other way to find the length without the strlen function?


    Thanks
  4. Replies
    4
    Views
    891

    Urgent help in finding the length

    Hello all,

    I need help with finding the length of the string input by the user.

    It prints out 100 each time.

    Also i cannot use the strlen function

    Also is there a way that each of...
  5. Thread: Bitcount code

    by s.sidak
    Replies
    6
    Views
    2,727

    Well....Thanks for that :p I dont quite...

    Well....Thanks for that :p

    I dont quite understand why it is giving me that output and what i should do to modify it.

    Thank You

    Also i am new to programming, so my knowledge is a bit...
  6. Thread: Bitcount code

    by s.sidak
    Replies
    6
    Views
    2,727

    Ah ha ... That makes sense now. Thanks alot...

    Ah ha ...

    That makes sense now. Thanks alot for that.

    Also is this the correct output?

    Enter nums:
    1001
    The total count is 7
  7. Thread: Bitcount code

    by s.sidak
    Replies
    6
    Views
    2,727

    Bitcount code

    Hello,

    I am trting to write a program that accepts numbers and count the number of bits in the given array of numbers. However my output is incorrect, I get the following

    Enter nums:
    10101010...
  8. Replies
    7
    Views
    1,193

    Hi all Thank You very much for ur replies....

    Hi all

    Thank You very much for ur replies. Everything is working now, all thanks to your help and by showing me the examples.

    I was able to understand the two codes given.

    Thanks for your...
  9. Replies
    7
    Views
    1,193

    Strings - need digits

    Hi

    I am trying to write a code that accpets a string of characters. I need to count the number of digits in that string and return the counted value.

    This is my code



    Also how do i...
  10. Replies
    17
    Views
    2,106

    Im sorry about that. Its working fine now....

    Im sorry about that.

    Its working fine now. Thanks for your help
  11. Replies
    17
    Views
    2,106

    Actually the numbers are in the middle so its...

    Actually the numbers are in the middle

    so its like

    Name 10 points
    Nametwo 20 points

    etc...
    '
  12. Replies
    17
    Views
    2,106

    Hi Ok. thanks alot for that. The output for...

    Hi

    Ok. thanks alot for that.

    The output for some reason is a bit wierd.

    This is what i got"

    John Scores: 134513326 0 0 Average: 44837775
    ñ· Scores: 1 2140...
  13. Replies
    17
    Views
    2,106

    ok for the file there will be 3 marks - just like...

    ok for the file there will be 3 marks - just like that format.

    We are supposed to read that file - also there will only be 3 names not any more than that. Then we have to find the average of...
  14. Replies
    17
    Views
    2,106

    heres wha the file contains: Name one 10...

    heres wha the file contains:

    Name one 10 points
    Name two 20 points
    Name three 30 points

    thats all it has- i am supposed to just caluclate the result of those 3 numbers

    Thanks
  15. Replies
    17
    Views
    2,106

    Yes I have made that change. However, i still...

    Yes

    I have made that change. However, i still get the random answer.
    Thanks
  16. Replies
    17
    Views
    2,106

    Hi I have made those changes. Thanks for that,...

    Hi

    I have made those changes. Thanks for that, however i get a random value... which i cant figure out why.

    So for the avg value i cant seem to get the right answer when priting it out.
    ...
  17. Replies
    17
    Views
    2,106

    Errors in reading a file

    Hi , i am trying to open a file which contains strings and numbers. I have to extract the numbers and find their average. The code isnt working, it seg faults when i run it with a text file.

    All...
Results 1 to 17 of 17