132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for memo1

HI could any one help me to know the main idea to type program which converted from seconds to hours, minutes and seconds. thnks،،

Software Development java
Member Avatar for MaxWildly
0
80
Member Avatar for hightech2

Hi everyone I am trying to get this done and it is not happening :to implement the method for the is Empty and is Full. I am suppose to check for an empty stack and check for a full stack But I am not getting it? Can someone see something …

Software Development data-structure java
Member Avatar for coderGh
0
1K
Member Avatar for miraclebos

Hey Narue! I need ur help on a upper-lower case switch problem.. Read the contents of a text file (using ifstream class).. and create a new file or edit the same one (using ofstream class) to switch the case of each char (upper to lower & vice versa).. Thanks a …

Software Development c c# c++
Member Avatar for miraclebos
0
167
Member Avatar for n.utiu

WE have the && operator, the || operator, but xor is only implemented as '^' . And this causes a lot of confusion. Let's take this case: 2 == 2 ^ 2 generates a logical operation instead of bitwise operation , therefore returning a true value. What do yo think: …

Software Development c++
Member Avatar for n.utiu
0
227
Member Avatar for outkast

Hi is there any way to run a shell script from a batch file? im new to this and any help is really appreciated. Thanks

Software Development shell-scripting
Member Avatar for issue9
0
176
Member Avatar for rollon

OMG im a IT student but i am not good in programming!! can i ask some question how to be a good programmer????? plss answer my question

Software Development c++
Member Avatar for wasimmalik
0
128
Member Avatar for Xufyan

Can anyone explain whats wrong with this program why this is not working. [CODE] void main(void) { long a,b=1; clrscr (); printf ("Enter number to calculate its factorial:"); scanf ("%ld",&a); if (a=0,1) printf ("You entered 0 or 1"); else for (a=a;a>0;a--) { b*=a; } printf ("Answer is %ld",b); getch (); …

Software Development c
Member Avatar for Xufyan
0
1K
Member Avatar for pearle

Hi, everybody. I've started learning about recursion, but I'm having a hard time completely understanding it. I've tried to write a simple recursive function that returns the sum of the series m(i) = (1/3) + (2/5) + (3/7) + (4/9) + ... (i / (2i + 1)), but I keep …

Software Development c++
Member Avatar for pearle
0
117
Member Avatar for bokoto

Hi all, i need help with this code im trying to produce. I've been searching google for days without finding any answers so please youve got to help me understand. The idea is to encrypt a string inputted by the user I wish to increment the letters at odd positions …

Software Development java
Member Avatar for javaAddict
0
9K
Member Avatar for dude1

ive got a xml file like this: [CODE] <?xml version="1.0"?> <orders> <customer> <order_num>6656</order_num> <name>jon doe</name> <street>123 fake st</street> <city>Beverly Hills</city> <state>CA</state> <zip>90210</zip> </customer> <customer> <order_num>1337</order_num> <name>bob johnson</name> <street>1232 something ave</street> <city>Petaluma</city> <state>CA</state> <zip>94952</zip> </customer> <customer> <order_num>5643</order_num> <name>bill story</name> <street>1st ave</street> <city>Beverly Hills</city> <state>CA</state> <zip>90212</zip> </customer> <customer> <order_num>4533</order_num> <name>tom hutchinson</name> <street>214 …

Software Development c++ xml
Member Avatar for dude1
0
172
Member Avatar for jtodd

Hey everyone. I am new to java and I am stuck in this program. I am getting error messages and cannot figure out why. On public class Rectangle I am getting error messages on lines 84, and 85. On RectangleTest line 12. Thank you all in advance for and guidance …

Software Development java
Member Avatar for masijade
0
138
Member Avatar for k2k

i am trying to connect to mysql database using java. I have done connecting to microsoft access before. and i modified my code to connect to mysql server locally. i think the problem is I don't really understand where my mysql database is. anybody may point out the problem would …

Software Development java microsoft-access mysql
Member Avatar for masijade
0
718
Member Avatar for jemscomput

16 bit ms dos subsystem Turbo c IDE The NTVDM CPU has encountered an illegal instruction cs:0000 ip:0075 op:f0 00 f0 3705.Choose close to terminate the application.

Software Development c c# c++ ide
Member Avatar for jwenting
0
111
Member Avatar for CreativeCoding

I would like to do something like this: [CODE]readfilethingy("www.mywebsite.com/update.txt"); //fail[/CODE] with update.txt being this: [CODE]3.4 http://www.newupdatedownloadlocation.com/ //OR just the http location[/CODE] with the result being: [CODE]*user clicks on update button* "NEW UPDATE IS AVAILABLE! :D" *Clicks download* *Download on .exe starts*[/CODE] So, is it possible? I have searched and searched …

Software Development c++
Member Avatar for jonsca
0
115
Member Avatar for mrnobody

Below is a simple code that i wrote about VARIANT. The weird thing is at the end of the code, both vtEmpName and vtDept is "Accounting". [CODE] VARIANT vtEmpName; VARIANT vtDept; vtEmpName.vt = VT_BSTR; vtEmpName.bstrVal = _bstr_t("Joe Schmoe"); vtDept.vt = VT_BSTR; vtDept.bstrVal = _bstr_t("Accounting"); [/CODE] On the other hand, if …

Software Development c++
Member Avatar for mrnobody
0
145
Member Avatar for vishalkbhatt

hi all... i m working on a C++ prgm with following definition: Program Definition: Write a program to perform the following on a source file of any c++ program(File shud be included): 1. Count the line of code (LOC) of a source code file 2. Count the total number of …

Software Development c++
Member Avatar for Ancient Dragon
0
103
Member Avatar for houlahan

i have a client server and i send data perfectly to the client its when the client wants to send or update data which is the problem. what i am trying to do is check to see if the object that is passed to the server has a id and …

Software Development client-server java
Member Avatar for jwenting
0
192
Member Avatar for balajimarch31

can any one send me a link to get the best book to learn j2me. i have to work on some mobile games using J2ME. thanks in advance.. Balaji

Software Development java
Member Avatar for balajimarch31
0
46
Member Avatar for roc a

I have started this program and it builds fine but when I debug it I get a run-time check error #3, the variable total_sales is being used without being defined. Can some one help me out with this?[code]#include <iostream> using namespace std; void main() { int sp[10][7] = {89, 92, …

Software Development c++
Member Avatar for thomas_naveen
0
243
Member Avatar for murschech

A rather old C++ book I have says that one class may be declared a friend class of a second, and then the first class can access the private data of the second. I tried this example [code] #include <iostream.h> class secret { friend class not; private : int a; …

Software Development c++
Member Avatar for Abivino
0
128
Member Avatar for TobbeK

Is there any way to parse foreign decimal/double values from a Excel file with OLEDB? However, searches on Google shows this is not a new problem, so put my hope to anyone who maybe have a solution. MY COMPUTER SETTINGS: Non english settings on the machine, using the "," instead …

Software Development
Member Avatar for TobbeK
0
2K
Member Avatar for CVlaxstar

Hey guys, I'm mostly done with this but need a little help with multiplication and the output. (Just outputting +'s) [CODE]#include<iostream> using namespace std; class Polynomial { friend ostream &operator<<(ostream&, Polynomial&); private: int degree; int coefficient[10]; public: Polynomial(int, int[]); Polynomial operator+(Polynomial&); Polynomial operator-(Polynomial&); Polynomial operator*(Polynomial); }; Polynomial::Polynomial(int d, int c[]) …

Software Development c++
Member Avatar for Lerner
0
138
Member Avatar for cruisx

Hey so i am trying to create a file and this is part of my code. [CODE] HANDLE hFile; if((hFile = CreateFileA("Testfile.txt", GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, 0, 0)) != INVALID_HANDLE_VALUE) { //and so on [/CODE] Now the problem is that i cant create the file in the program(exe) path. I …

Software Development c++
Member Avatar for Frederick2
0
136
Member Avatar for Tech E

I have looked and looked and looked at this. I can not figure out why I am getting a random crazy number for salary. Can someone please help? (Sorry for the length) [CODE]//Personal Class Definition #include <iostream> #include <string> using namespace std; //Personal class definition class Personal { public: Personal(string, …

Software Development c++
Member Avatar for WaltP
0
172
Member Avatar for Jdugan4

Here's the code: [code] Private Sub btdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btdAdd.Click 'Sets up the connection to the database 'Dim myConn As New OleDb.OleDbConnection() 'Dim sql As String con.Open() Dim cmd As New OleDb.OleDbCommand ("INSERT INTO Contacts(Company, First, Last, Title, Address, City, State," & _ "ZipCode, …

Software Development vb.net
Member Avatar for kvprajapati
0
110
Member Avatar for hkdani

Trying to raise an event in an ActiveX control from a module (.bas file). Been trying to create a timer control that will go past the 1 minute limit of the vb6 timer.ocx. The Windows API SetTimer will do this. But wanted to create an Active X timer control that …

Software Development api visual-basic windows-api
Member Avatar for vb5prgrmr
0
376
Member Avatar for thedonflo

I really need help with this project. 1) Write a program that uses a switch program structure 2) Upon user input your switch structure shall calculate and display one of the three loops for loop, while loop, and do-while loop calculations.

Software Development c++
Member Avatar for Stefano Mtangoo
0
113
Member Avatar for ~wylde~

Hello, Id like to start by saying that I am a beginning programmer. Ive almost finished my code optimizer as my first serious project. What Ive designed this program to do it go through a source (.vbp) file and clean up the coding (removing large unnecessary spaces), from there, there …

Software Development open-source visual-basic
Member Avatar for vb5prgrmr
0
109
Member Avatar for dwdude

Hello there. Finally decided to make an account here :) Anyways, I just started trying to implement function pointers in my code, and I seem to be having a few issues. (this is, of course, test code): [CODE] #include <iostream> using namespace std; class MyClass; class SomeClass { public: SomeClass(); …

Software Development c++
Member Avatar for dwdude
0
2K
Member Avatar for preetisingh

I have a problem . I have to draw a circle at a particular distance say 50 meters from a given lat/log.I refered to Aviation formula's and find a formula to calculate lat/log at a distance and at a bearing which is as follows:- A point {lat,lon} is a distance …

Software Development algorithm visual-basic
Member Avatar for vb5prgrmr
0
187
Member Avatar for j_808

Sub CalculateStorageCharge() Dim datedue, datecollected As Date Dim daysoverdue As Integer Dim storagechargetotal As Integer Dim storagechargefeeperday As Integer = 5.0 daysoverdue = DateDiff("d", datedue, datecollected) If (daysoverdue) > 0 Then storagechargetotal = (storagechargefeeperday * daysoverdue) Else : storagechargetotal = (0 * storagechargefeeperday) End If storagechargetotal = CInt(txtStorageChargeFee.Text) End Sub …

Software Development vb.net
Member Avatar for j_808
0
4K
Member Avatar for Alq Veers

I'm using Tkinter as the GUI for my Software Design and Development Major Project, This is only to be a 'screen' shot of what the final GUI interface might look like, however. I have been having quite a hard time with Tk. My reference manual is from New Mexico Tech …

Software Development gui python tkinter
Member Avatar for Alq Veers
0
2K
Member Avatar for punter999

hello, i have completed making the wx python csheet and now i need to enter data in it and save it and than print it as well.but i am not sure how to do that:( any help or example regarding this problem will b highly appreciated. Thank you Regards punter

Software Development python
Member Avatar for Stefano Mtangoo
0
97
Member Avatar for gangemia

I have a CSV file where fields are delimited with a comma. The fields of this CSV file contains the attributes of Permanent Survey Marks and I’ve created a GIS python script to convert it to a table that is stored it in our Enterprise GIS Spatial Database (SQL Server). …

Software Development python
Member Avatar for gangemia
0
220
Member Avatar for naveedmahar
Member Avatar for jonsca
0
230
Member Avatar for Katana24

Hi, im trying to call this method in my class "MyWidget" which is suppose to draw a line when someone indicates the coordinates via 4 parameters. Here is the method: [CODE]public void Connect(int xline, int yline, int nextX, int nextY) { Graphics g = getGraphics(); g.drawLine(xline, yline, nextX, nextY); } …

Software Development gui java
Member Avatar for Katana24
0
144
Member Avatar for rectifryer

[CODE]#include <cstdlib> #include <iostream> #include <cmath> #include <iomanip> #include <cctype> using namespace std; double distance(double,double,double,double); double radius(double,double,double,double,double); int main() {double X,secX,Y,secY,z,r; r=0; cout<< "Please enter the x value of the center of the circle:"<< endl; cin>>secX; cout<< "Please enter the y value of the center of the circle:" << endl; …

Software Development c++
Member Avatar for Banfa
0
403
Member Avatar for janice777

basic over view>> banks offer car loans for periods ranging from two to five years (24 to 60 months). Write a program to allow the customer to enter the price of a car, the down payment amount and the annual interest rate of the loan. The program should display the …

Software Development c++
Member Avatar for janice777
0
188
Member Avatar for tararengan

hello, I am running a merge sort routine on an array of numbers. My intention is not to output the sorted array but to reorder the indices of the array so that they reflect the sorted order (descending). For example, if the array were {2, 7, 4}, my indices would …

Software Development c++
Member Avatar for tararengan
0
123
Member Avatar for Phil++

Hey, I'm writing this report and I'm writing about variables.. I'm just checking to see if this is a good description: [I] Variables are used in programming to allocate specific memory locations for data, Variables enable the programmer to give a specific name to where the information is stored in …

Software Development c++
Member Avatar for WaltP
0
83
Member Avatar for MaxWildly

I need help with trying to convert a String of number to a Integer Array. I will then be adding the to Arrays together like any addition problem, but I am having trouble with just getting the string in to the arrays without it outputting jargon. [CODE] public static int[] …

Software Development java
Member Avatar for MaxWildly
0
629
Member Avatar for nerdy900

I was starting a cash register program. I got to the point of a simple test. I ran into a problem where when running the loop to input my variables, it completely blows through the loop the first time. I looks like this: Product: Product: ---------now I could input [CODE]#include …

Software Development c++ ios
Member Avatar for nerdy900
0
136
Member Avatar for sirko

Pascal programming DFS(depth first search) and BFS(bredth first search) problems.? These are the algorythms for searching a tree strucutre or a graph. Could anybody show me (or send to me) where can I find these problems solved? (Programs need to be Pascal console apps and data should be read from …

Software Development pascal
Member Avatar for sirko
0
1K
Member Avatar for SilentDuck

I'm trying to create this pattern: [url]http://mathworld.wolfram.com/Rule60.html[/url] I cannot get my code to print this. It runs, it just does not print the right pattern. I know I am doing something wrong, I'm just not sure what. [CODE] #include <iostream> #include <fstream> using namespace std; int main() { //Declare variables …

Software Development c++
Member Avatar for Banfa
0
211
Member Avatar for Valaraukar

Hi, Basically I have a game type scenario in which objects are falling from the sky onto uneven terrain below but my problem is this: I can't figure out how to determine when an object has actually collided with a slope (the point of impact) because obviously the y value …

Software Development c++
Member Avatar for Fbody
0
90
Member Avatar for timbomo

Im trying to figure out how i will calculate items needed. for example for every 500 sqft of space, one gallon of paint and 8 hours of labor is required. how will i put that n to a formula

Software Development c++
Member Avatar for timbomo
0
204
Member Avatar for eternaloptimist

/*could someone show me how to create a text file named names.dat with names in a directory with an executable file? i want this program to find a name after i enter it. here r the names that i want to put into names.dat.:*/ "Collins, Bill", "Smith, Bart", "Allen, Jim", …

Software Development c c# c++
Member Avatar for Lerner
0
141
Member Avatar for dondajr

Hi again. I have a file that have about 1000 lines, and then, time by time I need to read some of this lines, for example: 13:00:00 read lines 01 to 100; 13:30 read lines 101 to 400; .... 15:00:00 read lines 900 to 1000. There is a way to …

Software Development c file-system
Member Avatar for dondajr
0
112
Member Avatar for Tech E

I am trying to figure out the best way to create a dynamic array/vector (not sure which) that would take in a string and double and store it. I then need to print the string with the corresponding double into a list and produce a total for all the doubles …

Software Development c++
Member Avatar for Lerner
0
108
Member Avatar for churni

hi guys, this is my first post to the forum although i do use this website regularly for help. now i have a problem with my code for a sorting program i am making. basically the program is used to make a random number list and then you should be …

Software Development c
Member Avatar for churni
0
223

The End.