- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
12 Posted Topics
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 … | |
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 … | |
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 … | |
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; … | |
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; … | |
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] | |
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 … | |
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 … | |
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++) { … | |
Re: For example [CODE]multi_return.c: In function ‘funct1’: multi_return.c:27: warning: return from incompatible pointer type multi_return.c:27: warning: function returns address of local variable [/CODE] [CODE] #include <stdio.h> float Mat[4][4][4]; float *funct1(void) { float Mat[4][4][4]={ 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5, 1.2,1.3,1.4,1.5,}; return Mat; … | |
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() … | |
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 … |
The End.