Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~21.7K People Reached
Favorite Forums
Favorite Tags
c++ x 44
c x 26
Member Avatar for johnray31

Hi guys, can anybody explain to me with a example why we people emphasize to pass double pointer in a function instead a single pointer when we want to fill some variable inside that function. or what are thge advantage of double pointers in c over single pointer?

Member Avatar for Bharat_1
0
16K
Member Avatar for johnray31

Hello friends, I was trying to brush my programing skill and was not able to get answer of "why array size is different inside function solution1?" Inside main, size of array is 11 but inside solution1 its size is just 2. Here is my code... #include <iostream> #include <stdio.h> using …

Member Avatar for johnray31
0
171
Member Avatar for johnray31

hello friends, could you guide me how i can write my own version of malloc and free function

Member Avatar for np complete
0
1K
Member Avatar for johnray31

Hi , I need to parse a file that contain linux interface information. My file text is like below [QUOTE] Interface ge1 Hardware is Ethernet Current HW addr: 00a1.2599.0003 Physical:00a1.2599.0003 Description: BC3 - Slot 3 (Phys Slot 7) index 5001 metric 1 mtu 1500 duplex-full arp ageing timeout 0 <BROADCAST,MULTICAST> …

Member Avatar for dwks
0
129
Member Avatar for johnray31

Hi guys, I was trying to use inline function and i put inline function definition in .cpp file by using inline keyword like below.. [CODE] class SomeApp { private: SomeApp() { } public: returnType_t SomeState(); }; inline returnType_t SomeApp::SomeState() { code lne 1... } I was trying to access SomeState …

Member Avatar for Fbody
0
198
Member Avatar for johnray31
Member Avatar for johnray31

Hello Guys, I am new to C++ , I was trying to create a map key that contain multiple attribute and i write my own compare function. But i am getting strange output with that may be my compare conditions are not right? I write code as below [CODE] #include …

Member Avatar for mitrmkar
1
123
Member Avatar for johnray31

Hello guys, I want to use structure as a map key , is it possible? Or is there any work around in c++ to do this or am i doing something wrong? I was trying to do this. [CODE] #include <iostream> #include <map> #include<stdint.h> #include "stdio.h" using namespace std; struct …

Member Avatar for Narue
0
100
Member Avatar for johnray31

hello guys here is a problem when i was written a simple demonstrative linklist program i got the[B] general protection error[/B] ([B]**one more question i need ur guide i have the turbo c++ compiler but this does not support when i write #include <iostream> using namespace std; plz tell me …

Member Avatar for vibhu1
0
227
Member Avatar for johnray31

Hi guys!! I am wondering how below given program is working. in function func1 how return (void *)y working. [CODE] #include<stdio.h> void * func1() { int y; y = 10; return (void *)y; } int main() { void *x = 0x00; x = func1(); if(x == NULL) { printf("error\n"); } …

Member Avatar for johnray31
0
137
Member Avatar for johnray31

Hi guys, i am quite newbie to c++. Is there any way to know object class. I have a object and i want to know the exact class name for that.

Member Avatar for mvmalderen
0
122
Member Avatar for johnray31

Hi guys, I need a solution. I have a uint32_t variable say var1. I need to store current time value in this variable, and somewhere in my code i need that time in proper timing formet i.e hour minute and seconds . is this possible? Any other solution for storing …

Member Avatar for johnray31
0
169
Member Avatar for johnray31

Friends, I was wondering if i could have a map of list . I was trying like this ..but i think i can't do like this. Any suggestion to do things like that or any alternative solution with help of c++. [CODE] #include <iostream> #include <list> #include <map> using namespace …

Member Avatar for nucleon
0
94
Member Avatar for johnray31

Friends, when i try to compile this program i am geting this error!! ListMemoryFree.cpp: In member function 'void example::add(LinkSlcMap*)': ListMemoryFree.cpp:41: error: 'm_link' was not declared in this scope but to me it seems fine.:) plz point out my mistake!! [CODE] #include <iostream> #include <list> using namespace std; struct LinkSlcMap { …

Member Avatar for johnray31
0
74
Member Avatar for johnray31

Hi guys, I am trying to learn this fantastic language. My question is Does Structure in c++ contain default constructure and destructure. And when we allocate memory for structure by new operator like Struct special { int x; int y; }; special = new special; Then if special going to …

Member Avatar for Comatose
0
99
Member Avatar for johnray31

Hi guys, when i am compile this program it gives error. i am wondering why it is so.. plz help me. thankx [CODE] #include <iostream> #include <map> #include <string> using namespace std; class ConfigPath { public: ConfigPath() { m_name = "VIPIN DAHIYA"; } ~ConfigPath(){} private: string m_name; }; int main() …

Member Avatar for johnray31
0
180
Member Avatar for johnray31

Hi guys , i am very new to this language so can you tell me which style below function is showing in C++. [CODE] SmeConfigRnc::SmeConfigRnc(uint32_t rncId, uint16_t pc) : m_RncId(rncId), m_Pc(pc) { //Allocate userId m_UserId = SmeConfigMgr::GetInstance()->GetFromFreeUserIdPool(); printf("Allocated for RNC, User Id=%d\n", m_UserId); //Allocate mtpSap m_MtpSapId = SmeConfigMgr::GetInstance()->GetFromFreeMtpSapIdPool(); printf("Allocated for …

Member Avatar for JasonHippy
0
302
Member Avatar for johnray31

Hi guys .. 1) is there something like that we have a limit upto which we can create a pointer to pointer to pointer.. i.e int ***********P... like this to which extent we can do this 2) is this allowed if in file one i declare a global variable int …

Member Avatar for Narue
0
276
Member Avatar for johnray31

I am just trying to explore c and i was wonder what is reason behind ... segmentation fault.. but second function is workiing .. can someone explain me reason [code=c] void myfunc1(char *t) { t = t+1; t = 'l'; //it gives segmentation fault ? why } void myfunc2(char *s) …

Member Avatar for ArkM
0
122
Member Avatar for johnray31

Hello friends, Could someone tell me if i want to read a particular text from a file that exist in each line of file. How could i do this? My text is like this: poll mail.telesys.com protocol POP3 user [email]vipin@gmail.com[/email] password abcd mda "cat > /export/home/m7istp/imcp/bin/ml201.txt now i want to …

Member Avatar for Duoas
0
128
Member Avatar for johnray31

HI ALL, i have written some code of line as [code] typedef struct _nodeList { unsigned int pointCode; struct NodeList *next; }NodeList; typedef unsigned int PointCode ; int right_configuration(NodeList *head,PointCode x, PointCode y) { NodeList *node1; NodeList *node = head; int k =0; unsigned int NodePoint[100]; node1 = (NodeList *)malloc(sizeof(NodeList)); …

Member Avatar for johnray31
0
97
Member Avatar for johnray31

Hi All, can anybody provide me recursive implementation of depth first search.. one more question .. is it possible to code any problem with recursion without using global variable.. i just need general views about good recursive program.. thankx

Member Avatar for Hamrick
0
106
Member Avatar for johnray31

hello friends, as i know header file contain the declaration then in which file they contain implementation/initialization and where these files are put in turbo c++ compiler i am able to see header files declaration but where is implementaion/initialization file is they are put in same directory with same name …

Member Avatar for johnray31
0
193
Member Avatar for johnray31

hello friends could anybody give me idea how i can find a loop in simple linked list

Member Avatar for dude543
0
159
Member Avatar for johnray31

could you please tell me what is wrong with this code it is compiling but a execution error occured i am unable to find that am using devc++ compiler [code] #include<stdio.h> #include<conio.h> #include<stdlib.h> typedef struct link { int value; struct link * lchild; struct link *rchild; }node; node *head =NULL; …

Member Avatar for johnray31
0
139
Member Avatar for johnray31

hello guys, i have latest version of dev c++ compiler ..is there any best compiler that is specifically made for c language i need it badly and required ur comment plz give me if anybody knows .....

Member Avatar for server_crash
0
530
Member Avatar for johnray31

Hello friends, i am doing programs in c++....and think that my progress is good .. but here is very serious problem with me ..i need a c++ graphics simulation source code for generating huffman tree....plz if you peple know any link for source code or have that program ....let me …

Member Avatar for orko
0
83
Member Avatar for johnray31

could anybody tell me that how could i read (i.e scan) a image with the help of c program i want to scan a image tht is taken with the help of a webcam (for scaning i want to take the pixels in an array and thn want to manipulate …

Member Avatar for Ancient Dragon
0
52
Member Avatar for johnray31

when i compile this program [CODE]main() { struct emp { char name[20]; float sal; }; struct emp e[10]; int i; for(i=0; i<=9; i++) scanf("%s %f", e[i].name, &e[i].sal); }[/CODE] it gives the Floating point formats not linked but when i run this [CODE]main() { float x; scanf("%f" , x); }[/CODE]<< moderator …

Member Avatar for johnray31
0
450
Member Avatar for johnray31

[COLOR=Green] hello experts i am new to this programming field plz tell me how can i reverse a string without using any extra space . if someone could provide code it ll be great help for me thankx [/COLOR]

Member Avatar for Dave Sinkula
0
236