46 Topics

Member Avatar for
Member Avatar for joshl_1995

Hello Daniweb Community, I was wondering if there is a way to replace words from a listbox. So at the moment I've got a listbox with a couple of strings to be replaced in the textbox, however single line listbox items work but when I add a multi-lined item eg. …

Member Avatar for joshl_1995
0
331
Member Avatar for blueguy777

i've stored a line into string `$output='01/07/201521/08/201691754.0';` i want split the line as three different words & store into variables var1 var2 and var3. eg: var1=01/07/2015 var2=21/08/2016 var3=91754.0 hope someone will fix this issue.

Member Avatar for blueguy777
0
267
Member Avatar for danyalempire

Dim temp As Translator Using sr As IO.StreamReader = New IO.StreamReader("text.dll") For i As Integer = 0 To 15 trans(i).english = sr.ReadLine trans(i).arabic = sr.ReadLine Next For i As Integer = 1 To 15 For j As Integer = 1 To 16 - i If trans(j - 1).english > trans(j).english …

Member Avatar for ddanbe
0
320
Member Avatar for fortranlover

please i need help with my work.. write a program in c++ that accepts a real number with two decimal places and output the vallue in words.. [assume that no amount will exceed 999999999999.99

Member Avatar for vmanes
0
230
Member Avatar for Stefce

Hello i have a little problem with writing the words in the database, after some space between the words the database can't remember it, thats why because the link eg. ( /some_file.php?search=something%20wierd ) that "%20" its the space between the words but from my mobile application when ill type space …

Member Avatar for JamesCherrill
0
281
Member Avatar for vegaseat

A simple way to find duplicate words in a text. In this case the text is preprocessed to eliminate punctuation marks and set all words to lower case.

Member Avatar for paddy3118
2
4K
Member Avatar for turpentyne

I'm just trying to figure out how to get everything after the first two words in a line. Right now, I've got the opposite - the first two words themself: ^(\S+ \S+) I want the opposite of this. Thanks!

Member Avatar for L7Sqr
0
236
Member Avatar for ziyaddinsadigov

I saw that github commands in linux terminal always uses word "git" before all it's commands. How to use my own word for my shell script? for example, $ git commit or $ git status

Member Avatar for L7Sqr
0
185
Member Avatar for ThatJamaican

#include <stdio.h> #include <stdlib.h> int main() { char word[50]; int wordLength, i, reverseCount; reverseCount = 0; system( " color F5 " ); printf( "\n How many letters does the word have? : " ); scanf( "%i", &wordLength ); printf( " \n Enter word, letter by letter " ); for( i …

Member Avatar for Gonbe
0
260
Member Avatar for zeeters

I have to write a program that takes a word from the user and replaces it if it is in the text file with another word given by the user. Then takes that input and writes it to a new file. The only problem is, I have to do it …

Member Avatar for zeeters
0
3K
Member Avatar for stamarab

Hello, please would anybody know if there's any game software where I could include words and sentences? Although I'm still new in this area, I'm very interested in creating some games for teaching purposes. Thanks and Regards, Silvia

Member Avatar for stamarab
0
152
Member Avatar for latooplat

I have a special problem over in terms of sorting out those words like a keyboard type. For example: the user inputs these words into the textarea HOUSE DOLL KITE NICE Then, the result should be DOLL HOUSE KITE NICE this is sorted out according to the qwerty order. <?php …

Member Avatar for pritaeas
0
1K
Member Avatar for cmmmm

When i run a single number (1-9), it'll output as ONEONE or TWOTWO, etc.. As well with numbers 11-19, they'll show up as ONEELEVEN or TWOTWELVE, etc. 20-100 outputs fine whereas 101 becomes ONE HUNDRED TEN ONE ONE, etc.I have no idea what I've done any help would be greatly …

Member Avatar for stultuske
0
236
Member Avatar for rae08
0
174
Member Avatar for stephen_UK

I would be great if someone could spot the problem with this code please. I have a MySQL table that was populates an Options list which works well when adding new records to another database table. The code is: $query="SELECT id, types FROM $table ORDER BY types ASC"; $result = …

Member Avatar for moonknight33
0
206
Member Avatar for cr7489

i have a db with 3 tables review, pos and neg words for a film review im trying to detect if the word 'not' appears before a positive or negative word then add 1 to the pos count if it appears before a neg word ie this was not bad, …

Member Avatar for cr7489
0
291
Member Avatar for aldrin_ison1

Hi! I'm new to C and I'm having some problems in my program. It opens a .txt file then copies this to another .txt file but replaces a certain word with another word. It uses command line arguments. Example: //inside text.txt love is patient love is kind ... ./change love …

Member Avatar for histrungalot
0
452
Member Avatar for PureHashIsh

I am trying to write a function that compares two text files (test1.txt and test2.txt) word by word, the function is supposed to print "files are equal", "files differ: word %d" (if word 13 then past 12 words were equal), and "EOF on [filename]" (the files were equal word by …

Member Avatar for PureHashIsh
0
2K
Member Avatar for EkoX

Hi all, How i can split a sentences into words and add splitted words into listbox. Thank you. Best regards Eko

Member Avatar for EkoX
0
261
Member Avatar for engineerchica

Hi! I am working on a program to count the number of characters and words in a text file. The counting characters portion works, but my countWords function displays '0'. I built the countWords function on the basis of my countChar function, but since it's returning zero I'm not sure …

Member Avatar for engineerchica
0
175
Member Avatar for EvaL2ne

In file i have a text. Words form line to line dont raising. Word in line separate least one space.Spaces can be at line begining and ending, can be empty lines. Count how many words can be in real number. i need a function whitch can count words whitch can …

Member Avatar for WaltP
0
313
Member Avatar for Assassin7893

Guys, I'm actually almost done. Basically what I have to do is to read from file with a list of words, sort them alphabetically and write them into another file. I am almost done, but the only thing is, the assignment says that we shouldn't change the case of words, …

Member Avatar for v3ga
0
2K
Member Avatar for AndyPants

Hello, i was wondering how would i make a search kind of thing, for example if string1 contains all the words in string2 words. like a search(not just if string1 contains string 2). it should work something like this: If string1 is "an apple" and if string2 is "djsjfsfg apple …

Member Avatar for AndyPants
0
451
Member Avatar for Intrikate

So this is my first post and I have only begun using python. One of my first assignments is to design a program which will count the most used words in the given text file. In my case we are using the Declaration of Independence. Here is what i have …

Member Avatar for JoshuaBurleson
0
3K
Member Avatar for QuesoTaco

I am trying to get consecutive words in a document using flex. Normally the forward slash should work, but for some reason it is not. Also I need to account for spaces. So I can't seem to use that regex character for this, how do I account for consecutive words …

0
132
Member Avatar for Muhammad Anas

I am trying to create a program that, after inputing a text file, can: 1) Count number of lines in the text file. 2) Count number of words in the file. 3) Count number of characters in the file [B][U]including[/U][/B] white spaces. 4) Count number of characters in the file …

Member Avatar for Narue
0
2K
Member Avatar for doomas10

Hello, i have the following query. I have a txt file with data like this: [CODE]1 observational study 1.1 cohort study 1.1.1 retrospective cohort study 1.1.2 prospective cohort study 1.2 cross-sectional study[/CODE] And another file with data like this: [CODE]cross-sectional survey 12345.txt retrospective study 2345.txt ...[/CODE] I want to do …

Member Avatar for TrustyTony
0
223
Member Avatar for salty11

this code is meant to input words from file, and output to file the amount of letters in them and how many words there are [CODE]#include<iostream> #include<iomanip> #include<fstream> #include<cmath> #include<conio.h> #define in_file "data.txt"//input file name #define out_file "result.txt"//output file name using namespace std; void inputwords(int&, int&); void outputwords(int, int); ifstream …

Member Avatar for WaltP
0
629
Member Avatar for Vega_Knight

Hi masters,, how can i count how many words in sentences using pascal? thanks before and best regards.

Member Avatar for Vega_Knight
0
1K
Member Avatar for Mayank23

how can a user be able to type what ever he wants such as " i went to the park...", i tried to do it but with my string variable it only read the first word typed in, such as i in this case. please help.

Member Avatar for Mayank23
0
165

The End.