132,726 Archived Topics
Remove Filter ![]() | |
Hi I’m trying to use the function os.execv to execute a batch script within my Python script. Second argument for os.execv shall be a tuple or a list and I test to send tuple or a list as second argument, but nothing works, I get different type of error message. … Software Development python | |
I am trying to convert some data that I read in file as string data to a float array The data that is read are in two dimensional string array like [CODE]char tmatrix[10][100]; for(j=0;j<k3;j++){printf("\n %s",tmatrix[j]);} //k3=max data read 0.5 0.2 0.3 0.6[/CODE] Now I need to convert the content of … Software Development c | |
how can we do "make" and "makefile" in VC++ should I download the GCC compiler to windows Software Development c++ | |
Hello! I was wondering if anyone has a forum backend, in python? I know a bit of python myself, but I want the backend (working backend for a forum) I am going to make the frontend myself (in html, not php, has to be html) Please provide it! Thanks in … Software Development python | |
Hie, i am writing my 1st programme form to automate a frequent task. Attached is my current form. 1) open a file & sort necessary details which will be saved in a designated folder in C drive. 2) show sorted files from C drive. 3) further select & segregate files … Software Development visual-basic | |
My assignment asked me to write a function that would print out a "*" when a number was prime. My output also has print out the odd numbers between 5 and 49. Anyway My function prints out only the prime number, while I want it to print out all the … Software Development c++ | |
Hi All I am trying to connect to my database from the front end in VB.NET 2003, the connection strings that i have tried are not working at present. I have VB.NET 2003 program from last year but that was using access as the back end and VB.NET 2003 as … | |
i am using vb.net as my front end and excel and access as my backend for databases i have the connectivity code of both ends data retrieving has been done but now i need to encrypt the data in my database and then retrieve it and decrypt it in vb.net … Software Development encryption vb.net | |
i have a problem with my code... i use this code to open an excel and manipulate the data [code] Dim xl3 As Excel.Application Dim xl3sheet As Excel.Worksheet Dim xl3wbook As Excel.Workbook Dim FilNam As String Me.CommonDialog1.ShowOpen FilNam = Me.CommonDialog1.Filename If Me.CommonDialog1.Filename <> "" Or Me.CommonDialog1.Filename <> ".xls" Then Set … Software Development visual-basic | |
Hey guys, we were given an opportunity for extra credit in my OOP class. We're going over recursion and my prof said if we could do a project using recursion and do another useing iterative statments, and time them, we would be given extra cred. Is there a way to … | |
Hello anyone if you see this please reply fast: i need some major help with some programming and logic code through liberty basic, My project consist of making an ATM Program allowing the user to only enter the security code 3 times and it also prompts you to enter a … Software Development c first-post | |
[INLINECODE] I am having a problem trying to write a program that gets numbers from a selected file and returns each numbers sum of its perfect divisors. Could anyone give me a few pointers??[/INLINECODE] [CODE]#include <stdio.h> /* define fopen,fclose,fscanf,fprintf, EOF */ int sum_of_divisors(int num); /* pre: Accepts the integer */ … Software Development c | |
My Question is regarding the code written below. If you look at the function called "function" when 'a' is passed to the function and the function "function" is evaluated. I was wondering what the return value would be for the first pass when (a =2), my questin specifcaly is that … Software Development c++ first-post | |
Hi everyone! At the moment I am working on an OOP bank account program as an assignment in VB.Net. FYI:It has a credit account class with properties of AccountName, AccountNumber and Balance. The credit account class has two methods - deposit and withdraw. You can overdraw on the credit account, … Software Development gui oop user-interface vb.net | |
I tried to write a basic calculator program, Visual basic finds 1 error. I cant find it. Please help. I am kind off new to programming. [code=c++] #include <iostream> using namespace std; int main(void) { system("TITLE calculator"); system("COLOR 9"); char cChar; double dfirstnumber; double dsecondnumber; char cDoagain; do { system("CLS"); … Software Development c++ visual-basic | |
Hi everyone, I was browsing through the forum to find some code for a palindrome program. I get some parts of it, but I'm confused what a certain while loop does. Can anyone help clarify? [code] char s[256],t[256]; /*char array of length 256*/ char *p,*q,*r; /*define char array*/ int i=0,j=0; … Software Development c | |
I`m trying to compile a small program for authentication on a torrent site but when it reaches the [B]setRequestProperty()[/B] line throws an exception: [COLOR=Red]Exception in thread "main" java.lang.IllegalStateException: Already connected at sun.net.[URL="http://www.protocol.http.HttpURLConnection.setRequestProperty%28Unknown"]www.protocol.http.HttpURLConnection.setRequestProperty(Unknown[/URL] Source) at MovieCrawler.main(MovieCrawler.java:22) [/COLOR]I understand that [I]something[/I] is [I]already connected[/I]! How can I disconnect before using this method; … Software Development http-protocol java | |
Im trying to create a datagrid that will display an image instead of what is actually stored in the database. For instance if the result of a zodiac is leo, then show the leo image, or if it is cancer, show the cancer symbol, etc.. I am using a datagrid … Software Development vb.net | |
I am trying to relearn C by going through the K&R exercises (I have the first, non-ANSI, edition...that's how long it's been since I last programmed in C under Unix as a software engineer). I have Visual C++.net version 2003 on a Windos XP computer. I would prefer to continue … | |
Hi all... My first post in this forum... The problem is that of the String.Split method... I cant seem to get the String.Split method to work as I wanted... My objective is to try to read the data which are three columns of numbers and try to array them so … Software Development first-post | |
I don't know if I am the only one having trouble with StretchBlt or if my symtom is a normal situation. StrechBlt works fine as I zoom the picture larger. I expect the pic to loose quality if I zoom out too far. My problem is: As I zoom smaller, … Software Development c++ | |
ok the goal of the project is to define a class called DateCS212 and use an array of DateCS212 objects to store a sequence of dates. The main program, Project2.java, will read the dates from a file and will instantiate a DateCS212 object for each date read from a line … Software Development java java-swing ![]() | |
Hello there, Im writing a small VB application that has a lot of IO with Excel. I search through xl sheets and read cells etc. reading and writing individual cells from/to excel is very slow from VB. In order to WRITE an array to EXCEL I use a syntax that … Software Development visual-basic | |
Howdy, I need to pull database information into an XML defined form. One of the db fields has to be contained in a CDATA node. This line of code returns data, no errors [code] <HTMLCONTENT type="html" width="400"><![CDATA[<body><p>]]><%=aContent%><![CDATA[</p></body>]]></HTMLCONTENT>[/code] It works until I try to use it within an application which uses … | |
Alright, I am back and I have a new program that I have been working on all day. It's funny because I'm sure most of you guys could do this in 1 minute. But as I said before I am 49 years old and do not use computers, just trying … Software Development c++ | |
I have to write five function which i do not have to put in "main" but have to call inside main. i hade come up with a code which did not work and was incomplete but i was futher told i have to use global variables and not local variable … Software Development c++ | |
hello .. please i need ur help in this .. i have this exercise .. 1. Define the following data member: a. fahrenheit_temp of type float. b. celsius_temp of type float. 2. Define a constructor that: a. Set the default value for the data member to zero. b. Call set … Software Development c++ | |
hi cany anyone help me how to upload and download an audio file using jsp | |
Ok, so my goal is to draw a rectangular spiral in java. So far, I've created the Spiral Viewer class and the SpiralComponent but I'm not quite sure how I would implement the SpiralGenerator class. Here's what I have: SpiralViewer: [CODE]import javax.swing.JFrame; /** Test driver for Spiral class. */ public … Software Development java java-swing | |
Hi everyone, this is my first post. I'll try to be concise. It's been a while since I've worked with C++, since I usually work in Java. I'm writing a program that I want to have run in the background while the system (Windows XP) starts up. But I want … Software Development c++ | |
To get an ascii value of a char we have the ascii(c) function in curses.ascii module... but in the curses module _curses module is imported... which is not there in the library hence exception is being generated... can anyone kindly help.. or suggest any other method for conversion... Software Development python | |
Hi all, I create a database on SQL 2005 Express edition and link it to a C++/MFC application as follows. It wont gives any compile time errors. But at run time, it gives an error. Here are details. Link the database in OnInitDialog() here is the code [code=c++] BOOL CSRFDBDlg::OnInitDialog() … Software Development c++ open-source sql | |
I need help to understand what I'm supposed to do in this question I'm not asking for a code what I need is explanation thanks a lot write a function template that returns the range of values stored in a vector <T>that is the difference between the largest value and … Software Development c++ | |
![]() | I'm doing image processing. To make the computation faster, I found fork command. With fork command, I can make the computations run parallelI. The problem is the result only exists inside child process. int main(int argc, char **argv){ int n, num, pid; double hist[num][n]; for(i=0; i<num; i++){ if((pid = fork()) … Software Development c |
// sorry i accidentally posted this in VB.Net earlier.. in case you saw it before. thought i'd make a program for fun.. although to be safe im cutting it up into many forms to save room. Anyway doing this means im going to have to get alot of the variables … Software Development vb.net visual-basic | |
I am trying to use the function cmpfile of the cmp module which returns true or false if filepaths passed are same or not... But the interpreter flashes an error "undefined global name false"... Also it doesnt accept true or false in other functions also.. what might be the problem??? … Software Development python | |
Where we need to enter all type of symbols and contents in RTF (Windows application) some of the key issues to be addressed are easy entry of equations, mathematical formulas, diagrams and multi language support (UNICODE) Previously Visual basic 6, we had solved it thru OLE call but .NET version … Software Development vb.net visual-basic | |
>I disagree. You have to have all kinds of special code to get scanf() to work properly. Only if you aren't using scanf for what it was designed in the first place. When you have to write workaround code to get a function to work, you're using the wrong tool … Software Development c file-stream | |
hi all, i m new in c#. I dont know how to convert hexadecimal value of a character into its charcter equivalent. please help me in solving my problem. thanx in advance. Software Development c# | |
HI, Can someone tell me if two static hashtables declared with the same name in two different classes will cause ambiguity while acessing in each other classes without refering them with class Name. Software Development java | |
So far this is what I have: [CODE] #include <iomanip> #include <cmath> #include <fstream> #include<string> #include<iostream> using namespace std; int main() { ifstream infile; ofstream outfile; infile.open ("Wordcalc.txt"); outfile.open ("WOutput"); char A = (1*2.0);//value for letter A char C = (3 - 20.4); char D = ((4/12.0) *3.09); char E … | |
Is this an example of a recursive function?? Somebody on another forum helped me put this together, as I am trying to make a diamond shape out of asterisks. But he did not know if this was a correct way of using recursion. Can somebody just tell me yes or … Software Development c++ | |
Question : Phonebook Write a phonebook program that can be used to save your contact list (like what you have in your mobile phone). The program should have the following features : •Displaying all the contact records •Save new contact into the list •Delete contact from the list •Search for … Software Development c++ | |
I had this for classwork and was able to get it to work.. is there a better way to do the right alignments for the cost columns?? When I turned this in, the output returns right, but I was told there was an easier way to get them to align … Software Development c++ | |
hi friends, I don't have c++ software. plz give me the c++ s/f and tell me the link........ | |
Hi, I want to design a web form, on which, the client may select one or more email addresses to send the form data to. I was thinking that a drop down menu would be the easiest, but I'm not sure how you tie the selections to the submit button … Software Development visual-basic web-design | |
I have been assigned to create a program to simulate a soft drink machine. The following structure is supposed to be used to store the following data: Drink Name Drink Cost Number of Drinks in machine I am suppose to create an array of five structures and initialize the elements … Software Development c++ data-structure | |
I am new c++ programmer. I looked at the code for the "bouncing ball" which was said to be "hello world" of Win 32. I have been trying to do the following: 1. Make the this ball move in a predefined rectangle (one ALREADY drawn) even before the ball starts … Software Development c++ | |
ok here is my code [code=C++] #include <iostream> #include <ctime> using namespace std; int main(void) { char cName[81] = "", cUser[9] = "", szComp[9] = "", szr[5] = "Rock", szp[6] = "Paper", szs[9] = "Scissors"; int cComp = 0; srand(static_cast<unsigned int>(time(0))); cComp = rand()%3; if (cComp == 0) strcpy_s(szComp,szr); if … Software Development c++ | |
I am an enthusiast in Access trying to do some god for the local chapter of the Salvation Army. I have been asked to create a database that when individuals information is entered, it checks to see if they have already registered either as a primary, a spouse, as another … Software Development vb.net |
The End.