64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for fenhopi

I have this code that searches for a set of numbers in my textfile. When it finds those numbers I want it to print what's on column 5 to 12 in the same line. Is this possible to do? I've been looking for an answer for ages now, and I …

Member Avatar for G_Waddell
0
94
Member Avatar for Carolus89

Why this Error may happend? I have to readjust huge application and I need the most supposed possibilities which make this kind of error.

Member Avatar for Carolus89
0
9K
Member Avatar for Agent Cosmic

What's the the difference if I were to use "this.x=y" instead of just "x=y"? All I know is that this refers to the object created from the class. Also what's the difference if I were to use "this.method()" as compared to creating a new class like so, "Class cs = …

Member Avatar for JamesCherrill
0
101
Member Avatar for isprog

I WAS WONDERING IF SOMEONE COULD HELP ME WITH MAKING A CODE FOR THIS TYPE OF WINDOWS APP PROGRAM. [URL=http://img692.imageshack.us/i/90497460.png/]CLICK HERE[/URL]

Member Avatar for Lusiphur
-1
200
Member Avatar for vlady

Hello, pls can anybody help me to break following string? example: output is 000 (type str) an I need to get [0,0,0] here is a script: [CODE]def test(n_input): bin_n=2 r=bin_n**n_input ## print r for x in range(r): ## print bin(x) f=str(bin(x))[2:].zfill(n_input) # x is type int, f is type str …

Member Avatar for TrustyTony
0
103
Member Avatar for GAME

Hello, I have I program that makes text turn into int32. I would like to convert the int32 (int32 is inside the text box) to text. Any ideas? Nothing on google.

Member Avatar for Lusiphur
0
274
Member Avatar for feoperro

Hi, Yesterday I downloaded and extracted ActiveMQ and ran the consumer/producer example and it worked. Today I did the exact same thing but I get the following feedback: [CODE] C:\Java\apache-activemq-5.3.2\example>ant consumer Buildfile: C:\Java\apache-activemq-5.3.2\example\build.xml init: compile: [javac] C:\Java\apache-activemq-5.3.2\example\build.xml:146: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable …

Member Avatar for feoperro
0
2K
Member Avatar for renoua

Hello, I have a xml file which has 106 books.. I xsl tranformed it and here: [CODE]<xsl:value-of select=" bioghist/bioghist/chronlist/chronitem/date"/> [/CODE] is the date every book was created with that format: ddmmyyyy how can i add slashes? and make it like that dd/mm/yyyy ?? thanks in advance :)

Member Avatar for awofesof
0
3K
Member Avatar for shirmaster

I made this code and i dont know what to do with my warning in calling function calc() inside the function getOption(). What should i do? need some little help here. [CODE]#include<stdio.h> void getOption(); void getData(int *num1, int *num2); void calc(int option, int num1, int num2); float add(int num1, int …

Member Avatar for shirmaster
0
103
Member Avatar for jonniebl

I have created a vb application that uses "shell" to run another vb application that uses a webbrowser to navigate to a web site and then sign in to the site and collect information for use in the original application. I built the browser application to execute the navigation automatically …

Member Avatar for GeekByChoiCe
0
178
Member Avatar for reza.adinata

Hi all, I am trying to work an an array , by storing them in a txt file so I can process it. I tried several ways for storing the key and value in a text file, but it does not work [CODE] $diff = array_diff($array1, $array2); $myFile = "1.txt"; …

Member Avatar for rajarajan2017
0
77
Member Avatar for onlinessp
Member Avatar for onlinessp
1
93
Member Avatar for litlemaster

[CODE]SqlConnection connection = new SqlConnection(); connection.ConnectionString = "Data Source = kumar\\SQLEXPRESS; Initial Catalog = phonebook; Integrated Security = TRUE"; connection.Open(); SqlCommand cmd = new SqlCommand("Select * From contacts", connection); SqlDataAdapter adp = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); adp.Fill(ds, "contacts"); comboBox1.DataSource = ds.Tables["contacts"]; comboBox1.ValueMember = "phone"; comboBox1.DisplayMember = "name"; …

Member Avatar for litlemaster
0
273
Member Avatar for shankarz
Member Avatar for kheyzee

how can i move images? and then if the image i move is not equal to the other image it returns back to its place?thanks.!

Member Avatar for vb5prgrmr
0
118
Member Avatar for maira74

hi i have a question about C++. if anybody could pplease help me out id highly appreciate it. this is what i am trying to do and honestly I have no idea how to do it or how to go about it: Write a C++ program that does the following. …

Member Avatar for p@rse
0
122
Member Avatar for monstercameron

just an idea ...im not a programmer yet starting college aug. c++ and java both have complex syntax and i cant learn on my own, python is good but not supported aswell and basic is really basic any more thanks to object oriented stuff English the programming and scripting language …

Member Avatar for 0x69
0
263
Member Avatar for nyra98

Ok, I am working on a website which will accept uploads and in an iFrame next to the upload form display a list of files in the upload folder. The iFrame will be showing a php script that is listing the files. Here is where the problem is, I can …

Member Avatar for nyra98
0
212
Member Avatar for BLKelsey

Hello all, Got a small problem I'm trying to figure out an obscure error (to me). What I'm trying to do is implement error handling with a loop count within a while statement for two sets of Menus in my Hangman game. Perhaps you all can lend me hand in …

Member Avatar for BLKelsey
0
184
Member Avatar for nezammca

hi., there is a parent page and child page . when i click parent page button it should go to child page and take values from there and return to preivous page its not working :( parent page: public class Default : Page { protected TextBox txtFirstName; protected TextBox txtLastName; …

Member Avatar for Lusiphur
0
154
Member Avatar for empror9

hello guys and hope you are fine :) please take a look to this code [CODE]#include <iostream> using namespace std; int sum(int num1,int num2, int sum1){ cout <<"Please enter two numbers:"; cin >> num1 >> num2; sum1 = num1 + num2; cout << sum1; return 0; } int div(int num3,int …

Member Avatar for empror9
0
133
Member Avatar for debow

Hello all, I'll try to explain what I'm wanting to do the best way I can. I have an event_results table that contains multiple athlete id's and for each athlete they are tied to an event in the same table. The screen shots should help explain. I also created a …

Member Avatar for debow
0
1K
Member Avatar for PythonNewbie2

I need a function which can take in a variety of time formats like "05/26/1999" and "02/14/2010 12:44" and convert them into this format: May-26 or Feb-14. I've tried to do this, but without success. Here's the code I tried (with some prints included for debugging purposes): [CODE] #Function for …

Member Avatar for snippsat
0
176
Member Avatar for PythonNewbie2

I need to do CSV parsing and I was wondering if this is possible with python and where I should go to learn how to code this script or get help. Let's say I have a CSV file with 20 rows and 4 columns. I need to: -Strip out the …

Member Avatar for PythonNewbie2
0
141
Member Avatar for Duki

Hey everyone, I have a label that gets data from a database and uses that as the .Text field. I want to compare this .Text field with an integer value, but I can't convert the text. The value I'm trying to convert to integer is "25,000". Here's what I've tried: …

Member Avatar for Lusiphur
0
440
Member Avatar for johndoe77

Hi, Long time lurker, first time poster! Basically here is my assignment, number 3 [url]http://books.google.com/books?id=20xVrpISzoYC&lpg=PA27&ots=llLlOPBIRL&dq=cout%20%3C%3C%20%22this%20is%20Exercise%2016.%22%3C%3C%20endl%3B%20%20%20%20cout%20%3C%3C%20%22In%20C%2B%2B%2C%20the%20multiplication&pg=PA638#v=onepage&q&f=false[/url] and so far here is what I got, and I really am stuck on this, if you can help would be great: [CODE]#include <iostream> #include <string> #include <iomanip> #include <list> using namespace std; struct menuItemType …

Member Avatar for Fbody
0
123
Member Avatar for hims4u

hello mods!! i am a newbie in jsp and just wanted to ask a basic question! i have a small jsp code for displaying the date and time. i have tomcat6 and apache web server installed on my linux machine(using fedora 12). can somebody plzz tell me how to run …

Member Avatar for ~s.o.s~
0
242
Member Avatar for dczen

I have an application that loops through files and moves them to their respective folder. if a file already exists in a folder, I need to append a letter to the filename: myfilehere.txt will become myfilehere_a.txt and if it comes in again, myfilehere_b.txt the error is on the increment. nothing …

Member Avatar for Lusiphur
0
96
Member Avatar for seanvitalaim

Is there a way to create a certain number of double variables based on user input. For example a user has three cars so when asked by the software how many vehicles he has and he enters the number 3 my software will create 3 double variables named car01, car02, …

Member Avatar for JamesCherrill
0
221
Member Avatar for Mr Programmer

I made a form with only 1 Button. I want that when i click that button, 2 more buttons should be appeared. Example: Button1 is clicked. Button2 and Button3 are displayed. I have named Button1 as Scan. When i click on Scan, the Button2(Pause) and Button3(Stop) should be displayed. When …

Member Avatar for Mr Programmer
0
240
Member Avatar for pyguy25

I have another string dilemma. I am asked to write a program that counts the number of words in a sentence entered by the user. This is what I have right now, although I don't think that it is anywhere near being correct: [code] import string def main(): print "This …

Member Avatar for j6m8
0
274
Member Avatar for Duki

Hey everyone, I'm not sure where I should be posting this - if a mod finds a more appropriate form, feel free to move it. I'm trying to figure out how to not only require .Net 4.0 with my installation package, but in the case 4.0 isn't installed already have …

Member Avatar for Duki
0
152
Member Avatar for jeevsmyd

Here is a program to find the sum of n numbers entered .. I have done this programme in c++ but now I was asked to do it using c.. there is some error with the program.The basic array input ,display thing itself is not working.. Kindly help me .. …

Member Avatar for jeevsmyd
0
117
Member Avatar for Prashant20

Hi..!! i have created a Customer Details form in C# asking detail about customer...One of its field asks for customer email.. Please tell me how to validate a email id..Thnx..!!

Member Avatar for Abhijeet Thorat
1
1K
Member Avatar for heinzw

Hi, I am using a FILE to write a protocol of the program execution which I will be using in case of crashes. Whenever I write a message to the file I open it [CODE] if ((mfdprot = fopen(protfile, "a")) == NULL) { [/CODE] after that I close it: [CODE] …

Member Avatar for heinzw
0
290
Member Avatar for doomas10

Hello all, I have a question. You see i have a file which contains data in this format: index 388.315813 index 311.214286 syndrome 289.708333 factor 184.246753 loss 168.578313 index 451.123455 factor 321.676544 What i want to do is to read every line and print it. However if i encounter the …

Member Avatar for TrustyTony
0
420
Member Avatar for phphit

Ok. I have ZERO PHP Knowledge, still good in editing php and all that stuff. Only know copy paste and have no knowledge what that means. Still would try to explain my problem. I use variable to fetch data from mysql. Ex. my url is [url]http://www.example.com/venue.php?vcity=New[/url] York. Now, I want …

Member Avatar for phphit
0
325
Member Avatar for anerchy

[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication8 { public partial class Form1 : Form { double deger1; double deger2; char isaret; public Form1() { InitializeComponent(); } private void button_1_Click(object sender, EventArgs e) { string a = ("1"); textBox1.AppendText(a); } …

Member Avatar for nick.crane
0
246
Member Avatar for MDanz

i pass this to a div innerhtml from javascript. when i do it like this it doesn't work. it should display an image hyperlink [code]var newtext4=("<a href=" + number + "><img src=" + newtext2 + " /></a>");[/code] if i do just text, it displays a hyperlink. [code]var newtext4=("<a href=" + …

Member Avatar for fxm
0
134
Member Avatar for andrewb

Hi Iam very begginer I want to use the script named lavaLamp from here [url]http://www.gmarwaha.com/blog/2007/08/23/lavalamp-for-jquery-lovers/?cp=all[/url] ) but I donn't know how I can use it I try to change the <li class="current">[B]<a href="#">Home[/B]</a></li> tag to the <li class="current">[B]<a href="http://google.com">Home</[/B]a></li> but it doesnt work please help me [CODE] <h3>With Image</h3> <ul …

Member Avatar for andrewb
0
87
Member Avatar for Sunshineserene

I have a text file in this format: AUGC U[B]1212[/B] A[B]2121[/B] G[B]3434[/B] C[B]4343[/B] I need to extract the number that I need depending on which variables (letters) I'm comparing. For example, I need the value for A and U, so the value I need to look up for or extract …

Member Avatar for NormR1
0
241
Member Avatar for kandarpa

Hi I am tryibg to check for presance of a string in a big string. I tried as follows: [CODE]IS_VECTOR_TEST_CASE=`grep AIV "$PWD"` if [ "$IS_VECTOR_TEST_CASES" = "" ] then #do something else #do something fi[/CODE] This always giving me as if [ "$IS_VECTOR_TEST_CASES" = "" ] is true with following …

Member Avatar for kandarpa
0
109
Member Avatar for bchaney

I'm calling a GUID with a system function and trying to insert it into a database as a primary key. i'm using vb 2010 .net framework with sqlce server making my datatables. the column is AutoNumber which i set up to be a uniqueidentifier. the length is not adjustable and …

Member Avatar for bchaney
0
1K
Member Avatar for miweiser

Can someone please advise what I may be missing? How can I not only make it better, but this does not seem to be working, although 1 domain instance has worked for some time, I tried adding to it: [CODE] if(document.form1.email.value.length > 0) { var theEmail = document.form1.email; var at …

Member Avatar for fxm
0
283
Member Avatar for JoBe

Hello ladies and gents, Had to make the following exercise in Accelerated C++ Write a program to calculate the average of the numbers stored in a vector<double>. THis was my solution: [code] #include <iostream> #include <iomanip> #include <vector> using std::cin; using std::istream; using std::cout; using std::setprecision; using std::endl; using std::vector; …

Member Avatar for NP-complete
0
272
Member Avatar for jemz

hello can you help me how can i count the element in array heres my code [CODE] int [] num = new int [10]; int i; System.out.print("Please input 10 numbers"); for(i=1;i<=10;i++) { num[i]= console.nextInt(); System.out.print(" " + num[i]); } System.out.print("\n"); System.out.print("The elements are"); for(i=1;i<=10;i++) { System.out.print("The elements are: " + …

Member Avatar for jemz
0
5K
Member Avatar for vlady

Hello, I try to generate output (all posibilities) for logical AND. Nb inputs is 10 and that means there are 1024 combination. example: n i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 output 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 …

Member Avatar for TrustyTony
0
173
Member Avatar for jemz

hello can you help me please what is the string method to be use when searching a keyword that can be found in first, middle, end of the word... example "CH" this will search all names having this "CH"...can you help me what is the string method to use this...hoping …

Member Avatar for jemz
0
90
Member Avatar for QWaz

Hi, I am trying to get money to display correctly with the decimal points in the right place. I have read the PHP manual, but just don't get it. I want to do 2 things: 1: if someone types in 123.23 -> I want to remove the '.' (so it …

Member Avatar for sacarias40
0
117
Member Avatar for Koibu0

Forgive my ignorance with such matters, but I have what is probably a simple issue that I can't seem to resolve on my own. I'm getting this error when sending a request to the SOAP server [CODE]org.xml.sax.SAXParseException: Content is not allowed in trailing section.[/CODE] I've checked the end of all …

0
121

The End.