132,726 Archived Topics
Remove Filter ![]() | |
Hi, I am really new to Python and I am having real trouble with this new language. This is what I want to do: I have two sets of .txt files that contain numbers. They look like this: FILE1 1028.085 283.795 2056.13 295.254 121912.4 11.346 0.004 147.932 780.677 966.771 289.326 … | |
Hi to all... I am getting a warning, i am trying to avoid that but its not sorted out..Please suggest me to avoid that warning. my code is as follows.. [CODE] const char var[][2][5]={ {"1.95","3.70"}, {"2.40","4.60"}, {"2.70","5.70"}, {"6.60","13.40"}, . . . . }; void fun(int col,int row,char *str) { ... … Software Development c | |
hihi i am a newbiest on c# and window form i am doing a web service, and use a form which contain a datagridview but meet quite alot of problem 1. how to validate user input with database, like example, when the user insert a username, however the database have … Software Development c# | |
Hello guys, please could somebody help me...there is a problem with logic in my loop with pretty the same structure in methods: [B]public void isMember()[/B] and [B]public void deleteMember()[/B] Compilator ignores the scanner and directly goes to else statement and puts it in the loop 10 times... [CODE] import java.util.*; … Software Development java | |
Hi I am a student needing help with my assignment. My assignment is a loan calculator that takes in a customer’s details such as name, address, occupation and the amount they wish to borrow. My assignment says the base interest rate is 9.7%, however: if the amount a customer enters … | |
Hello, iam a student who is currently studying for an FD in IT, I need a bit of help with my java assignment and as it is a mortgage calculator i am developing, maths is not my strongest subject I have been trying to find out how to take in … | |
Hey guys, I was wondering if there is a way to group controls together without using any containers such as panel, group box, or container. Thanks Software Development vb.net | |
Hi, I have a code that writes data to excel using setcontentype(application/vnd.ms-excel) Now I want one of the columns to be formatted to currency. I do not intend to use any additional jars(POI, etc). Is it possible to achieve the task. Thanks Software Development java | |
Attached is a visual representation of My Array that was used in my VB6 program the dimensions are: [CODE]Dim MyArray(5,30) Option Base 1[/CODE] I am using an ACCESS DataBase to populate the array. Using the For Next Loop I can access any position within the array such as a individual … Software Development vb.net | |
Hello, so my question is this..lets say you have a file like this. Computer Science 01 //course number 30 //number of students that can enroll 4 //number of students currently enrolled Math 02 //course number 20 //number of students that can enroll 12 //number of students currently enrolled And i … Software Development java | |
Hi Everyone, I'm having a hard time on using Transaction then after that I need to use sqldataadapter. When I tried the code below I'm having an error "[COLOR="Red"]ExecuteReader requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The … | |
Hi I have been looking all day trying to find a way to do this. I need to run a Batch file which is held on a server, the file path begins with a IP Address which DOS doesn't like. So i found the pushd command which assigns a temp … Software Development file-system vb.net | |
hi all, please help me on this... Is there a way to get the SQl View's String Command used to create said View? For Example, I have a View named tryView, now I want to get the string command used to create tryView like this one... [QUOTE] CREATE VIEW tryView … | |
I have a string, which is read from a database. The string can be just "null". I need to decide whether it is null or not? Among the following ones, what is the appropriate way to do it? [CODE]String a = …; If (a == null) If ( a.length == … Software Development java | |
Hi, I am trying to make a timer applet when I click stop button to stop counting, disappear stop and appears continue button and when I click continue to continue the counting. My code is : [CODE] import java.applet.*; import java.awt.*; import javax.swing.*; public class Timer extends Applet implements Runnable … Software Development java java-swing | |
[CODE] set a = 3 set type = a echo $($type) [/CODE] How for me to get value of 3 from variable $type which is a. I can't get value 3 from what i do above? please help thanks! Software Development shell-scripting | |
Could anyone tell me the different between this two? I try to learn the C++ and i'm a newbie on it? Any recommended books or website to learn C++? Thanks in advance... Software Development c++ ![]() | |
Hi!, I have a formProd and a dataGridView in it. I want to access the dataGridview of formProd from formMain. [CODE] foreach (Form form in Application.OpenForms) { formProd prd = (formProd)form; if (prd is formProd) prd.itemsGridView.DataSource = DS.Tables["product_Header"]; }[/CODE] this gives me InvalidCastException. can any one tell me how to … Software Development | |
Hi, im new to c#.When i execute the following code i get "vshost.exe has stopped working" message. Firstly i insert some data to a table in sql server 2008.then i want to retrieve the MAX(Mem_ID). My insertion is working properly. But when im trying to retrive MAX(Mem_ID). It gives above … Software Development | |
class Foo { public static void classMethod() { System.out.println("classMethod() in Foo"); } public void instanceMethod() { System.out.println("instanceMethod() in Foo"); } } class Bar extends Foo { public static void classMethod() { System.out.println("classMethod() in Bar"); } public void instanceMethod() { System.out.println("instanceMethod() in Bar"); } } class Test { public static void … Software Development java | |
So guys here is my situation. There is text file.Which contains some strings.They are all comma separated. What i wanna do is just read the text file and print individually those strings which are comma separated. Suppose the text file contains: dog,cat,bird,good,bad,blah,blah,blah etc.... The python script should print dog cat … Software Development python | |
Hey, I just discovered a very interesting phenomenon. I have 2 programs. m.cpp [CODE] #include <iostream> #include<time.h> using namespace std; int main() { int a=34,b=40; while(1) { usleep(400000); cout<<a<<" "<<b<<"\n"; } } [/CODE] and n.cpp [CODE] #include<iostream> #include<stdlib.h> using namespace std; int main() { int a,b; while(1) { cin>>a>>b; cout<<a<<b; … Software Development c++ | |
hi Dears, i am very very new in programming and i have a problem with inserting something into table, this is when i connect it with database iam able to read everything in database, private OleDbConnection myCon; public Form1() { InitializeComponent(); myCon = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Aidi\Desktop\AccessDBase\WindowsFormsApplication1\WindowsFormsApplication1\Students.mdb"); } i have create … Software Development open-source | |
HI , i have a little problemn. I have to tables codMP and Content.Display like this. codMP name In 1 x ? - 20 - here i want to sum the column from the second table where codMP = with what is in the column codMP. The same for the … | |
i am using python idle in windows7 to run my program. whenever i try to run the program i get an syntax error as unexpected indent. the code i am trying to run is as follows: [CODE]def print_lol(movies): for each in movies: if isinstance(each,list): print_lol(each) else: print(each)[/CODE] Software Development python | |
I've registered my raw input devices successfully but Windows doesn't send me the WM_INPUT message when I press keys or do things with the mouse. I am using an event hook to get the messages since I'm using SDL and it receives other messages fine. This is the code I … Software Development c++ | |
Hello everyone, I am current upgrading some of the functions on an inventory system. Current system accepts manual data input from the user and stores them in a SQL database. One of the inputs is control number which is a primary key in one of our table so it needs … Software Development vb.net visual-studio | |
I am trying to use SDL with the Raw Input API but whenever SDL sends me a keyboard input message, the [icode]msg[/icode] it sends me is an invalid pointer and it gives me an access violation when I try to use it. I check to see if it's invalid for … | |
I have a application contain 1 text book for Multiple line 2 Button(Query and Export) and 1 DataGrid View If user enter the query in textbox and click on Query Button i want to prompt for use input to get key for validating purpose My application is working fine But … Software Development | |
Hi Frnz, anyone can help me with code , how to setting up [B][U]"solr search engine "[/U][/B] for document search on ur desktop in .net Software Development | |
Are there ay freely available language library? I need class of LETTER, WORD, SENTANCE, TEXT, ... for example a letter can be more than one character, like sch in German WORD category has to be stored, like noun/adjective etc. I have to write my own package? Software Development c++ | |
Hi, I want to call CTest's StaticMethod via a function pointer from Class CCaller. I noticed that StaticMethod is not inlined and the call takes much more time compared to calling the function directly. When calling directly the function gets inlined - even without the inline keyword. Can't the function … Software Development c++ | |
Function to Convert Dataset to Excel. It will export all the table of the given dataset to the given excel. Example: [CODE]ExportDatasetToExcel(dsFinal, "d:\\my.xls") [/CODE] where dsFinal is my Datase and second parameter is the excel file location. Make sure the excel file exist. | |
Hello, I do the following exercise: [COLOR="Green"]Write a function called most_frequent that takes a string and prints the letters in decreasing order of frequency. Find text samples from several different languages and see how letter frequency varies between languages. Compare your results with the tables at wikipedia.org/wiki/Letter_frequencies.[/COLOR] I try my … Software Development python | |
I need some help with some code. I'm using boost filesystem library V3 c++. I am using an iterator to list files and directories recursively. My program runs perfectly until it scans the "System Volume Information" directory on Windows machines. At that point the program throws an exception because it … | |
Hello! I need to create a system that will not calculate weekends and holiday. Can somebody help me? Thanks in advance. Software Development vb.net | |
I'm a beginner in programming, and I'm doing a project that requires continously getting an input from the Serial Port. I already used the SerialPort class to retrieve the data and use it in my programm, and now I want to write those same SerialPort values (splitted into array[0]....array[7]) into … Software Development | |
Hi, I am gettitn error in the python scripts as shown below: AttributeError: 'module' object has no attribute 'lib' I have installed the package WxPython of 2.8 version and Python of version 2.6 Please help me out to resolve this error Software Development python | |
Here's the problem I'm trying to solve: I've written a DLL that's used as a plugin within another program. Within the DLL is a number of structure allocations which represent the positions of points in a mesh (over time). These allocations can be very very large. If another instance of … Software Development c motherboards-cpu-ram | |
hi. I am new to C #. I want to know is there any way to add shortcuts keys to our application buttons. I mean if the user press 'n' key on his/her keyboard button1 will triggered it's self and perform the task behind the button. Plz help.. Software Development | |
Hi, I am exploring a timer function which I wants my program function runs every 10 minit interval. Below is my coding: [CODE] Dim timer As Timer timer = New Timer(600000) 'timer.Enabled = True timer.Interval = 600000 timer.Start() 'Do function timer.Stop() [/CODE] Actually I am not familiar with timer function, … Software Development vb.net | |
Hi I found this piece in another "solved" threat. The person that wrote this however had a different problem with it. I changed the bar size value from 12 to 6500. For me this works but has a major flaw : When : lengths to cut < size of a … | |
Hello, got a question that has been bugging me For example there is this text file: Name: yyyy mm dd Phone: Email: Andrew 1989 5 8 123459886 somethin@ Emma 1988 1 30 256497565 other@ Stan 1991 12 26 456548912 tell@ Charles 1975 8 11 123154894 2eee@ can i get first … Software Development c++ | |
For the computation involving multiple types of variables, such as integer and double, is the following approach the correct way in terms of not causing any hidden error or information lost? [CODE] int a = 2; double b = 3.0; double c; c = (double)(a+b); c = (double)(a/b); [/CODE] Software Development java | |
Good morning all, Hopefully a quick solution, I've done some reading up on taking command line arguments and I almost have it licked, but I'm running into some trouble trying to send into a method.. I'll give you an example of what I mean Let's say I want to send … Software Development java | |
Hey, I am writing this program in which I get x and y coordinates on stdout from a C program.....something like 23 34 45 56 21 56 .. . and so on.... now I need to pipe these values into a Java program and display a cube at the corresponding … Software Development gui java java-swing | |
Hi everyone! i have a question if someone know how can i check with a VB application if another programs window is minimized or maximized? example i would make a simple VB app that could while running check with a timer if "MS Paint" for example was maximized and check … Software Development visual-basic | |
Hi everyone, I'm trying develop a code to read a file containing records of INDIVIDUAL ID, FATHER ID and MOTHER ID, and re-code the file using multiple trees. At this point I'm not concerning to re-code the IDs and I would like to build the multiple tree. The idea is: … | |
Hi I have to pass a 2D array by reference to a constructor of a call where it manipulates this array. I have found out one way of doing so as: [code] class calc{ double (*my_a)[size]; calc(double (*arr)[size] /* or double [][size] */) : arr(my_a) {} // Passing array in … Software Development c++ |
The End.