88 Topics

Member Avatar for
Member Avatar for harsha_123

I'm new to c++. I was studying data structures and came to know Linked Lists Lately. We had a problem of finding an item stored inside a linked list and here's the code I wrote using Visual Studio to store and find an item. This code gives me a run …

Member Avatar for harsha_123
0
1K
Member Avatar for NewUserVB.Net

Good Day everybody, I am wanting to make a program in VB.NET that has many files.doc in a specific folder. This program has on top a textbox(txtSearch) with a button(btnSearch) under that this has two listbox(lstOption, lstResult), that are floating a left, one richtextbox(rtbDoc) that is floating a right. I …

Member Avatar for codeorder
0
660
Member Avatar for AndyPants

Hello... I'm working on a program that gets some info about a certain web page. But one of the features is it needs to find all the links to other webpages on THE SAME site (I think its called an internal link... not sure). I already figured out how to …

Member Avatar for gusano79
0
380
Member Avatar for mikenowo

I've been looking for an app that could find a specific open window on the desktop and 'lock' it so can't be re-sized or moved (most likely by using the title bar value/property). Having had no luck, I was wondering if this can be done in c++? I used to …

Member Avatar for mikenowo
0
191
Member Avatar for Virangya
Member Avatar for avgvstvs

[CODE] cout<<"\n\n Please Input The Drive Letter Of Your Input Device \n"; cin>>DRL; string str(DRL); string str2(":"); string src; string hi; src=str.find_last_of(DRL); cout<<src; if(src!=str2) { hi=string(DRL)+string(str2); cout<<hi; } else*/ cout<<hi; [/CODE] [What am i dong wrong.i am trying to enure a colon input in the drive letter regardless of user …

Member Avatar for avgvstvs
0
1K
Member Avatar for sindel

Hello! I didn't read the rules or anything, so I don't know if I'm posting in the right place, but I need help with a program as soon as possible. I have to answer this question: Find the first ORF in a sequence from a position (findORF(DNA, position)). It must …

Member Avatar for woooee
-2
160
Member Avatar for pythonhelp11

I need to create a code that will extract the dob from a array of string, like this [iCODE]finddob(["name:bob grade:a dob:1980","dob:1976 name:kate grade:c"])[/iCODE] [CODE]def finddob(listofstrings): recordnum = 0 while(recordnum < len(listofstrings)): yearstart = listofstrings[recordnum].find("dob:") + 4 yearend = listofstrings[recordnum].find(yearend) year = int(listofstrings[yearstart, yearend]) if(year > 1990): print("Is over 21") else: …

Member Avatar for woooee
0
422
Member Avatar for dappe

Hey, I just started programming but im stuck. so lets say I have a wordlist with words containing 2-12 letters and I want to remove all words containing less than 3 letters or more than 7 letters. How would i do that? Another problem I have is, I want to …

Member Avatar for TrustyTony
0
8K
Member Avatar for lolsn0r

Ok i have made a picture ;) That will explain it a lil better. I just need to add that certain code ***|*** to textbox2.text but * can be 1 2 3 4 5 6 7 8 9 button2_click: if textbox1.text.contains("***|***") then ... Picture: [URL="http://imageshack.us/photo/my-images/43/naamlooses.jpg/"]http://imageshack.us/photo/my-images/43/naamlooses.jpg/[/URL]

Member Avatar for codeorder
0
153
Member Avatar for thecoolman5

hi, i have this code: [CODE]#include<iostream> #include<sstream> #include<string> using namespace std; int main (char argc) { string n1 = "141+246+3+64"; int n2; int pos = -1; char toFind = '+'; do { pos = n1.find(toFind, pos+1); if(pos != -1) { stringstream(n1) >> n2; cout << n2 << endl; cout << …

Member Avatar for thecoolman5
0
293
Member Avatar for acidking001

good day all.. While I am compiling a vb6 project, the error highlighted this: format(date,"YYYYMM") Can anyone help me? Thank u very much..

Member Avatar for BitBlt
0
200
Member Avatar for Jack Martin

# include <iostream> using namespace std; int main() { cout << "By this program you can know about Whether a number is a or not" ; cout << "Enter a number less than 1000 :- "; int a,b,c,e,f,g,k ; cin >> a; if (a < 1000) b=a/10; k=b+2 ; c=a-(k*10); …

Member Avatar for WaltP
-1
164
Member Avatar for SG01

How do I search for a document from within my visual studio program. ie: looking for checklists by name or part of name and then be able to open the found document / file from the found search. comp - could return compactor / compressor etc.. then be able to …

0
69
Member Avatar for newtopython1111

Hi all, I have a data set that has a text header, followed by binary data. I want to search for a certain variable in the text header, store whatever name comes after the variable, and then replace it with X. Since I want to leave the binary alone, I …

Member Avatar for woooee
0
151
Member Avatar for bipies

Hi everybody! Well my question is as follows, I need to search for a div with a specific ID using php under wordpress, till now I found images and links, but I need to find a specific div ID and copy it, for now tested with this: [CODE] $html->find('$html->find('#divid');'); $html->find('div[id=divid]');[/CODE] …

Member Avatar for bipies
0
502
Member Avatar for kristo5747

After running the command [CODE] find . -name "R*VER" -mtime +1 -exec sh -c 'grep -H ^err "{}" || echo "{}:No error"' \;[/CODE] my files look like this [CODE] RRR1~COS~COSMETICS~40048~jgmdtv113~1~P~R22-200~029053662549~20110607~102151.VER No error RRR1~COS~COSMETICS~ETT03~jgm14652.~3~F~R16-500~000907009757~20110607~085109.VER err 3922 [/CODE] Using the tilde (~) symbol as delimiter in the file name, can I extract …

Member Avatar for kristo5747
0
210
Member Avatar for kelvin30588

i am working on a database application project and i need to put some user authorization where it will change the visibility of button based on the role. so i save all related form name in the database then i retrieve all the form name from the database into my …

Member Avatar for Mitja Bonca
0
277
Member Avatar for TrustyTony
Member Avatar for TrustyTony
0
905
Member Avatar for EkoX

Hello All, As the title.. Does any one know how to find how many specific character in a text? Best Regard Eko.

Member Avatar for Jx_Man
0
153
Member Avatar for Theisonews

i want to create a program that will have an arraycalled array1[] of 30 sets of 3 one digit numbers i.e 804, 450,430 etc) i will have 13 vector containersor arrays defined with a series of 3 one digit numbers. i want the program to find any series of numbers …

Member Avatar for Lerner
0
121
Member Avatar for Formby

I have an array set up to receive the names of forms when they open. The form name is sent as a Form not a String therefore when I run my code I cannot check for whether the field is empty in the normal way (ie. array(1) = "") as …

Member Avatar for Formby
0
136
Member Avatar for Annettest

I have a vector of strings. Each vector element/string is a name, like: Mother_Hen. I want to remove the _ and replace it with a space. Does anyone know how to do this? I have tried using find, but have had no success (I get no result). Thank you for …

Member Avatar for srivairam
0
161
Member Avatar for bartm669

Hi all i need a piece of code that will find a value in an array and change it. [CODE] private int[][] level = new int[][]{ {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, …

Member Avatar for bartm669
0
131
Member Avatar for JordanHam

[CODE]int number=0, subtranslines=50; string term[]={"Jordan"}; //string term="Jordan"; string voltage= "69"; string line; size_t found; while (! data_file.eof() && getline(data_file,line).good() ) { //cout<<line<<'\n'; for (int i=0; i <=subtranslines; i++){ if( (found=line.find ("term[i]",0)) !=string::npos && (found=line.find (voltage,0)) !=string::npos) { number++; cout<<line<<'\n'; out_file<<line<<endl; }}} //To find the number of outages and subtract the …

Member Avatar for JordanHam
0
191
Member Avatar for supahoopsa

Can anyone help with a problem with a JQuery Find? In the example below I want to find the select & text objects within Div1. Here is the HTML: [CODE]<div id="div1" style="border:solid 1px #c6c8dd; background-color:#ff0000; padding:5px;"> <div style="width:916px; padding-top:10px;"> <select id="Select1" runat="server"></select> : <input id="Text1" style="width:200px;" type="text"> </div> </div> [/CODE] …

Member Avatar for pritaeas
0
77
Member Avatar for naiksuresh

I am supposed to find a file recursively in a given directory. Rules are not to use find and recursive options like ls -R and grep -r. I can any other other option expect recursive. I had written the script using recursion. [CODE]#!/bin/csh foreach i (`ls -R $1 | grep …

Member Avatar for naiksuresh
0
104
Member Avatar for rizzi143

hi folks. i ve got a lab questions stating: write pseudocode for a program which allows the user to input two numbers (x and Y0 and a code c . if the code has value 1, the program should ouput the larger of X and y and otherwise the smaller. …

Member Avatar for rizzi143
0
163

The End.