User Profile

Collapse

Profile Sidebar

Collapse
avinash6174
avinash6174
Last Activity: Nov 29 '07, 10:22 AM
Joined: Oct 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • avinash6174
    started a topic why the code is not working..
    in C

    why the code is not working..

    Code:
    #include <iostream>
    using namespace std;
    
    void getBitsFromStream( const char *const pData , const int offset, const int length , int *const value)
    {
    	 int tempOffset = offset;
    	 const char *pTempData = &pData[tempOffset/8];
    	 bool bitValue=0 ; 
    	 char bitMaskValue[] = {128 ,0x40 ,0x20 , 0x10 , 0x8 , 0x4 , 0x2 , 0x1};
    	 int  tempValue;
    	 int tempLength = length-1;
    ...
    See more | Go to post

  • avinash6174
    started a topic Manipulate char* to increment next offset value.
    in C

    Manipulate char* to increment next offset value.

    [CODE=cpp]

    #include <iostream>
    using namespace std;
    typedef char TUCHAR8;

    typedef signed char TINT8; /* Must force decl to be signed */
    typedef unsigned char TUINT8; /* Must force decl to be unsigned */

    typedef short TINT16; /* Decl will be signed as per std */
    typedef unsigned short TUINT16; /* Must force decl to be unsigned */

    typedef...
    See more | Go to post
    Last edited by Ganon11; Oct 24 '07, 12:13 PM. Reason: Please use the [CODE] tags provided.

  • avinash6174
    started a topic Code For seekg and seekp
    in C

    Code For seekg and seekp

    I need to know the code for seekg and seekp is implemented inside the complier..

    Thanks in advance ..
    See more | Go to post

  • avinash6174
    replied to how seekg and seekp is implemented
    in C
    Thanks for reply..
    I need the code of those functions.....
    See more | Go to post

    Leave a comment:


  • avinash6174
    started a topic how seekg and seekp is implemented
    in C

    how seekg and seekp is implemented

    Could any one tell how seekg and seekp are implemented...
    I have a stream of data.. through which I need to read from a particular position and particular length..
    the prototype of the function is

    getBits(char* stream , int offset , int length , void * value);
    I need to implement this function..so could I get something from the seekg so that its helpful for me in coding..

    Thanks in advance..
    See more | Go to post

  • I have copied the directory by cp -r olddirectory newdirectory... ..
    but still not working.......
    See more | Go to post

    Leave a comment:


  • avinash6174
    started a topic undefined reference to constructors and destructors
    in C

    undefined reference to constructors and destructors

    I could complie my code in one directory and the same piece of code in the other directory I couldnt complie the code..

    I am working on the same machine ..

    Its giving an eror saying as undefined reference to constructors and destructors.
    I have checked the permissions of the directory also ..both are same..

    complier I am using is g++
    and operating system is linux..

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