Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
60% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~8K People Reached
Favorite Tags

48 Posted Topics

Member Avatar for techie929

Hi, I dont know why I am getting segmentation fault when adding the line 'int n' [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv[]) { char* pStr; // no memory allocation int n; printf("enter a string\n"); fgets(pStr,20,stdin); printf("\nvalue of string is %s\n",pStr); while(*pStr!='\0') { printf("value of …

Member Avatar for techie929
0
110
Member Avatar for techie929

Hi, I am trying to open a file and correct the spelling of friend. But when I open the file test.txt again it is all blank. [CODE] my $opened = open(MYFH , ">test.txt"); my $line; my $lnum = 1; while( $line = <MYFH> ){ print "$lnum: $line\n"; $line =~ s/freind/friend/g; …

Member Avatar for anuragmathur1
0
104
Member Avatar for techie929

Hi, I am trying to read a text file and tokenize the data and store in a character array. [code] #include<stdio.h> #include<stdlib.h> #include<string.h> //#include<file.h> int main(int argc , char *argv[]) { printf("No of arguments %d \n",argc); printf("Argument no 1 is %s \n" ,argv[1]); FILE *fp; char buffer[11]; char *bp; char …

Member Avatar for thines01
0
99
Member Avatar for techie929

Hi, I am trying to print the values in enum. Here is the code: [CODE] #include<stdio.h> int main(int argc , char* argv[]) { char played[] = "This old man, he played "; int i=0; enum days{one,two,three,four,five,six,seven,eight,nine,ten}; enum days d; for(i=0;i<10;i++) { printf("%s %s\n ",played,d); } return 0; } [/CODE] Can …

Member Avatar for Narue
0
119
Member Avatar for techie929

Hi , I am not able to execute the below makefile. [CODE] JFLAGS = -g JC = javac .SUFFIXES: .java .class .java.class: $(JC) $(JFLAGS) $*.java CLASSES = .\minimax.java default: classes classes: $(CLASSES:.java=.class) clean: $(RM) *.class [/CODE] I am getting this error make: Fatal error in reader: makefile, line 6: Unexpected …

Member Avatar for thekashyap
0
56
Member Avatar for techie929

Hi, I want to make a JLAbel clickable. For example if a user click on the jlabel he is directed to some url like [url]www.google.com[/url]. Any help would be appreciated. Thanks.

Member Avatar for JamesCherrill
0
98
Member Avatar for techie929

Hi, I have to create a tree for Minimax algorithm upto depth d. I am not getting how to create.Could anyone please suggest me a method? Thanks.

Member Avatar for qlipboard
0
76
Member Avatar for techie929

Hi, I have written a small piece of code to display a text box and submit button next to it. The submit button is displayed properly in all browsers except in safari the position of the search box is shifted to left. Is there any way I can fix it? …

Member Avatar for Luckychap
0
103
Member Avatar for techie929

Hi, I have a sample.rgb video file and I can view this video file using Java code. This sample.rgb has total 1800 frames. The video is displaying really slowly. Is there any way I can increase the frame per second?? Thanks.

0
53
Member Avatar for techie929

Hi, My java program runs fine on eclipse but when I run it on another system which has Java 1.4.2 I am not able to run it. I am using vectors in my program.It is not able to recognize vectors. '.class' expected Vector<int[]> resulttest = new Vector<int[]>(); hello.java:199: not a …

Member Avatar for JamesCherrill
0
91
Member Avatar for techie929

Hi, I have initialized an array like this: [CODE] int[][] my_array= new int[28][28]; my_array[-6][12]=2; [/CODE] But when i assign my_array with my_array[-6][12] it is giving me error.I know the doubt is very stupid but I am very confused. I want to store values in an array which has negative as …

Member Avatar for jon.kiparsky
0
97
Member Avatar for techie929

Hi, I have a vector in which I added some integer numbers. Now when I remove these numbers from the vector and try to store it in an int variable I am getting "Incompatible types..found int ,expected java.lang.object". Any suggestions how can I store the values in a vector in …

Member Avatar for jon.kiparsky
0
99
Member Avatar for techie929

Hi, I am getting the following errors: HelloWorldApp.java:54: <identifier> expected public static Vector<int[]> breakTheMovementVector(int i,int j){ ^ HelloWorldApp.java:102: ';' expected } ^ 2 errors [CODE] import java.io.*; import java.util.*; class HelloWorldApp { public static void main(String[] args) { try{ // Open the file that is the first // command line …

Member Avatar for mKorbel
0
122
Member Avatar for techie929

Hi, I have a doubt regarding a function myfunc(int i,int j) function. The return value of this function is a vector of type int[ ] .For Example if we pass myfunc(4, 2) it will return a vector {( 1,0) ,( 0,1) ,( 1,0) ,( 1,0) , ( 0,1 ), ( …

Member Avatar for techie929
0
120
Member Avatar for techie929

Hi, I am getting "java.lang.ArrayIndexOutOfBoundsException" exception in my program. Below is the code. [CODE] int ind = 0; for(int i = 0; i < height; i++){ for(int j = 0; j < width; j++){ byte a = 0; byte r = bytes[ind]; byte g = bytes[ind+height*width]; byte b = bytes[ind+height*width*2]; …

Member Avatar for ztini
0
184
Member Avatar for techie929

Hi Everyone, I have rgb values for each pixel.I have stored each red,green and blue values in three arrays red[][],green[][] and blue[][]. Now I want to display a rgb image using these values. Please suggest me how to do this. Thanks.

Member Avatar for peter_budo
0
92
Member Avatar for techie929

Hi everyone, I have to read a RGB image and then convert it to YUV. Could any one please tell how should i do this? Thanks.

0
60
Member Avatar for techie929

Hi , I am trying to reverse a string using pointers.I am able to reverse a sting like this: My Reverse Program --> margorp esrever em But I want it word by word. Program Reverse My. [CODE] #include <stdio.h> #include <string.h> char str[50]="Reversing a string using XOR"; char strb[50]; char* …

Member Avatar for gerard4143
0
134
Member Avatar for techie929

I have to make a server in python,which will extract POST data sent from the browser. Can anyone tell how can I go about this?

Member Avatar for jcao219
0
51
Member Avatar for techie929
Member Avatar for Gribouillis
0
59
Member Avatar for techie929

Hi, I want to calculate the number of days between two dates. Date is in the below format: First Date : 2010-09-27 05:00:00 Second Date : 2010-10-1 08:00:00 Thanks.

Member Avatar for Airshow
0
327
Member Avatar for techie929

How Can I fetch the tag name of the below xml file only once,without use of getElementByTagName. Like I have to display the XML as an HTML table.So the headings of the table would be COMMON BOTANICAL ZONE LIGHT PRICE AVAILABILITY I am getting tag name for all child nodes. …

Member Avatar for fpmurphy
0
102
Member Avatar for techie929

Hi, I am repeatedly getting "missing ) after argument list" in firefox. hash_a is a variable. $("#details_a").append("</br>"+"Enter Name "+"<input type='text' id='myText' />"+"<input type='button' id='theSubmitButton' value='Edit Name' onclick='edit_data("+hash_a+")''>"); Thanks.

Member Avatar for Taywin
0
177
Member Avatar for techie929

How Can I read the below file without using tag names.If suppose I have to fetch Title value, I know using xmlDoc.getElementsByTagName("title").item(0).firstChild.nodeValue; But How can I read without using Tag Names. <catalog> <title>Airbus Aircraft Families</title> <aircraft> <Airbus>A380</Airbus> <Aircraft>A380 </Aircraft> <seats>555</seats> <Range>15000km </Range> </aircraft> </catalog>

Member Avatar for hielo
0
144
Member Avatar for techie929

Can anyone suggest how can i parse the below xml file using jQuery? <attendees> <attendee>83b802430047d026858de37c8aa3dec5</attendee> <attendee>ab4925dc6a2d92e15de675aefe497e46</attendee> <attendee>27f865406965950e915b2f6e7128ba1d</attendee> </attendees>

Member Avatar for hielo
0
58
Member Avatar for techie929

Hi, I have a variable time whose value is: time = 2010-09-17 20:00:00 I want to split this value using jQuery or java script. After splitting year=2010 month=09 date=17 hr=20 min=00 sec=00 Thanks.

Member Avatar for Airshow
0
69
Member Avatar for techie929

Hi All, I have to fetch data from an xml file which will provide start and end date of an event.There will be various events. I have to make a weekly calender using jQuery which will display all the events in one week. And there will be two buttons:Previous and …

0
54
Member Avatar for techie929

I am reading a xml file and saving the data in array.But I am not able to use the array values later.I have declared everything as global. When I put an alert(myData[3]); I am getting "undefined".Please help. Below is my code: function modify_data(xml) { //alert("tyur"); $(xml).find('person').each(function(){ phone = $(this).find('phone').text(); email …

Member Avatar for hielo
0
94
Member Avatar for techie929

Hi Everyone, I want to build a web application using JavaScript and Python for my class project.It would be really helpful if I will get some ideas. Thanks, Smita.

0
42
Member Avatar for techie929

Hi Everyone, I have to create a dynamic HTML page that actually contains two separate HTML forms.Can anyone tell me how can I create two forms in a single HTML page. Thanks.

Member Avatar for rajarajan2017
0
86
Member Avatar for techie929

Hi everyone, I am trying to save ip addresses and mac addresses of a node in a structure.I dont know how to assign values.Please help. [CODE] #include <stdio.h> #include<iostream> #define nodes 15 using namespace std; struct nodes_struct { char ip[19]; char mac[19]; } ; int main() { char ip[19],mac[19]; nodes_struct …

Member Avatar for shashwat_2010
0
137
Member Avatar for techie929

Hi everyone, I have to create 16 separate files for 16 nodes and write something in it. Is there any way in which i do not have to separately create sixteen files. //// sompe part of code which i am using [CODE] file2.open("Node0.txt");//Node0.txt is the file of ofstream type { …

Member Avatar for WaltP
0
76
Member Avatar for techie929

Hi, Could anyone please tell me how should I concatenate the below two: unsigned char byte2[1]="0X"; unsigned char byte0[6]; byte0="29";

Member Avatar for strmstn
0
141
Member Avatar for techie929
Member Avatar for Ancient Dragon
0
76
Member Avatar for techie929

Hi, I need to read 4 bytes from file to form a 32-bit unsigned integer X. The first byte you read goes into the most-significant byte of X, the 2nd byte you read goes into the 2nd most-significant byte of X, the 3rd byte you read goes into the 3rd …

Member Avatar for WaltP
0
2K
Member Avatar for techie929

Hi, I have to create a maze in C++. // Below is the problem Statement Let's use a simple case of a w=4 (columns) by h=3 (rows) maze to illustrate the maze-generation algorithm. We will start with 4 × 3 = 12 closed rooms, arranged in a 4 by 3 …

Member Avatar for Lerner
0
103
Member Avatar for techie929

// error: expected constructor, destructor, or type conversion before '*' token *** Error code 1 make: Fatal error: Command failed for target `bst.o' [CODE] class BinarySearchTree { private: int count; int n; struct tree_node { tree_node* left; tree_node* right; char data[1000]; }; tree_node* root; public: BinarySearchTree() { root = NULL; …

Member Avatar for mitrmkar
0
111
Member Avatar for techie929

//when I delete root node from bst the below code is showing segmentation fault,Please tell where should I change the code [CODE] void BinarySearchTree::remove(char* d) { //Locate the element bool found = false; if(isEmpty()) { cout<<" This Tree is empty! "<<endl; return; } tree_node* curr; tree_node* parent; curr = root; …

Member Avatar for VernonDozier
0
95
Member Avatar for techie929

How can we remove all leading and trailing <SPACE>, <TAB>, and <CR> characters from a character of string. I think I can use strtrim but can anyone explain me with the help of an example.

Member Avatar for jonsca
0
96
Member Avatar for techie929

I have to create a bst in which i have to add string values in the nodes..I have to display the no of nodes inserted each time..When I insert small string like..FA or B...i am getting the correct value in count[count is the variable which I have taken to count …

Member Avatar for techie929
0
85
Member Avatar for techie929

/*I am getting the following errors free.cpp: In function 'int main()': free.cpp:24: error: expected `;' before 'obj' free.cpp:25: error: 'obj' was not declared in this scope free.cpp:25: error: expected primary-expression before 'int'*/ [CODE]#include<iostream> using namespace std; int array[]={0,1,2,3,4,5,6,7,8,9}; class free { public: void function(int array[]); }; void free::function(int array[]) { …

Member Avatar for techie929
0
260
Member Avatar for techie929

//Here is the function of inserting nodes.I tried using strcmp but its still not working. [CODE] void BinarySearchTree::insert(char* d) { tree_node* t = new tree_node; tree_node* parent; strcpy(t->data,d); t->left = NULL; t->right = NULL; parent = NULL; // is this a new tree? if(isEmpty()) root = t; else { //Note: …

Member Avatar for mitrmkar
0
106
Member Avatar for techie929

How to find number of total child(including grand children also) nodes for a particular node in a bst using C++. Could anyone please suggest me method of doing it. Thanks.

Member Avatar for WaltP
0
39
Member Avatar for techie929

[CODE] //This is what we are asked to print in the assignment of Binary Search Trees.The Nodes are printed like: F +-- D | +-- NULL | \-- NULL \-- R +-- P | +-- M | | +-- NULL | | \-- N | | +-- NULL | | …

Member Avatar for techie929
0
79
Member Avatar for gajji2020
Member Avatar for WaltP
-2
136
Member Avatar for techie929

Hi, Could anyone please tell me how can i input data either from a file or stdin. If the file name is not specified the data can be read from the UNIX command prompt using stdin. I know stdin is a file pointer but how to use it please explain??

Member Avatar for Duoas
0
591
Member Avatar for techie929

Hi everyone, I have to display a binary search tree in a tree format. For BST insertion, if the input contains the following F D R P V M N The resulting BST should be displayed as: [CODE=text] F +-- D | +-- NULL | \-- NULL \-- R +-- …

Member Avatar for techie929
1
131
Member Avatar for techie929

I am trying to insert elements in a binary search tree.I am getting the following errors: In member function 'void bst::insert(char*)': error: cannot convert 'char*' to 'node*' in assignment error: cannot convert 'node*' to 'const char*' for argument '1' to 'int strcmp(const char*, const char*)' In function 'int main()': error: …

Member Avatar for techie929
0
147

The End.