199,113 Archived Topics
Remove Filter ![]() | |
Hello dear all. i need a help where i'm try to calculate execution time for my program. seem i have a problem with how to set it up. [code=cplusplus] #include <iostream> #include <time.h> #include <sys/timeb.h> typedef int tRow[10]; int N, i; int x[100], xi[100]; /* The permutation and its inverse … | |
I'm trying to run a program using a python program. The program is supposed to run the program, get the output, and write it to a text file. The program being run (which is an exe), takes one argument, so I used: subprocess.call(["path", "arg"]) This works fine, but the problem … | |
[QUOTE=ArkM;657823]You are welcome![/QUOTE] Simulation of an Airport Runway An airport is developing a computer simulation of air-traffic control, which handles events such as landings and take-offs. It is a small busy airport with only one runway. In each unit of time one plane can land or one plane can take … | |
I am practicing lighting and smooth shading. THe problem is that this code only shines the light for front and the right side , but when the objected is rotated, it shines at constant position (the front and right) and not to the side that are on the positioned light. … | |
i want to create a document using apache xml parser, can you guys provide me with sample code? After creating the document in the memory, i want to save it as an xml file. | |
Hi! I want to write a program, which calculates and draws the path of a planet around a sun. Actually it just draws the planet and the sun (and the velocity and the gravity force vectors). The sun is still, it doesn't move, just the planet is moving. The planet … | |
Hi. I take a c++ class in school and we use Borland 5 as our compiler. At home, i have windows visual studio 9.0 installed. We normally just make programs that run inside the command prompt, but we are beginning work on doing things visually. My question is, whats the … | |
hi..i am having problem in writing a function which returns a boolean value if the linked list is circular or not...the linked list is singly...moreover the circular means here not simply last node next is first node but linked list can be circular from any node to any node... i … | |
Dear all, How do I access folder+files is located outside webfolder ? My Intranet application website address is [url]http://160.115.30.20/BMI[/url] and physical folder in server is C:\Inetpub\wwwroot\BMI. Folder I want to acess is located in C:\Inetpub\wwwroot\Documents. Now, The folder is in webfolder. I want to move it to outside webfolder to … | |
Hi all, I'm relatively new to python (I've been writing python code for about half a year now) and I'm trying to figure out how to use "seek" on larger files. I'm doing some work with large hard disk image files, and the raw devices themselves. I need the ability … | |
Hi, I am looking for a free tool which let me write pure html + user defined special tags, which would be transformed on demand into php file. For example I can define source like this: [code=php]<html><body> <config/> <mysql> <form name="frm" action="nextstep.php"> <select name="xxx"> <query sql="select value, name from table … | |
I have researched and have not come up with any examples and no answer as to how to do this. Please help... The molecular2.java does all the computation. I will only include a snippet of it. This file is like this because I needed to return multiple items and could … | |
Hey, what I am trying to do is change the way I assign a title on a dos command prompt, so basically change the title input from: [CODE] system("TITLE welcome to my page"); [/CODE] to: [CODE] title("Welcome to my page"); [/CODE] I have tried to code it however there are … | |
Hi men 1-I wanna ask that how an OP works.I mean you install and launch a software on an OP.But you launch an OP on what.and how is programming an OP? 2-How can i define a function that the number of its parameters is infinite. 3-The difference of programming for … | |
Ok, so I am working on a project that changes: [CODE] cout << "this is a test script"; cin >> test [/CODE] to [CODE] say ("hiya"); input (name); [/CODE] It works fine but theres one problem, I don't want to code it into a complier like dev c++ I want … | |
I have a big table contain a mobile numbers, I need to count each mobile number, how many time it was entered to my table? | |
Could anyone tell me how to programmatically list the filenames of all open office files (winword.doc files, excel.xls files) ? | |
Hello, I tried to run a probram from the book "Big Java" by Cay Hortsman that parses an XML document. I typed in the line in Eclipse and it gave me a red box error message saying "the import java.xml can not be resolved". This tels me that i do … | |
Hi all, I am just trying to get the information i collect from the pc's hostname and pass it into a db. All the db passwords, location etc are correct but i am getting nothing. [CODE]Imports System Imports Microsoft.Win32 Imports System.Data Imports System.Data.SqlClient Public Class Form1 Private Sub DB() 'Your … | |
I'm trying to get the content of a web page that is written in pdf format. The following code worked very well for me when I tried to read a regular web page, but it prints all kinds of weird letters when I try it on a pdf page like … | |
i'm trying to figure out what is the fastest way to do an odd / even check on numbers i don't know whether there is a mathematical way of achieving this i've heard that the fastest would be checking the last bit in the binary array but i wonder what … | |
i'w wondering whether there is a difference between fstream and stdio.h when processing a file with these data [CODE] 10 10 P[/CODE] with fstream it's easier to get the data since with stdio.h i'd need to get every single char and number with getc() and translate i t into whole … | |
Hello colleagues, I wan't to upgrade to python 2.5.4 from 2.5.2 but I don't want to lose my modules. Is it possible to upgrade without removing those modules? Thanks | |
Can programs written in Visual Basic be designed such that they can read and write Unicode Files? | |
I am using ASP with MS Access Database to create a photo album there are two tables in the database tblGallery and tblPics each table has the following columns tblGallery = [galleryID] [galleryName] [galleryDate] tblPics = [picID] [picCat] [picName] tblGallery.galleryID = tblPics.picCat in order to create a relational Database and … | |
Hello sir, I am doing project on processors. I have a program called "START" and another program called "main". Now, i want to execute "START" program within the "main". I do not want to just call instead i want to run the "START" Program. please help me.. Thanku Krutthika ![]() | |
| |
listen i got to compile one file to a dll and one to an exe all in one project so i got 1 file called main.cs [CODE] // File: main.cs using UtilityMethods; class TestCode { static void Main(string[] args) { System.Console.WriteLine(add(2,3)); } } [/CODE] [CODE] // add.cs using System; namespace … | |
Hi I am working in a shopping database with php. For this I need to create a Id ( automatically) for each product when I add a new item in to the database and I am using php. I want to create that id automatically and without repetition. It can … | |
Hi there.. I am new member here and having a problem. I am working with a software solution co. and we want our software to support "Internationalization". means want to provide multilingual support. We are using vb6.0 as development and all the diff APIs for our working..... can anyone tell … | |
I am writing a small wizard to help the user gather data in a pleasant way, but I don't want to use the standard install wizard layout, so I am working on writing my own. I have tried using a standard TabControl but I don't want the line of tabs … | |
i want to use a JButton with a rollover sound..so created a button with a sound using adobe macromedia flash... how can i display it in the swf button in jpanel?? here is the button..[URL="http://www.mediafire.com/?p2kbme0czgn"]button.swf[/URL] [code=java] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class MyPanel extends JPanel { … | |
hi guys , im a little stuck im doing my courses in university on software enginering and i have to make a program with (1 button , 1 listbox) now when you press the button the listbox has to display all the files on the C:\ drive but i have … | |
Can someone please point me to a good windows api tutorial? The one that i found ([URL]http://www.winprog.org/tutorial/[/URL]) is nice, but it doesn't explain thing nearly enough. It kinda just drops the stuff on the person trying to "learn" it. I was able to follow through the first three sections, and … | |
Hi! I am trying to make a function, which transposes matrix. When declaring it, i get this error, which i mention in the title. I`ve tried to find the solution myself, but i am quite new to C, so i don`t even understand what does this error mean. (I know … | |
Hi all, I'm creating a progam in C# that reads a file location at start up and displays the parent folders in a combo box. This file location may change in future. So I intend to keep this in an xml file and allow the user to change it when … | |
hi, how can i add a button to delete/edit a row in gridview which takes its data from database ? thanks | |
i want to delete a file from a specific location, if file Existing ; using JavaScript or VB scripting | |
Hi all, I was wondering if anyone knows how to send a conformation SMS to a visitors mobile? What i'm trying to create is a call back feature, so far i can send an email with the visitors details to my address and send them a conformation email too, but … | |
Hi Friends, I am trying to Call a exe or DLL from sql server trigger using xp_cmdshell. Trigger is for an external application and for inserting a record. exe is executed successfully but trigger is not completed succefully and my external application is also not complted and it sows some … | |
Hey all.. Im in desperate need to solve my shopping cart problem. Im doing it for a school project. The situation is my products are listed in a table. Users will select which product they want by selecting the add to cart link. Once they select it, the product information … | |
I am using FTP to upload and download files from my server , but it is incredibly slow... When i use File Zilla it is really really fast, but for some reason my FTP program lags really badly, can anyone give me a reason or some help for this ?? … | |
I'm creating a game and I need to rotate this object. Ok i'll make my explanation simple, I have Object1 and Object2.. Let's say Object1 is at coordinates 0,0 (x,y) and Object 2 is at coordinates 10,10... Object 1 is currently facing south, Now I need object 1 to be … | |
![]() | I'm creating a program that is supposed to have enumerated constants that contain days of the week. I am also supposed to have a variable called today that is of type week. Okay, I think I have done all of that correctly. Now I am supposed to assign a value … |
I am getting error at the second line of the code, what is the problem :-/ [ICODE]$content = '<' . '?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?' . '>'; $content .= "<entry xmlns='http://purl.org/atom/ns#'>"; $content .= "<title mode='escaped' type='text/plain'>".$title."</title>"; $content .= "<issued>".$issued."</issued>" $content .= "<generator url='http://www.yoursitesurlhere.com'>client's name</generator>"; $content .= "<content type='application/xhtml+xml'>"; $content .= "<div … | |
i get this error:[quote]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index, user_id, username, message) VALUES(' ', '4', 'zack', 'jh')' at line 1[/quote] [code]<?php session_start(); $_SESSION['user_id'] = 4; $user_id = $_SESSION['user_id']; $_SESSION['username'] = … | |
Hi, I have 2 tables: Payment (PaymentId, Date, Description, Amount, PaymentMethodId) PaymentMethod (PaymentMethodId, Description) The first table contains details of any Payments that we receive and is displayed in the datagridview. The second is a lookup table which lists the methods of payment (ie. cash, cheque, credit card) and should … | |
:idea: Anyone have C source code program to change the system time in Linux ? Please share me!!! Thank! | |
I am developing a program that creates random mazes. One part of the program involves keeping track of the correct path. Each point on the path is a (row, column) coordinate. I am trying to store each coordinate as a 2 element integer array and push it back onto a … | |
[ICODE] if(e.getSource() == choice2) { if(choice2.getSelectedItem().equals("Monitor")) { choice2.setBackground(Color.GREEN); hidebutton++ score++; } else { choice2.setBackground(Color.RED); } choice2.setEnabled(false); }[/ICODE] i have this code here... why do when i apply this method the score is incremented to?? would you plzz help me.. whAt is wrong 2 da Code... 4 example i have a … |
The End.