199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shamila08

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 …

Member Avatar for shamila08
0
153
Member Avatar for gsingh2011

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 …

Member Avatar for BearofNH
0
469
Member Avatar for david7

[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 …

Member Avatar for Freaky_Chris
0
271
Member Avatar for mrnutty

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. …

Member Avatar for MattEvans
0
109
Member Avatar for serkan sendur

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.

Member Avatar for Comatose
0
99
Member Avatar for HarryGabriel91

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 …

Member Avatar for MosaicFuneral
0
143
Member Avatar for Cyberbanana1

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 …

Member Avatar for dmanw100
0
84
Member Avatar for csaawariya

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 …

Member Avatar for StuXYZ
0
125
Member Avatar for Kusno

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 …

Member Avatar for serkan sendur
0
2K
Member Avatar for int3grate

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 …

Member Avatar for woooee
0
291
Member Avatar for VIeditorlover

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 …

Member Avatar for Fest3er
0
121
Member Avatar for darylesha

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 …

Member Avatar for peter_budo
0
192
Member Avatar for Phil++

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 …

Member Avatar for Phil++
0
113
Member Avatar for massivefermion

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 …

Member Avatar for Salem
0
99
Member Avatar for Phil++

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 …

Member Avatar for VernonDozier
0
110
Member Avatar for Mashimar

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?

Member Avatar for dyadarling
0
174
Member Avatar for malg

Could anyone tell me how to programmatically list the filenames of all open office files (winword.doc files, excel.xls files) ?

Member Avatar for samir_ibrahim
0
112
Member Avatar for alpha_gamma

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 …

Member Avatar for Ezzaral
0
150
Member Avatar for smelf1

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 …

Member Avatar for Teme64
0
295
Member Avatar for noamjob

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 …

Member Avatar for Stefano Mtangoo
0
6K
Member Avatar for TasostGreat

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 …

Member Avatar for TasostGreat
0
110
Member Avatar for TasostGreat

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 …

Member Avatar for TasostGreat
0
527
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
91
Member Avatar for complete

Can programs written in Visual Basic be designed such that they can read and write Unicode Files?

Member Avatar for Comatose
0
195
Member Avatar for kaden712

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 …

Member Avatar for nrvinayak
0
152
Member Avatar for krutthika

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

Member Avatar for iamthwee
0
230
Member Avatar for shazzy99
Member Avatar for ddanbe
0
124
Member Avatar for laconstantine

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 …

Member Avatar for LizR
0
167
Member Avatar for rajeesh_rsn

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 …

Member Avatar for rajeesh_rsn
0
101
Member Avatar for Rrajal

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 …

Member Avatar for nicowest
0
724
Member Avatar for Torquai

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 …

Member Avatar for Torquai
0
83
Member Avatar for rude04

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 { …

Member Avatar for rude04
0
163
Member Avatar for Lahlahliam

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 …

Member Avatar for rapture
0
86
Member Avatar for Marks256

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 …

Member Avatar for massivefermion
0
180
Member Avatar for skynwa

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 …

Member Avatar for Patel S
0
267
Member Avatar for shers

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 …

Member Avatar for LizR
0
4K
Member Avatar for sam1

hi, how can i add a button to delete/edit a row in gridview which takes its data from database ? thanks

Member Avatar for rapture
0
367
Member Avatar for sumit-saini

i want to delete a file from a specific location, if file Existing ; using JavaScript or VB scripting

Member Avatar for Comatose
0
317
Member Avatar for Loki421

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 …

Member Avatar for freshfitz
0
143
Member Avatar for deepukng

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 …

Member Avatar for Teme64
0
164
Member Avatar for mirainc

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 …

Member Avatar for mirainc
0
448
Member Avatar for cVz

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 ?? …

Member Avatar for Torquai
0
167
Member Avatar for it2051229

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 …

Member Avatar for Alibeg
0
143
Member Avatar for RenFromPenn

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 …

Member Avatar for Alibeg
0
134
Member Avatar for CasTex

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 …

Member Avatar for almostbob
0
2K
Member Avatar for sacarias40

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'] = …

Member Avatar for mwasif
0
86
Member Avatar for Eyo

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 …

Member Avatar for Eyo
0
161
Member Avatar for nvnq

:idea: Anyone have C source code program to change the system time in Linux ? Please share me!!! Thank!

Member Avatar for nvnq
0
76
Member Avatar for VernonDozier

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 …

Member Avatar for VernonDozier
0
149
Member Avatar for mercury113

[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 …

Member Avatar for stultuske
0
88

The End.