Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
Favorite Forums

21 Posted Topics

Member Avatar for picass0

i have problem trying to extracting the string from the text file. i knows how to read from the file but unable to extract the string which i want. i wanted to extract only the id out, how can i do it? my text file format is below: [CODE]user:password,id,office[/CODE]

Member Avatar for anupa
0
1K
Member Avatar for picass0

i trying to write a code which will read from user input of the percentage of some words to be appear. [B][U]example[/U][/B] user will input 50 5 when the program runs. 50 is the total number of runs and 5 means of the total runs it will have 5% of …

Member Avatar for Member #327928
0
90
Member Avatar for picass0

i wanted to print random line from a file. i knows how to print out the whole file but doesnt know how should i do to print a random lines from a file!!! hope someone can give me some ideals or an example. thanks!

Member Avatar for solahere
0
84
Member Avatar for picass0

i using getopts but when i type in the argument it not working. Is there anything wrong wif my script? bcos when i enter bash filename -P -S , i should see "hello" msg but i don. [CODE]#!/bin/bash while getopts "PS" opt; do if [ $# -eq 2 ]; then …

Member Avatar for eggi
0
123
Member Avatar for picass0

Is there any function in shell that enable to check for upper or lower case? i would like to check the input argumnets for upper or lower case.

Member Avatar for ghostdog74
0
2K
Member Avatar for picass0

i wanted to printout the last entry of the file without passing in any arguments but how can i able to do it? i know how to print out where argument is supplied and doing a grep to match it. example inside the file i have: apple:2:1:3 orange:1:2:3 grape:2:3:4 i …

Member Avatar for ghostdog74
0
118
Member Avatar for picass0

i wanted to check my args wheather is a empty string or -P when i run my code but it prompt an error msg. The error msg say i have an unary operation expected at line 3 and 7. m i doing a wrong way to check for empty argument? …

Member Avatar for Salem
0
69
Member Avatar for picass0

i understand how to create a socket and assign a port to a socket. But how can i make a for loop to auto assign 21 ports to it? need some helps!!!

Member Avatar for picass0
0
97
Member Avatar for picass0

my string contain "hello baby" and i wanted to find the position of the character 'l' which falls in pos 2 and 3. Using string.find("l") return me the position of first "l" found. How can i do a loop to find the position of my next character 'l' in the …

Member Avatar for Radical Edward
0
80
Member Avatar for picass0

How can i cut out every 4 characters from a text file? Example: my text file rows of binary numbers like: 101010101000010101010111 i wanted to cut out every 4 characters from it becomes: 1010 1010 1000 0101 .... .... ..... i have been bale to cut out the 4 characters …

Member Avatar for Radical Edward
0
94
Member Avatar for picass0

i trying to input the text from a text file into a byte buff[]. When i did this byte buf1[] = word; it will prompt me with "initializer fails to determine size of `buf1' " and invalid initializer error. How am i able to pass in the text of my …

Member Avatar for vijayan121
0
152
Member Avatar for picass0

i using seekp() function to change the pwd, but it can only change the first row of peter's pwd. Wat i wanted was to change only the pwd that belongs to only mary if marry has login. How can do it? need some advice!!! this is wat my text file …

Member Avatar for Ancient Dragon
0
155
Member Avatar for picass0

how can i change the data of my text file with the user input? eg. i prompt for user to enter new no. and with this new number it will replace the old number with the new one. i know i need to wite to the file but how can …

Member Avatar for dmanw100
0
116
Member Avatar for picass0

i need to hash and generate a salt value of the password which input by user and save it to a file. i understand how to create a txt file, but i don understand how m i going to hash and generate a salt value from the user input? this …

0
62
Member Avatar for picass0

how can i pass argc and argv to other function? [CODE] int main(int argc, char *argv[]) { abc(wat should i put here to pass argc and argv?) } int abc(wat should i put in here also?) { process.... } [/CODE]

Member Avatar for Ancient Dragon
0
73
Member Avatar for picass0

i have a text file that has delimiter. i wanted to display the test file that will take away the deliminter from my text file. i search through the net was told to use getline() which can include the deliminter. Hope that is someone who can show me an example …

Member Avatar for Nick Evan
0
96
Member Avatar for picass0

Is it posible to delete away a position from STL list? eg. myList have 2 4 6 8 10 1 3 9 If i want to delete away position 9 and position 9 got no value therefore it cant be deleted. so is there any way i can delete the …

Member Avatar for Ancient Dragon
0
57
Member Avatar for picass0

i created a program that read from a txt file and use getline() to retrive every line from my file. But i wanted to store the digit into list<int>, when i do a print of stl list i get the result which not i wanted. i wanted to have "2 …

Member Avatar for picass0
0
97
Member Avatar for picass0

i'm trying to read from a text file and store it into a STL List. i able to read from the file but when i wanted to print out my list i get an error - [B]primary-expression before '>' token [/B]which is pointed to the text in red. am i …

Member Avatar for Ancient Dragon
0
91
Member Avatar for picass0

i'm using stl list to do a simple inserting of a range of value into the list. The problem i have is that when i do a push_front i couldnt see the value when i did a displayed of my list, but when i did a count it show that …

Member Avatar for picass0
0
92
Member Avatar for picass0

i have a code for complex number but when i key in 7+i3 and 5+i2 into the operator+ it should return me the result of 12,5 but i receive 430. What is the problem wif my code? [code] class Complex { friend istream& operator>>(istream&, Complex&); friend ostream& operator<<(ostream&, const Complex&); …

Member Avatar for Narue
0
95

The End.