Search:

Type: Posts; User: arya6000

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Here is what I coded it and it prints everything...

    Here is what I coded it and it prints everything upto the decimal point.




    void putFloat(double n){
    double x;
    int r, second;
    x = log10(n);
    r = n/1000;
  2. I'm having some trouble making this work. Any one...

    I'm having some trouble making this work. Any one want to give this a try?
  3. what do you mean when you say "I divide the...

    what do you mean when you say "I divide the number by 10^3 and round down, which is 6." you divide 3 by 1000 ?
  4. I can print digits with putchar but how to print floats with put char?

    Hello

    So the function below can print any int using putchar. But I can't figure out how to print floats using putchar. Any ideas on this?

    Regards!


    void putDigit(int n){
    int pow = 1;
    ...
  5. Can you explain your hint more please? I'm having...

    Can you explain your hint more please? I'm having a hard time understanding it.
  6. Casting an int to char but prints the ascii???

    Hello

    I casted an int to char and for the number 33 it prints '!' here is the code



    int digit;
    char cDigit;

    digit = 33;
  7. Thread: IMAP support?

    by arya6000
    Replies
    1
    Views
    1,307

    IMAP support?

    Hi

    Is there anyway to write code in c that would connect to a imap server and be able to send and receive email from? if so which library is needed? and can you give a reference page for it?
    ...
  8. Need help with a dynamically allocated object inside another class

    Hi


    i have wrote a program that creates objects of another class in the class it self, and I want to be able to save data to the objects I have created, from the class that created them. How can...
  9. Replies
    2
    Views
    935

    Opening a file with a name in a variable

    Hi

    This is a constructor that receives a file name



    Bank::Bank(char s[])
    {
  10. Replies
    2
    Views
    1,344

    Help with copy constructors

    Hi

    I have written a small c++ program that uses Dynamic memory allocation to store strings. I have to create a copy constructor so it does proper copying, but I can't fully understand copy...
  11. Replies
    15
    Views
    4,024

    Thanks for all of your help, it is working now

    Thanks for all of your help, it is working now
  12. Replies
    15
    Views
    4,024

    I don't mean I tried different kinds of loops I...

    I don't mean I tried different kinds of loops I just mean different methods with loops
  13. Replies
    15
    Views
    4,024

    Storing names and email address.

    Hi

    I have tried to make this work, but I can't figure out the logic, I want to write the function so that names and email addressed like the following are passed to it and it would put the name in...
  14. Replies
    12
    Views
    6,071

    Just very simple ones, so I can start...

    Just very simple ones, so I can start understanding game programming for example very simple opengl games
  15. Replies
    12
    Views
    6,071

    C++ game programming on Linux?

    Hi,

    I was wondering if anyone can give me some information on how I can find information or tutorials to start learning game programming on linux? This is very interesting to me, so if you know...
  16. Can you tell me why I get this compile error?

    Hi

    I have wrote this test program for trying different things with c++ and when I pass a character array to a member function, the compiler complains.

    Here is the code:


    #include <stdio.h>...
  17. I think now I understand, first I have to copy...

    I think now I understand, first I have to copy the string into the data member than I can move the characters in the string.
  18. But I'm trying to move characters in "char c[]"...

    But I'm trying to move characters in "char c[]" which is a character array, would you clarify this?
  19. Why am I getting segmentation fault on this?

    Hi


    I keep getting segmentation fault when the program gets to



    c[i] = c[i + 1];
  20. Replies
    1
    Views
    1,144

    moving charecter location in array

    Hello

    Lets say if I have an array with the following characters I'll use comma for each block of array:

    " ' ','t','e','s','t' "

    as you can see the first block contains a space, how can I...
  21. copying the first 10 characters to an array?

    I have been trying to figure this out fir hours and I can't.


    I'm trying to write code that if the user enters a string longer than 10 characters, only the first 10 characters are stored in an...
  22. Replies
    8
    Views
    1,849

    Thanks, now I can start learning it :D Can you...

    Thanks, now I can start learning it :D

    Can you also tell me what I need to create GUI for windows?
  23. Replies
    8
    Views
    1,849

    Generate graphics?

    Hello

    I've finished reading my school's C book which covered arrays, functions, pointers and files and I've started reading the C++ book for next semester and its mostly about OOP, which made me...
  24. Replies
    9
    Views
    1,422

    Thanks, now that I see it it looks so simple

    Thanks, now that I see it it looks so simple
  25. Replies
    9
    Views
    1,422

    I can't figure it out

    I can't figure it out
Results 1 to 25 of 49
Page 1 of 2 1 2