Search Results

Showing results 1 to 40 of 61
Search took 0.01 seconds.
Search: Posts Made By: johnray31
Forum: C Jul 2nd, 2009
Replies: 5
Views: 262
Posted By johnray31
Thanks Guys for your fantastic comments!!
Forum: C Jul 2nd, 2009
Replies: 5
Views: 262
Posted By johnray31
Thanks guys for your valuable comments!!!
Forum: C Jul 2nd, 2009
Replies: 5
Views: 262
Posted By johnray31
Hi guys!!

I am wondering how below given program is working. in function func1 how return (void *)y working.


#include<stdio.h>
void * func1()
{
int y;
y = 10;
Forum: C++ Jun 23rd, 2009
Replies: 5
Views: 403
Posted By johnray31
Thanks for your answer guys...
I have a state machine implemented in c++. I have base class pointer that points to different stats class object at run time. At some point i need to know through this...
Forum: C++ Jun 23rd, 2009
Replies: 5
Views: 403
Posted By 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.
Forum: C++ Apr 23rd, 2009
Replies: 9
Views: 936
Posted By johnray31
Thanks to all of you guys... giving me so many reply. It was really helpful.

Thanks
Forum: C++ Apr 22nd, 2009
Replies: 9
Views: 936
Posted By 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...
Forum: C++ Mar 21st, 2009
Replies: 1
Views: 601
Posted By 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...
Forum: C++ Mar 21st, 2009
Replies: 2
Views: 215
Posted By johnray31
Oh!!!
What the crap i am doing!! yes that is a very silly mistake.

Anyway thanks!! :)
Forum: C++ Mar 21st, 2009
Replies: 2
Views: 215
Posted By 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...
Forum: C++ Mar 7th, 2009
Replies: 1
Views: 325
Posted By 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...
Forum: C++ Mar 2nd, 2009
Replies: 4
Views: 353
Posted By johnray31
Thankx guys.

I got it . if i am using key value then to access value i have to get iterator.second
.That i was missing and yes i have to pass a pointer object it was a mistake.
Forum: C++ Mar 1st, 2009
Replies: 4
Views: 353
Posted By johnray31
Oh I am sorry guys .. that is a copy/paste mistake.

actually code is like that

#include <iostream>
#include <map>
#include <string>

using namespace std;
class ConfigPath
Forum: C++ Feb 28th, 2009
Replies: 4
Views: 353
Posted By johnray31
Hi guys,
when i am compile this program it gives error. i am wondering why it is so.. plz help me.
thankx


#include <iostream>
#include <map>
#include <string>

using...
Forum: C++ Jan 7th, 2009
Replies: 1
Views: 412
Posted By johnray31
Hi guys ,
i am very new to this language so can you tell me which style below function is showing in C++.

SmeConfigRnc::SmeConfigRnc(uint32_t rncId, uint16_t pc) : m_RncId(rncId), m_Pc(pc)
{ ...
Forum: C Nov 7th, 2008
Replies: 10
Views: 808
Posted By johnray31
Forum: C Nov 7th, 2008
Replies: 10
Views: 808
Posted By johnray31
What is the reason that compiler will not detect this error if it is not in single file?
Forum: C Nov 7th, 2008
Replies: 10
Views: 808
Posted By 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...
Forum: C Nov 7th, 2008
Replies: 11
Views: 891
Posted By johnray31
Sorry Guys this question was asked coz before C90 c does not support structure copy but after that it support. so i miss that.
But still my one question is there..

what is best for to avoid...
Forum: C Nov 6th, 2008
Replies: 11
Views: 891
Posted By johnray31
Thank you guys i got it !!!!!!!!!!!

I have one more question why can't we do as following in case of structures in C?

typedef struct _compare
{
int x;
char y;
char *str;...
Forum: C Nov 5th, 2008
Replies: 11
Views: 891
Posted By johnray31
Hi first of all i want to say sorry that i have paste here wrong code..
This is same what you have correcetd i am accessing memory like that *t='l';
but it gives segmentation fault .
...
Forum: C Nov 5th, 2008
Replies: 11
Views: 891
Posted By 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

void myfunc1(char *t)
{
t =...
Forum: C Jul 3rd, 2008
Replies: 1
Views: 679
Posted By 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...
Forum: C Aug 13th, 2007
Replies: 2
Views: 561
Posted By johnray31
Thankx buddy..
yes that was a mistake i couldn't see.
thankx a lot again
Forum: C Aug 13th, 2007
Replies: 2
Views: 561
Posted By johnray31
HI ALL,

i have written some code of line as

typedef struct _nodeList
{
unsigned int pointCode;
struct NodeList *next;
}NodeList;
typedef unsigned int PointCode ;
Forum: C Jul 27th, 2007
Replies: 3
Views: 3,687
Posted By johnray31
Hi Ancient Dragon ,

thankx for ur reply... i want to modify my statement once..
is it bad to use static variables in recursive program
Forum: C Jul 27th, 2007
Replies: 3
Views: 3,687
Posted By 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...
Forum: C Feb 14th, 2007
Replies: 12
Views: 30,345
Posted By johnray31
Forum: C Feb 14th, 2007
Replies: 12
Views: 30,345
Posted By johnray31
What is the problem with this code if i do like this:


void foo( char * ptr)
{
ptr = malloc(255); // allocate some memory
strcpy( ptr, "Hello World");
}

int main()
Forum: C Feb 14th, 2007
Replies: 12
Views: 30,345
Posted By johnray31
thankx Infarction for ur reply..
but whatever you have said it is something like bookish knowledge .. i think i ll get more clear answer from people who use double pointer in their coding style.....
Forum: C Feb 14th, 2007
Replies: 12
Views: 30,345
Posted By 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...
Forum: C++ Jun 12th, 2006
Replies: 2
Views: 1,723
Posted By johnray31
then how these implementation is called by compiler to use in our source file plz give me some detail explanation

thankx
Forum: C++ Jun 11th, 2006
Replies: 2
Views: 1,723
Posted By 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...
Forum: C May 28th, 2006
Replies: 10
Views: 5,400
Posted By johnray31
and my question was like that

they give me an array of memory say 10,000 character array and they ask to write ur own version of free and malloc function to allocate and dealocate the memory from...
Forum: C May 28th, 2006
Replies: 10
Views: 5,400
Posted By johnray31
hey all of you gus " am is new in this language " by this i mean that i have no professional experiance in c... and i was also thinking that it is not easy to write malloc function that is asked by...
Forum: C May 28th, 2006
Replies: 10
Views: 5,400
Posted By johnray31
what is k & r am new in this language and ... i face this question in my interview
Forum: C May 28th, 2006
Replies: 10
Views: 5,400
Posted By johnray31
hello friends,

could you guide me how i can write my own version of malloc and free function
Forum: C May 26th, 2006
Replies: 5
Views: 2,957
Posted By johnray31
thankx yar it was a common interview question i gave answer but my interviewer was not satisfied..... i think ur answer was the correct way to satisfiy him.

anyway thankx again
Forum: C May 26th, 2006
Replies: 5
Views: 2,957
Posted By johnray31
hello friends could anybody give me idea how i can find a loop in simple linked list
Forum: C++ May 14th, 2006
Replies: 4
Views: 1,006
Posted By johnray31
thankx buddy it works
Showing results 1 to 40 of 61

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC