132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ki72

Java Code I don't know how to show odd or even digits from an integer number. For example I ask the user to enter a 4 digits integer number. For example the user enter 4875. I want to display odd digits (7 5) and even digits (4 8). By Extract …

Software Development java
Member Avatar for peter_budo
0
155
Member Avatar for ceng_angel

hi, i want to do a web downloader, but i don't know where i should begin from? Could you help me, please?

Software Development java
Member Avatar for ceng_angel
0
41
Member Avatar for jnick12

I'm stuck and I don't know what to do I need help. I need help on how to do the nested for loops and how to get to data from the input file to display corresponding values. Can somebody help me please. Read the attached documents and see if you …

Software Development c++
Member Avatar for Ancient Dragon
0
129
Member Avatar for ashwini jadhav

hi, i am new in programming. i know that c++ used in development of games.so,i want to also some simple games to develop.please give some question for developing game? thank's

Software Development c c# c++
Member Avatar for ashwini jadhav
0
93
Member Avatar for Your_mum

Had a look at pointers in the tut I am following, and I can't really get my head around why their useful. It says they are, but tells you no more???

Software Development c++
Member Avatar for Your_mum
0
102
Member Avatar for Mehh

Well, im a beginner programmer, trying to make my own proggy in Dev C++ but i have massive problem with dialog, this doesnt work (using mdi example): mdi_unit.h [CODE]#define CM_WINDOW_TILEVERT 9084 #define CM_WINDOW_TILEHORZ 9083 #define CM_WINDOW_ARRANGE 9082 #define CM_WINDOW_TILE 9081 #define CM_WINDOW_CASCADE 9080 #define CM_EDIT_PASTE 9079 #define CM_EDIT_COPY 9078 #define …

Software Development c window-manager
Member Avatar for Ancient Dragon
0
222
Member Avatar for seoudi

Create a program that displays a pyramid , square and a triangle using the multiply character “*” as follows: welcome to c++ shape for pyrasmid sqyare trinagle

Software Development c++
Member Avatar for ashwini jadhav
0
86
Member Avatar for ddanbe

Hello everyone! I know how to use a Timer class: [CODE=C#]static void Main(string[] args) { System.Timers.Timer MyTimer = new System.Timers.Timer(); MyTimer.Elapsed += new System.Timers.ElapsedEventHandler(MyTimer_Elapsed); MyTimer.Interval = 2000; MyTimer.Enabled = true; //etc. } static void MyTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { //do something every 2 seconds }[/CODE] What I like to do …

Software Development c#
Member Avatar for ddanbe
0
2K
Member Avatar for blsnls

I am having problems figuring out what I did wrong to my highest, lowest and average for grades entered by a user. I searched for help but have not found any. Any hint in what I did wrong would be greatly appreciated. [code] #include <iostream> #include <iomanip> using namespace std; …

Software Development c++
Member Avatar for blsnls
0
116
Member Avatar for tlj333

I read the guidelines on posting homework questions and I think this one is within the rules. A little background, currently taking my first computer program class, its an online class (big mistake), it's very hard to get feedback or assistance. I have been ripping my hair out trying to …

Software Development python
Member Avatar for tlj333
0
194
Member Avatar for Ace1.0.1.

Just picked up a beginners book on C++ so i'm pretty new at this. trying to write a program to test what i have learned so far, but it's not coming out as i had hoped so i'm hoping someone can help me out constructive criticism welcomed Here it is: …

Software Development c++
Member Avatar for Ace1.0.1.
0
109
Member Avatar for rjay_lolerzz

import java.io.*; import javax.swing.*; class GS { static public void main(String[]args) throws Exception{ double q, q1, q2, q3, q4, q5, q6, q7, q8, q9, q10, q11, x, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, quotient, quotient1, quotient2, quotient3, quotient4, quotient5, sum, sum1, sum3; System.out.println("PRELIM LEC"); { …

Software Development java java-swing
Member Avatar for peter_budo
0
245
Member Avatar for desimator55

I'm using VC++ .net to write a program for searching through files in a directory and then opening them. The only problem I have run into is opening the file. I tried using streamreader but this does not work for opening pdf files. Currently I'm using system ("start //location and …

Software Development c++ pdf
Member Avatar for Ancient Dragon
0
273
Member Avatar for VisualMelon

Hi All, I have bean (for a while) trying to make a program of mine - a simple music player - display the intensity of the sound being produced at any given time. I am using a MCI MMControl to play the sound, and am open to any suggestions as …

Software Development vb.net
Member Avatar for VisualMelon
0
125
Member Avatar for niezam

please help me solving a program about booking a ticket for a flight that need to show the seat, the price and the class

Software Development c++
Member Avatar for vmanes
0
122
Member Avatar for ashishchoure

hi, I have one query that create process funcion retuns bool value. And i want to know the exit code of my exe which i ran through create process function. EX. [CODE] int main() { return 5; } [/CODE] this exe is returning 5. I ran that exe by createprocess …

Software Development c++
Member Avatar for ashishchoure
0
105
Member Avatar for necrolin

If I have 2 classes a) class Business b) class Customer I want the Business class to be able to store a dynamic list of it's customers. So I thought the easiest way to do this would be to use a vector. [code] class Business { vector<Customer> customers; public: Business(); …

Software Development c++
Member Avatar for necrolin
0
203
Member Avatar for nehemiascr

Can anyone help me with the algorithm for the height of a n-ary tree, I have been looking and could only found for a binary tree, thanks in advance.

Software Development algorithm c++
Member Avatar for Unix*
0
648
Member Avatar for rmsagar

In my file, I have lines similar to this <Log LogID="633198520" LogLevel="Normal" Date="10/01/09 19:18" Type="Error" Source="Mentor" Text="Failed to process the request." /> When the line is read, if it is converted as field value pair I thought it will be easy to take required field. Please advise how this can …

Software Development file-system python
Member Avatar for rmsagar
0
119
Member Avatar for sravan953

This code snippet allows you to know whether a word/sentence you have entered is a 'Magic Word' or not. A 'Magic Word' is a word which has at any position two consecutive letters. This can be achieved by taking the ASCII values of the characters. For example, if I enter …

Software Development java
Member Avatar for rnthelord.2008
0
6K
Member Avatar for tiara

Hello guys.. i am really new to C++. I feel a bit confused with the using of const in this code. [CODE] class B { private: int x; public int func() const { return x; } } [/CODE] Viewing at that source code,, what is really functions of const ?? …

Software Development c++
Member Avatar for Ancient Dragon
0
113
Member Avatar for vampshay

can u help me how to connect to MS Access database using java codes?? import java.applet.Applet; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.lang.StringBuffer; import java.io.IOException; import java.io.*; import java.sql.*; public class sample1 extends JFrame { private DataPanel myDataPanel; private Connection dbconn; private static int numPeople=0; private static String info; …

Member Avatar for masijade
0
123
Member Avatar for maey_kich

hello, I can't figure out how to create an array that can be called from any module. Global or public sounds familiar but they don't work. Cheers.

Software Development c++
Member Avatar for Tom Gunn
0
95
Member Avatar for Honkey_Magoo

I have created the code to connect to a MySQL database and retrieve the values of a table. This is the function for printing the table: [CODE] # Name: dbHistory # Purpose: prints srvHistory table from database # Parameters: N/A # Returns: N/A # This is the implementation of the …

Software Development asp perl
0
105
Member Avatar for xonxon

[code] import java.util.*; public class course { static Scanner sc=new Scanner(System.in); public static void main(String[]args) { String name,students,addStudent; int numberOfStudents; String courseName,getName,getStudents; int getnumberOfStudents; Course course1=new Course("C++"); Course course2=new Course("Java"); course1.addStudent("Peter"); course1.addStudent("Brian"); course1.addStudent("Anne"); course2.addStudent("Peter"); course1.addStudent("Steve"); System.out.println("Num of student in course1:"+course1.getnumberOfStudents()); String[]students=course1.getStudents(); for (int i = 0; i < course1.getNumberOfStudents(); i++) …

Software Development java
Member Avatar for Grn Xtrm
0
108
Member Avatar for soffie

Need to make a random size (x = rows, y = columns) matrix which is filled with random numbers (only 0 or 1). So, if I don't know the size of the matrix, I use dynamic array. So far I have made this far, but obviously it isn't quite correct... …

Software Development c++ matrix-multiplication
Member Avatar for soffie
0
2K
Member Avatar for 4ukh

dear experts, how to compare two different columns to check that whether the values in the cell are same or different using excel 2007... thanks in advance, 4ukh

Software Development visual-basic
Member Avatar for 4ukh
0
106
Member Avatar for PoRco1x

Hey guys, This is my first post here :) I have to compare to strings and then continue on with the loop.. [CODE]void HighScore::removePlayer(const string& name) { int i,j = 0; cout<<"Attempting to remove " << name<<endl; while (i<d_nPlayers) { if (d_players[i].name==name) { cout<<"Found : " << name<< "at slot: …

Software Development c++
Member Avatar for PoRco1x
0
86
Member Avatar for vegaseat

A small Windows Application to show you how to play a wave (.wav) sound file. I am using the C# IDE from SharpDevelop and the runtime dotnetfx 1.1 from Microsoft, both free downloads. This forms a small and fast student system to write and debug C# programs. From there you …

Software Development c# ide
Member Avatar for ashley dane
0
1K
Member Avatar for kat12

Hey, I'm brand new to Python and I'm sorry if my code/question is sloppy and ridiculous. I had to make a snowman for homework, but now I have to make the entire snowman move 6 times wherever the user clicks. I used this at first, but it obviously only moves …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for Jehanneman

Hi everyone! I'm trying to make a function in Python that converts a csv file into a xls file. I have to convert about 500 files so you understand that I need it to be as clean as possible. This is the code I wrote, just for one file later …

Software Development file-system python
Member Avatar for ramwins1
0
734
Member Avatar for sfuo

This program asks for integers from the user and stores them into a multidimensional array that adjusts its size.

Software Development c++ motherboards-cpu-ram
Member Avatar for VernonDozier
0
1K
Member Avatar for xonxon

[code] this is the simple program that i write import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JFrame; import java.awt.FlowLayout; public class ShowFlowLayout extends JFrame { public ShowFlowLayout() { setLayout(new FlowLayout(FlowLayout.LEFT,10,20)); add(new JLabel("firstname")); add(new JTextField(10)); add(new JLabel("MI")); add(new JTextField(10)); add(new JLabel("Lastname")); } public static void main(String[] args) { JFrame frame=new JFrame("ShowFlowLayout"); frame.setSize(400,500); frame.setLocationRelativeTo(null); …

Software Development gui java java-swing
Member Avatar for xonxon
0
106
Member Avatar for 17ashis
Member Avatar for necrolin
0
112
Member Avatar for bk_yogeshvaidya

I am using railway reservation project. I am using for passenger Reservation Train_No,Boogie_no,Seat_No. I have problem with While Selecting Same Train_No,Boogie_no,Seat_No from two Pc's. It gives error duplicate values. What I will do When Two user selecting same values simultaneously. Please Suggest me Idea for this Project. I am Using …

Software Development oracle visual-basic
Member Avatar for ramulal
0
139
Member Avatar for abhipro

Hey guys, I am trying to implement something in VC++ and have to use a library for this purpose. This library is in C++ and the authors have provided a seperate download for VC++ How exactly do I use the functions provided in this library in my own code? They …

Software Development c++
Member Avatar for Tom Gunn
0
145
Member Avatar for nicsmr

description: Reading data from active directory. some names have the French accented E. when I write to screen, no problems. when I write to a .txt file the program errors out with... [I]Traceback (most recent call last): File "ad-listing.py", line 20, in <module> print >> OutFile, person.displayname,"~",person.title,\ UnicodeEncodeError: 'ascii' codec …

Software Development open-source python
Member Avatar for vegaseat
0
129
Member Avatar for Creator07

Hello guys, I am doing a small C/C++ program(mainly for use in my father's work - Includes a batch processing inside a folder which is repetitive). I just need to find the number of files in a folder(not necessarily of a single filetype). What I thought was using [ICODE]system("dir > …

Software Development c
Member Avatar for varnesh_kp
0
297
Member Avatar for newsguy

Within the next five years, Citizen Developers will be responsible for building at least 25% of all new business applications. That is the rather startling claim being made by Gartner analysts ahead of the Gartner Symposium and ITexpo in Cannes, France next month. So what is a Citizen Developer then? …

0
338
Member Avatar for benkyma

I've got an open connection with a stream reader pulling data in to my system and storing in a database. Everything works great, except occasionally the stream from the remote server stops and this makes my program crash. How can I catch this situation when it occurs, and maybe attempt …

Software Development
Member Avatar for benkyma
0
327
Member Avatar for python.noob

though i'm calling pr() function in the subclass after calling the get_details() function(which assigns value to name) it doesn't print the current value of name. My question is if i want to print the value of name in the subclass what should i do???? I've tried in many ways using …

Software Development python
Member Avatar for AutoPython
0
220
Member Avatar for swapna7999

can anybody tel me what are the steps in capturing images from a webcam using java

Software Development java webcam
Member Avatar for neelamdwivedi
0
289
Member Avatar for venkates.99

Hi, for one of trading application Im working for, my issue is that. Presently, data storage from online application to Excel is happen here(using TIcker for ex:{=BDDE|TKR!'\\<DEFAULT>\in@GLDM.1/FLD_BF_TE_HIGH,FLD_ASK_HIGH'} ). means we are storing data( data is not constant, its need to update for every change in online application to Excel sheel …

Software Development asp.net storage
Member Avatar for venkates.99
0
113
Member Avatar for Tenchi

Hi all, I'm new here, and am currently taking an introductory programming course taught with Java 5. I really hate to come here, and bother people with my homework, but I really don't have anywhere else to turn at the moment. I have a couple of quick questions about some …

Software Development java
Member Avatar for ithelp
0
316
Member Avatar for Nishara

Hi.. I want to create a seperate DataAccessLayer and do the inserting,updating...etc to a database.Actually I'm new to .net things. I did it as below.But the database is not updated at all.. This is the DataAccessLayer class... [CODE] using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; namespace ClassTest …

Software Development open-source
Member Avatar for sknake
0
181
Member Avatar for Rezant

I have been attempting to write an auto-login code for some websites that I frequent, but one of the website's forms has an odd submit button. Instead of being the usual button that you can call by it's Id it's instead a link. I was actually wondering if I could …

Software Development xml
Member Avatar for kabuchanga
0
618
Member Avatar for khairilz

i need help on programming networking.. i'm creating a winservice called HeartBeat. this service is to check if the gateway(list of gateway) is alive and able to do certain process( other application) and if it's down after certain tries, it will notified related person(email/sms/voicemail). We a doing terminal application for …

Software Development socket-programming tcp-udp vb.net
0
140
Member Avatar for SecurExpert

Hi Guys, I am using sql in and am stuck. after "selecting * from table", how do i store whatever I have obtained from my database in a variable, for display? Thanks.

Software Development vb.net
Member Avatar for SecurExpert
0
108
Member Avatar for Peric

Sorry, but I didn't know where to put this topic... Well, I'm creating a Setup Project (in Visual Studio 2008) for VB.NET application, everything works fine but I want to ask how to put an option for shortcuts...I mean, i know how to put shortcuts to desktop and start menu …

Software Development vb.net visual-studio
Member Avatar for Peric
0
90
Member Avatar for kevincarroll

Just a quick question, for educational and self debugging purposes, I was wondering if it was possible to read entries from the Global Descriptor Table, for example: [code] GDT db 00,00 GDTaddr db 00,00,00,00 sgdt GDT sub dword ptr[GDTaddr],18 ;2nd Entry mov edi,dword ptr[GDTaddr] mov esi,offset entry mov ecx,8h ;entry …

Software Development assembly
Member Avatar for mathematician
0
218

The End.