Search:

Type: Posts; User: nightingale

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: string

    by nightingale
    Replies
    4
    Views
    1,031

    i've changed it but still it isn't working... ...

    i've changed it but still it isn't working...






    k=0;
    while (i>=0 && *(str+i)!='\0')
    {
  2. Thread: palindrome

    by nightingale
    Replies
    2
    Views
    1,706

    palindrome

    i've been trying to make this function work... but to no avail :(





    pal (int *str)
    {
    int i=0,k,flag;
  3. Replies
    12
    Views
    3,142

    The way i view it: int i; /*...

    The way i view it:





    int i; /* declaration */
    int i = 0; /* declaration and initialization */
    i = 0; /* assigning a value to i */
  4. Thread: string

    by nightingale
    Replies
    4
    Views
    1,031

    My version is not working. that's why i asked for...

    My version is not working. that's why i asked for another version.



    #include "stdio.h"
    #include "conio.h"

    #define N 30

    main()
  5. Replies
    10
    Views
    7,039

    The foll prg will look like this * * * * * *...

    The foll prg will look like this

    *
    * *
    * * *
    * * * *

    u can use it n make the necessary modifications
  6. Thread: ascii

    by nightingale
    Replies
    4
    Views
    1,402

    thx a lot to all of u for ur help

    thx a lot to all of u for ur help
  7. Thread: ascii

    by nightingale
    Replies
    4
    Views
    1,402

    Can't understand :( i don't wanna...

    Can't understand :(





    i don't wanna use toupper coz i haven't used it before n hence i should not/ can't use it.
  8. Replies
    16
    Views
    2,479

    Thx Salem. got another thing i don't quite...

    Thx Salem. got another thing i don't quite understand



    what does argc and *argv[] means n what do they do.
  9. Thread: ascii

    by nightingale
    Replies
    4
    Views
    1,402

    i've seen in a FAQ, they've used toupper to do...

    i've seen in a FAQ, they've used toupper to do it. i don't want to use toupper. i just want a simple way to do it. thx
  10. Thread: ascii

    by nightingale
    Replies
    4
    Views
    1,402

    ascii

    Write a program to read a character and print it in reverse case.

    Do we have to use ascii code in this question? is there another way of doing it without using ascii?
  11. Thread: string

    by nightingale
    Replies
    4
    Views
    1,031

    string

    Got another prg: write a program to concatenate 2 strings. Apart from usin strcat, is there another simple way of doing it?
  12. Thread: matrix

    by nightingale
    Replies
    1
    Views
    1,028

    matrix

    Got a program to multiply 2 matrices. Below is my source code:





    #include "stdio.h"
    #include "conio.h"

    void main()
  13. Replies
    16
    Views
    2,479

    Thx. i've came across smething else int...

    Thx. i've came across smething else

    int main(void)


    What's this?
  14. Replies
    16
    Views
    2,479

    Difference in initialising main

    What’s the difference between:
    main()
    int main()
    void main()


    is there another way of initializing main?

    Thx :)
  15. Thread: urgent

    by nightingale
    Replies
    8
    Views
    1,793

    Money? n Salem, thanks a lot. Salem, sry for...

    Money? n Salem, thanks a lot. Salem, sry for using "urgent". it was urgent for me...

    if anyone else got any suggestion on this topic, plz don't hesitate to post your reply. thanks;)
  16. Thread: comments

    by nightingale
    Replies
    32
    Views
    4,720

    prime

    :) another question: i've written a prg to detect prime number. well, using VC, the largest number i can detect is a 11digit one. using C, well, it's only a 10 digit number. i want to detect at...
  17. Thread: urgent

    by nightingale
    Replies
    8
    Views
    1,793

    urgent

    Can anyone help me on this one plz
    I can’t understand how to get the result


    #Define product(x) (x*x)
    main()
    {
    int i=3, j, k;
    j = product (i++);
    k= product (++i);
  18. Thread: comments

    by nightingale
    Replies
    32
    Views
    4,720

    lol. that's what i meant too.;)

    lol. that's what i meant too.;)
  19. Thread: comments

    by nightingale
    Replies
    32
    Views
    4,720

    thx

    thx but don't think i'll use C anymore coz exams will end in 2 weeks time and next semester we're doing C++. ;) think it's much better than C.:)
  20. Thread: comments

    by nightingale
    Replies
    32
    Views
    4,720

    in fact we're talking about C. the old version....

    in fact we're talking about C. the old version. well, we've started with it at uni and next semester we're doing C++. :)
  21. Thread: comments

    by nightingale
    Replies
    32
    Views
    4,720

    hey, i thought // was used in C++ and not in C. ...

    hey, i thought // was used in C++ and not in C. i don't think i can use // in C. well, that's what i learnt!

    Once more, thx to all of you. i don't know how you find time to help us but u're...
  22. Thread: comments

    by nightingale
    Replies
    32
    Views
    4,720

    At uni, my lecturer makes us comment on every bit...

    At uni, my lecturer makes us comment on every bit of code. i think he's doing this coz there's many students who've never done programming before. i just love programming!!! (though i get some...
  23. Thread: comments

    by nightingale
    Replies
    32
    Views
    4,720

    Why do u say : "another :p thread..."? i...

    Why do u say : "another :p thread..."?

    i just wanted to know what u thought was better ;) i'm still a beginner and i want to know from pros like u.
  24. Thread: comments

    by nightingale
    Replies
    32
    Views
    4,720

    comments

    According to you, how do you indent your code and comments? how do you write comments?

    e.g

    /*Variable declaration*/
    int i;


    or
  25. Replies
    10
    Views
    2,032

    Btw, i've noticed some of u have really cute...

    Btw, i've noticed some of u have really cute avatars.
Results 1 to 25 of 30
Page 1 of 2 1 2