Search:

Type: Posts; User: phptech

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,561

    how?

    how do initialize and use an array of char pointers?
  2. Replies
    8
    Views
    1,561

    thank you

    ok, i'll try that. thank you guys!!!
  3. Replies
    8
    Views
    1,561

    in fact....

    well, i am a little confused here, but what i really want is:

    i have a database and a column from which i will take the fields values and put them all in an array.

    i already know how to take a...
  4. Replies
    8
    Views
    1,561

    char or string array

    hi, to you all

    i am having problem on this:

    how do i initialize a char array, so i'll be able to put words in it at a runtime?

    does anyone have an example of how arrays of char or strings...
  5. Thread: floats

    by phptech
    Replies
    6
    Views
    1,484

    not really...

    Not really like that....i`ve made that (2 questions of the exact same topic) just because i thought the other one was old (i posted it on the morning), and i thought the most actual were read first....
  6. Thread: floats

    by phptech
    Replies
    6
    Views
    1,484

    floats again

    Could someone help me?

    Imagine that i have the case:

    int a = 2;

    int b = 2;

    int c;
  7. Thread: floats

    by phptech
    Replies
    6
    Views
    1,484

    floats

    Please...

    is this sentence right?
    whats wrong here?

    i have 2 floats, and i want to operate, like an exponencial, or
    float 1 elevated to float2.

    example:
  8. Thread: weird...

    by phptech
    Replies
    1
    Views
    970

    THANX

    thanx a lot!!!
    you`re a great friend!
  9. Thread: weird...

    by phptech
    Replies
    1
    Views
    970

    weird...

    Please, how do i compare two char strings?

    i`m trying the following way, but it is not working,

    char1 = "mar"

    char2 = "mar"

    if (char1==char2) {
    do the routine
  10. Thread: better...

    by phptech
    Replies
    2
    Views
    1,126

    sorry...

    sorry, but which is the library that contains the strtok() function?
  11. Thread: better...

    by phptech
    Replies
    2
    Views
    1,126

    ok, but

    ok, but i think its not really like that what i want to make here. the fact is that i want to insert a phrase in a loop, and every time it finds a space caracter in the phrase, i`d like it to take...
  12. Thread: better...

    by phptech
    Replies
    2
    Views
    1,126

    better...

    please: how can i, as example, take the n first letters from a char variable, like:

    char[30]= "marcelo";

    i want the 5 first ones in a new variable like:

    char[5] = 5 first ones , so,...
  13. Replies
    3
    Views
    1,230

    just to complete

    just to complete:
    the string1 and string2 will be char* ok?:confused:
  14. Replies
    3
    Views
    1,230

    how to divide a char?

    Hi! I`m beginning on C programming, and i have the following wuestion: Imagine that i have this:

    char* = "make a better world today";

    and i want to store each word in a diferent string, like:
    ...
  15. Replies
    2
    Views
    1,049

    whats the difference?

    please, whats the difference between

    char* name;

    and

    char name;

    thanx!
  16. Replies
    1
    Views
    977

    what's wrong here?

    Please, i cant find the mistake here:


    char dec = "10.45";

    float numb;

    numb = (float)dec;

    numb = numb/2;
  17. Thread: conversion

    by phptech
    Replies
    10
    Views
    1,331

    ok, quzah, but....

    ok, quzah, thanks for giving me that link of ANSI...

    but i still didnt find any function that maskes the float->char conversion. teh have there the gcvt(), ecvt() and fcvt() saying that they`re...
  18. Thread: conversion

    by phptech
    Replies
    10
    Views
    1,331

    conversion

    Hi everybody!

    I am beginning on c-programming, and i need to have some questions answered (please!)

    i want to make some string conversions, like

    int to char
    char to int
    float to char
    char...
Results 1 to 18 of 19