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
~3K People Reached
Favorite Tags
c x 19
perl x 15
c++ x 2
Member Avatar for mank

Hi, I am trying to run centOS 5.0 on dual monitor from my laptop I installed ATI catalyst driver for linux and I get the dual monitor but its not working correctly. I hear there is a way by changing the xorg.conf file you can do it I dont know …

0
66
Member Avatar for mank

This code counts number of characters in a single line how can I make it count(give total X Y Z) it in multiple lines seperated by ">" [CODE]while(<IN>) { chomp; my @line = split(//, $_); if($line[0] eq ">"){print @line;} elsif (($line[0] eq "X"||"Y"||"Z")||($line[0] ne ">")) { my %cnter; foreach my …

Member Avatar for KevinADC
0
280
Member Avatar for mank

I can run Fedora on vmware, but I cant do "install vmware tools' So I tried to run /usr/bin/vmware-config.pl and this is what I got. please help None of the pre-built vmmon modules for VMware Server is suitable for your running kernel. Do you want this program to try to …

Member Avatar for mank
0
181
Member Avatar for mank

I cant seem to figure out whats wrong with this code, I am trying to generate random floating point number numbers with values from 0 to 1 with positive and negative values here is the code [CODE]#include <stdio.h> #include <stdlib.h> void populate(int generations) { int seed, ttt; seed = 456739853; …

Member Avatar for jephthah
0
130
Member Avatar for mank

HI I am trying to print a certain number of sequences from a file. So if the sequence is like LKSAJDLSAJDLSAJDLKSJD. then I want to write from 10th character to 20th character. please help. Here is my code [CODE]#!/usr/bin/perl -w use strict; use warnings; my ($fileName, $firstSequence, $lastSequence) = @ARGV; …

Member Avatar for KevinADC
0
134
Member Avatar for mank

Hi I am trying to read two files and then copy their content to a third file while removing duplicates please help [CODE]#!/usr/bin/perl -w { open A,shift; foreach (<A>) {$a{$_}++}; open B,shift; foreach (<B>) {$b{$_}++}; open C,shift foreach(<C>) { print unless $a{$_} print unless $b{$_} } } [/CODE]

Member Avatar for KevinADC
0
383
Member Avatar for mank

I have two questions regarding c #1 if I have value(initialize a variable with a value) inside a block, like { } then how is it different than the value outside that block, but within the same function why does the value inside the block doesnt retain the old value …

Member Avatar for mank
0
80
Member Avatar for mank

I want to parse a tree the tree is like (((1,2)3,4)5,6) see the attached parse tree the program would produce an array from root to each leaf [URL=http://allyoucanupload.webshots.com/v/2002642992068581724][IMG]http://aycu25.webshots.com/image/35944/2002642992068581724_th.jpg[/IMG][/URL] So I would like to have 4 arrays [CODE] a[]={5,3,1} b[]={5,3,2} c[]={5,4} d[]={6} [/CODE] I would like to have a general format …

Member Avatar for Narue
0
101
Member Avatar for mank

I want to create two functions, one that takes array values and lenngth and the other displays array values and length Here is my code, it gives me segmentation fault [CODE]#include <iostream> #include <iomanip> using namespace std; void input_array(float a[], int &n) { int j; for (j=0; j<n; j++) { …

Member Avatar for Ancient Dragon
0
106
Member Avatar for phylon

Hello I am having no problem while returning 1 dimensinal array But am having trouble with 3 dimenional array No problem with this code [CODE]float Mat[][][]; float Mat[]; float *funct1(void) { return Mat; } void funct2() { float *Mat; Mat=funct1(); } [/CODE] But this doesnt work [CODE] float Mat[][][]; float …

Member Avatar for mank
0
97
Member Avatar for mank

I want to pass a float array from one function to another function I want to make use of the float array type(here container) [CODE]void funct1() { float container[4]={0.1,0.2,0.3,0.4} void funct2() ----(1) {return container;} } void funct3() { void funct2(); use container array; }[/CODE] Here what would be the funct2() …

Member Avatar for mank
1
2K
Member Avatar for mank

I am trying to convert some data that I read in file as string data to a float array The data that is read are in two dimensional string array like [CODE]char tmatrix[10][100]; for(j=0;j<k3;j++){printf("\n %s",tmatrix[j]);} //k3=max data read 0.5 0.2 0.3 0.6[/CODE] Now I need to convert the content of …

Member Avatar for Salem
0
115