Search Results

Search: Posts Made By: mind@work
Forum: Programming 04-18-2014
1,119
Posted By mind@work
That worked totally fine! :b: Thank you!
That worked totally fine! :b:

Thank you!
Forum: Programming 04-18-2014
1,119
Posted By mind@work
Map Question C++
Hello All,

I am having an issue of putting a Boolean value in the maps as the 3rd parameter. Something like the following :

int value;
std::map<String str, int x, bool bl>

where...
Forum: Programming 08-30-2011
1,847
Posted By mind@work
@Corona688 Thank you ....even when I added...
@Corona688

Thank you ....even when I added bracket so that it dereferences properly ...got perfect answer!!!!!!
Thanks ton :)

---------- Post updated at 11:38 AM ---------- Previous update...
Forum: Programming 08-30-2011
1,847
Posted By mind@work
@Corona688 If I typecast constant string...
@Corona688

If I typecast constant string "name" to (char*)"name"....it gives me "Segmentation Fault"!!!!
Forum: Programming 08-30-2011
1,847
Posted By mind@work
Giving same warning even if I change to total C++...
Giving same warning even if I change to total C++ style or vice versa!
Forum: Programming 08-30-2011
1,847
Posted By mind@work
Passing Pointers by reference in C++ Problem
Hello All,

I am having this issue...where I am actually having hard time understanding the problem:

The code is as follows:


#include<iostream.h>

void fxn(char*** var)
{
int i...
Forum: Programming 08-04-2011
1,720
Posted By mind@work
Calloc C++
Hello all,

I have a confusion with calloc function :

wz. the difference between the following 2 statemnts:


char *ptr;

char = (char*)calloc(num, sizeof(char));

char =...
Forum: Programming 08-02-2011
22,149
Posted By mind@work
Actually ...wt. I had to check was that if the...
Actually ...wt. I had to check was that if the char pointer has a string initialized or it is not yet initialized.

But I am checking it by doing (strcmp(arr, "")== 0) instead of (arr== NULL),...
Forum: Programming 08-02-2011
22,149
Posted By mind@work
Checking an array for NULL in C++
Hello All,

I have this question that how to check for an array for NULL?


For eg.

#include<iostream.h>
using namespace std;

int main()
{
char arr[10];
if(arr ==...
Forum: Programming 06-22-2011
2,681
Posted By mind@work
Exception Handling C++
Hello All,

I have a question ....which I am totally confused about!

If I have a fxn foo in a program which returns a logical value. But it has a posssiblity to throw some exception.

Now...
Forum: Programming 05-17-2011
934
Posted By mind@work
Passing by reference question
Hello All,

I have a question in the following sample code:

If I am passing a reference of a variable, will the dynamic allocation happen in which it is passed?

Will the dynamic...
Forum: Programming 05-04-2011
8,977
Posted By mind@work
gotcha: //only if I'm right this time! ...
gotcha: //only if I'm right this time!

ClassA{};

ClassA *point;
*point = 0;

ClassA *point = new ClassA();
Forum: Programming 05-04-2011
8,977
Posted By mind@work
I get what you guys are saying; point = 0; ...
I get what you guys are saying;

point = 0;

//intializing the pointer a NULL value...means pointing to nthing!

point = new ClassA();

//intializing the pointer value of the object of...
Forum: Programming 05-04-2011
8,977
Posted By mind@work
I thought they are same in the sense that : ...
I thought they are same in the sense that :

point = 0; //intializes the pointer to zero value and

point = new ClassA(); //intializes the pointer sm memory bt. not any value means zero value
Forum: Programming 05-04-2011
8,977
Posted By mind@work
Class Pointer initialization C++
Hello everyone,

I have a question, that are the following ways of pointer intialization same ?

ClassA *point;

point = 0;

point = new ClassA;



Thanks a load in advance!!
...
Forum: Programming 03-01-2011
1,597
Posted By mind@work
Printing class address!
Hello everyone,

I have this code which prints the address of the object of a class....bt. what if I want to print the address of the class?

#include <iostream.h>

class har{
};

int...
Forum: Programming 09-30-2010
13,222
Posted By mind@work
@Corona688:not sure how to copy the executables...
@Corona688:not sure how to copy the executables to the robot.....bt. tried fprintf and definitely it's lotttt better than printf.

Thank you so much, it helped a lott!!!!!
Forum: Programming 09-29-2010
13,222
Posted By mind@work
@Corona688: I tried to install gdb on my...
@Corona688:

I tried to install gdb on my robot but it has total of 12 MB hard drive whereas, gdb needs atleast 15MB.

So it is giving me "not enough space" error. So i guess would need to debug...
Forum: Programming 09-24-2010
13,222
Posted By mind@work
@Corona688: I tried to run gdb both on my...
@Corona688:

I tried to run gdb both on my machine and on the robot.

ON my machine it is giving me the problem, I just talked about and on the robot it is saying the following:

-sh: gdb: not...
Forum: Programming 09-24-2010
13,222
Posted By mind@work
Thank you Jim for replying. I am running...
Thank you Jim for replying.

I am running the gdb debugger as u said, but the gdb says the following:

gdb>
Starting program:
No executable file specified.

(I make a Makefile in which it...
Forum: Programming 09-24-2010
13,222
Posted By mind@work
gdb not found
Hello,

I am having problem with debugging my code. I am writing a C code and then I compile it with the Makefile. I make a target file and then copy it in my Robot(Khepera III) and then run the...
Forum: Programming 08-30-2010
3,285
Posted By mind@work
Implementing a shortest path algorithm in C
Hello,

I have a question. I have to implement a shortest path algorithm in n*n grid, moving from one coordinate to another coordinate.

But i have no clue how to start. Can anyone help?
...
Forum: Programming 07-07-2010
3,311
Posted By mind@work
Thanks a lotttt...it works wonders :):b:
Thanks a lotttt...it works wonders :):b:
Forum: Programming 07-06-2010
3,311
Posted By mind@work
segmentation fault
Hi,

I am having this segmentation fault not in the following program, bt. in my lab program . My lab program is horrible long so cannot post it here bt. I am using the following logic in my...
Forum: Programming 04-27-2010
5,805
Posted By mind@work
Dereferencing pointer to incomplete type
// Hello all,
I am having this error "Dereferencing pointer to incomplete type " on these 2 lines:
xpoint = my_point->x;
ypoint = my_point->y;

I am having no clue y this is happening.
...
Showing results 1 to 25 of 29

 
All times are GMT -4. The time now is 02:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy