User Profile

Collapse

Profile Sidebar

Collapse
pntkiran
pntkiran
Last Activity: Sep 22 '07, 09:23 AM
Joined: Jun 2 '07
Location: India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pntkiran
    replied to How to debug the exec process in gdb?
    Hi Bibek4u,
    I am not sure but You can try the strace command.

    $starce ./outputfile
    likewise your source file is tmp.cpp and output file is tmp on current directory.
    $strace ./tmp

    The output of strace command will help you.
    Cheers...
    See more | Go to post

    Leave a comment:


  • pntkiran
    replied to new classname() showing error
    in C
    Hi Diwakar,

    you are using forward declaration, So can't access derived class function through base class object(remove getobject function), modify virtual void paint() function ..(remove =0) and assign k = new derived ();.

    You will get the result.
    Cheers....
    See more | Go to post

    Leave a comment:


  • pntkiran
    replied to Converting IP Address to long int with strtok()
    in C
    Hi ,
    Sample code to convert ip address from string to Long. But for better solution try to use the in built function.

    Code snipped - please refrain from spoonfeeding.

    Regards
    Kin Parmar
    See more | Go to post

    Leave a comment:


  • pntkiran
    replied to Macro problem
    in C
    Hi rag84dec,
    Sample code for your question.
    That will solve your problem.

    Code:
    #define UNREL
    #include "xyz.h"
    #include <iostream>
    using namespace std;
    int main() {
    
    cout << PURPOSE<<endl;
    }
    Regards,
    Kiran Parmar...
    See more | Go to post

    Leave a comment:


  • pntkiran
    started a topic Linked lists vs. arrays in C++
    in C

    Linked lists vs. arrays in C++

    Hi All,

    Wat is the Basic difference Between Linked lists and Arrays in C++.

    Please , Explain with example,
    So, It's help other member too.

    Regards,
    Kiran Parmar
    See more | Go to post

  • pntkiran
    replied to Help with Reading files
    in C
    Hi flavourofbru,
    You find your solution
    here

    Kiran Parmar...
    See more | Go to post

    Leave a comment:


  • pntkiran
    replied to Porting problem...
    in C
    Raghu is right , But you have to change your code if it's compiler specific . Likewise , CC and Gcc Compiler in Linux . You find some changes in Input / Output stream , dynamically handling char array, and basic data type .

    Regards,
    Kiran Parmar...
    See more | Go to post

    Leave a comment:


  • pntkiran
    replied to byte to bit & bit to byte
    in C
    You want to read character from file ..mean you read "c" , then u want to convert into binary. " 1100011 " and then want to store it into int binary[8] = { 1,1,0,0,0,1,1} ; and then want to write binary data into other file.

    and then after u want to do reverse of that ...Wrong then correct me ..

    .
    Kiran Parmar...
    See more | Go to post

    Leave a comment:


  • pntkiran
    started a topic Http POST Method

    Http POST Method

    Hi all,
    I am implementing a http client in c++. I want to write a method to send the POST request to server. How will i do that?
    what is the format for the request to server send by POST method?
    what is the format for the response from server for the POST method?
    What is the basic difference in the methods PUT and POST while sending the message body in http request?

    Please explain with a psuedo code....
    See more | Go to post

  • Problem in identifying HTTP request field for enoded type (base64 or binary)

    Hi all,

    I parse HTTP request(using post method) coming from client.file can be either of binary or base64 encoded.I need to process them differently for each case.
    (if(binary type)
    call method1();
    else
    call decode();
    // and then
    call method1()))
    How will I come to know which kind of encoding method is used at client side from header?Is there any...
    See more | Go to post

  • pntkiran
    replied to Help....help...help....
    in C
    HI .

    you want to get the source code of c++ compiler or c++ example code ?...
    See more | Go to post

    Leave a comment:


  • pntkiran
    started a topic Getting Started with PHP Hosting on a Linux Server
    in PHP

    Getting Started with PHP Hosting on a Linux Server

    i have on project in php. i want to run that project on linux machine.

    so to execute that project which steps required.

    is there any need to configure httpd.conf file if then tell me all step required to run project with example.


    thanks in advance.
    See more | Go to post

  • I want to search word form string and then replace that word with other word....
    See more | Go to post

    Leave a comment:


  • I want to find out word from string and replace with new word.

    like wise, I have string " Great People here" from that replace "People" and put "Man".

    I write simple code here :-
    but need help :-

    [code=c]char* str = "this is string";
    char* pattern1 = "is";
    char* pattern2 = "was";

    int slen = strlen(str);...
    See more | Go to post
    Last edited by AdrianH; Jun 2 '07, 12:55 PM. Reason: Please use [code=c][/code] tags for improved readability.

    Leave a comment:


  • I want to write a code which replace words from string without use of string function

    HI All.

    I want to write a code which replace words from string.without use of string function

    Example str = "This is string" remove "is" from string and replace with "was".
    so, finally str = "This was string".

    Void replace ( char * str , char * pattern1, char * pattern2).

    Thanks in advance.

    Kin Parmar.
    See more | Go to post
No activity results to display
Show More
Working...