Search:

Type: Posts; User: Saeid87

Search: Search took 0.01 seconds.

  1. Read first line of a file and store in a variable

    Dear friends,

    I have a file named "in.txt" with following data:

    10
    20
    30
    40
  2. Replies
    5
    Views
    1,044

    wow can you please break it down a little bit? I...

    wow can you please break it down a little bit? I could not get the idea :( maybe a little example please
  3. Replies
    5
    Views
    1,044

    Edited the title..thanks for informing

    Edited the title..thanks for informing
  4. Replies
    5
    Views
    1,044

    Counting reapetance of a characters in a string

    Dear Friends, is there a premade function to count reapetance of a characters in a string or an array in C? if not what is your suggested approach to do it?

    for example:

    the input is: ARIZONA...
  5. Replies
    6
    Views
    5,408

    Counting number of digits in a variable

    Dear friends,

    I have an assignment to convert from binary to decimal... I know how to do it but only thing is I need to know how many digits are stored in my variable, for example :

    110101
    ...
  6. Replies
    2
    Views
    1,665

    oh Sorry I found the problem already. sorry for...

    oh Sorry I found the problem already. sorry for bothering.

    I also edited the code in my first post aswell so it maybe useful for somone.
  7. Replies
    2
    Views
    1,665

    Help for debugging a program

    Dear friends,

    I tried to do my homework and came to some ideas and I wrote a program. but it is not working properly. would be nice if you can check it and give some comments.

    the orginal...
  8. I managed to write this program, I post here...

    I managed to write this program, I post here maybe can help others.



    /* C PROGRAMING ASSIGNEMENT 4.10 */
    /* Saeid Yazdani */


    //Includes
    #include <stdio.h>
  9. Replies
    5
    Views
    1,458

    Well guys I think I did it :D double...

    Well guys I think I did it :D


    double R_Parallel(double fUin, double fRo) {
    // Internal variables for function
    int nHelp, nCount = 0; // Help and Counter
    double fPRE; //Pralaller...
  10. Replies
    5
    Views
    1,458

    Thanks mate, I took a while and read your post...

    Thanks mate, I took a while and read your post carefully. you are absloutly right about my way of questioning.

    I tried your first code to get the idea, it works prefectly. Now I try to state the...
  11. Replies
    5
    Views
    1,458

    true, but with this function it will stop after...

    true, but with this function it will stop after enterin just 1 value, I want it to contine untill a negative value is entered.
  12. Replies
    5
    Views
    1,458

    Help with making a function

    Dear friends,

    I am trying to make a function to calculate total resistance in of parallel reistors, this function should keep asking for entering the resistors until a negative number is entered....
  13. Hi, the structure should is like this, after...

    Hi,

    the structure should is like this, after running the program it will ask for two variables which are a Voltage and a Resistor:

    input Uin and Ro =>

    Then program starts to ask for parallel...
  14. How to update or alter output realtime bsaed on the input in C

    Dear friends,

    I have a school assignement in C, which asks for doing some parallel and series resistant calculation, I know how to do that but my problem is that the assignment asked to update the...
Results 1 to 14 of 14