Search:

Type: Posts; User: velid

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    2,781

    i think getline method of istream class(e.g. cin...

    i think getline method of istream class(e.g. cin is instantiation of this class) would be useful for such issue.

    example from cplusplus.com


    // istream getline
    #include <iostream>
    using...
  2. Replies
    5
    Views
    1,556

    #include #include...

    #include<stdio.h>
    #include<conio.h>
    #include<stdlib.h>
    #define size 10
    void main()
    {
    int i,s;
    char **names;
    printf("Enter Size Of Array..\n");
    scanf("%d",&s);
  3. Replies
    8
    Views
    37,611

    Surely, you can use strncmp to do that. eg....

    Surely, you can use strncmp to do that.
    eg.
    strncmp (name1, name2,1)

    it returns 0 zero if they are equal to each other, or less than zero if first one less than second, or greater than zero if...
  4. Replies
    10
    Views
    1,512

    Prefer using "/* */" for comments instead of "//"...

    Prefer using "/* */" for comments instead of "//" in ANSI standart it is not acceptable.
  5. Replies
    32
    Views
    15,548

    I don't understand exactly your final problem. ...

    I don't understand exactly your final problem.

    Additional suggestion;

    If you need to use such a pattern as,


    if (c==1)
    { C-Statements }
    else if (c==2)
Results 1 to 5 of 5