Search Results

Search: Posts Made By: kajolo
Forum: Programming 12-08-2010
8,037
Posted By kajolo
Hi, You are right. A correct, working...
Hi,

You are right.
A correct, working version of a code (with casting) should be:
int ToLower(string my_input)
{
int string_length = my_input.length();
for (int i=0;...
Forum: Programming 12-07-2010
8,037
Posted By kajolo
I will try. Thanks ---------- Post updated...
I will try.
Thanks

---------- Post updated at 06:56 AM ---------- Previous update was at 06:20 AM ----------

Hi,

It looks that itoa is not supported by my compiler.
I tried with casting....
Forum: Programming 12-07-2010
8,037
Posted By kajolo
conversion to 'char' from 'int' warning
Hi,

I wrote a simple code in C++ converting from UpperToLower case characters. However, my compiler gives me a warning:
"warning: conversion to 'char' from 'int' may alter its value".
Any tips?...
3,585
Posted By kajolo
Yes - this is what I needed. The number of words...
Yes - this is what I needed. The number of words in input and output is this same.
Thank you!
This what you are doing here is great. I am really grateful.

Kajolo
3,585
Posted By kajolo
Sorry - I wasn't precise. 1) Input file...
Sorry - I wasn't precise.
1) Input file contains 1005 lines,
2) The number of words in each line (maximum and minimum) differ. Word is defined as a single number,
3) We have three strings, in...
3,585
Posted By kajolo
Ok - I found. awk ' { print $0 }' input |sort...
Ok - I found.
awk ' { print $0 }' input |sort |uniq -c

Thanks again for help.
Kajolo

-----Post Update-----

Hello again,

I have still some problems.
The input files has...
3,585
Posted By kajolo
Hi! Works perfectly!! Thank you! ...
Hi!

Works perfectly!!
Thank you!

By the way I was trying to count the number of occurrences of each record for example:
4812 4814 8116 : 8, however when I do: uniq -c input >...
3,585
Posted By kajolo
AWK- delimiting the strings and matching the fields
Hello,

I am newbie in awk. I have just started learning it.

1) I have input file which looks like:
{4812 4009 1602 2756 306} {4814 4010 1603 2757 309} {8116 9362 10779 }
{10779 10121 9193...
Showing results 1 to 8 of 8

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