64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Escom

Hello, i need to make program which can do squaring, so x^n. I can do it with pow(x,n): [code]#include <iostream> #include <cmath> using namespace std; int main() { double x, c; int n; cout << "Alap = "; cin >> x; cout << "Kitevo = "; cin >> n; if …

Member Avatar for Escom
0
175
Member Avatar for starblaze

Hi everyone. I just started learning Java and did a few application to familiarize myself with it. I wrote an application to output a 2D array table but i can't seem to do it in an applet. Can anyone guide me along here? Problem is when i tried to output …

Member Avatar for starblaze
0
80
Member Avatar for imastudent

Hello guys! im a newbie in programming and i need help..Anyone familiar with array??below is the case and i hope someone can help me.. thx.. Write a program to assign seats on each flight of the airline’s only plane (capacity: 20 seats). Your program should display the following menu of …

Member Avatar for masijade
0
526
Member Avatar for rpk5000

Hey, this isn't an, "I have an error" post! It's more like I'm taking a basic java course in High School and want to include an image as a background in a project in swing. I found some code online that seems to do this quite well, but I need …

Member Avatar for rpk5000
0
165
Member Avatar for Slavrix

[code=c++] void playAgain() { char again; cout << "Do you want to play again (y/n)?: "; cin >> again; if (again == 'y') chooseOption(); else if (again == 'n') cout << endl << "Thanks for playing Connect Four, the game of the clever people!"; else cout << "Invalid Choice" << …

Member Avatar for Slavrix
0
588
Member Avatar for Kcin

I need some help on this program that i have. i can't seem to get it to work. any comment on the program would be appreciated. Thx in advance. I have uploaded my program in case u need to take a look. [CODE]Dim first As Double Dim second As Double …

Member Avatar for Kcin
0
144
Member Avatar for Blujacker

Hi, it's me again and i have new question: This is my code: [CODE]# -*- coding: cp1250 -*- import string as _string import time as _time import wx from math import* class Canvas: def __init__(self,parent): self.okno=parent self.okno.SetBackgroundColour("#FCFCFE") self.radic = wx.FlexGridSizer(2,2,0,0) self.canvas = wx.ScrolledWindow(self.okno, -1) self.canvas.EnableScrolling(True, True) self.P_WIDTH = 1000 self.P_HEIGHT …

Member Avatar for jrcagle
0
251
Member Avatar for Rob111

Hi there, I need to make a piece of code in C that 1. opens a specified file, 2. Reads the data in the file and separates it as shown below, 3. Converts the strings into integers and then perfoms some manipulation on them, 4. returns the new values to …

Member Avatar for Rob111
0
110
Member Avatar for matk

Hello, I found the code for bubble sort in C++. With the code below th[U][/U][URL="http://www.webmaster-talk.com/#"][/URL]e output will be: 23 8 7 6 6 5 2 2 1 Is it possible that sorts the numbers so the output will show all changes. In example: 9,6,5,23,2,6,2,7,1,8 9,6,23,5,2,6,2,7,1,8 .... .... .... 23,9,8,7,6,6,5,2,2,1 Thanking …

Member Avatar for matk
0
110
Member Avatar for jrivera

I have a homework question in STL. The question asks to write an implementation of STL algorithm replace_copy_if(). My question is NOT regarding how do I code this, but more importantly what exactly does it mean? In other words, is it the same as just creating a function and not …

Member Avatar for jrivera
0
97
Member Avatar for new_2_java

Hi all, I am new to Java, I have written a small Java program; as far as my knowledge the program seems to be alright. When I compile the program, it compiles without any complain. However, when I try to run it, from OS command prompt, I get the following …

Member Avatar for new_2_java
0
166
Member Avatar for Armfelt

Hello everyone, this is my first post. As can be quite rightly guessed, I am new to C++ and struggling with some coursework. My task is to produce a program that prints out 5000 random numbers between 1-5, also printing out the frequency of each given number. I have searched …

Member Avatar for iamthwee
0
2K
Member Avatar for jrcagle

I wanted to do an image viewer for a photo catalog project. Here is the code: [php] import Image, ImageTk from Tkinter import * filename = "C:/Pictures/2006/2006.07.04/E clarus 1 crop.jpg" class MyFrame(Frame): def __init__(self, master): Frame.__init__(self, master) im = Image.open(filename) # <--- chokes! im.resize(250,150) self.image = Label(self, image=ImageTk.PhotoImage(im)) self.image.grid() self.grid() …

Member Avatar for aot
0
6K
Member Avatar for shaebie

hey guys, im sure this is a really easy thing to do but, im currently trying to make a form that basically you enter numbers into three text boxes and it pumps and the sum in a label. I've got this working fine except for decimal places. using code" label.text …

Member Avatar for hollystyles
0
96
Member Avatar for DeOiD

hi. i use a textbox (i also tried with a textarea) in asp .net2.0 to show some text from a data base. till this point, everything's ok. my problem starts when i try to change the text and update the new value to the data base. the value updated is …

Member Avatar for DeOiD
0
126
Member Avatar for T-Fizz

Hi, I am writing a program that needs to search particular strings in a text file. The strings are typed in a text box by the user and then when the text file is opened, using fileDialog, the program searches that file using the string in the text box. I …

Member Avatar for Ancient Dragon
0
135
Member Avatar for sibotho

Hi all I have this program i writing using C# 2003 and ASP.net, When i try to connect to the database it gives the error below. I do not know what is wrong, please help. [ [B]Server Error in '/BookFlight' Application. [/B] [B][I]The Microsoft Jet database engine cannot open the …

Member Avatar for sibotho
0
256
Member Avatar for sibotho

I want my c# program to connect to my Access database so that i can update, insert and select from my database using c# 2003, can someone show me the steps of connecting to it. I know the part where you right click 1. Data connections and click add connection, …

Member Avatar for sibotho
0
155
Member Avatar for Reema_Hamed

i have to do this assigment by the next monday...;) i need to develop a test bank so i have to generate : 1-100 arrays of size 10 with randomly distinct numbers from (0-9) 2-100 arrays of size 50 with randomly distinct numbers from (0-49) 3-100 arrays of size 100 …

Member Avatar for Reema_Hamed
0
190
Member Avatar for assgar

I am having problems getting the user selected form info to inserted into the mysql database. I am also rec eving an error: Warning: Variable passed to each() is not an array or object in D:\web_server\webroot\common_list_process.php on line 1) I can display the contents of the $op array (see below) …

0
68
Member Avatar for naya22

I have a problem: Here is my program: [CODE] #include <iostream> #include <iomanip> #include <fstream> #include <string> #include <conio> using namespace std; int main() { char choice; string name; int hours; double charges, total; cout << "\t\tInternet Service Provider\n"; cout << "\t\tSubscription Packages\n\n"; cout << "A: For $9.95 per month, …

Member Avatar for naya22
0
174
Member Avatar for kylcrow

I am writing code for a homework assignment. I have to write a function, and in the function prompt the user to enter either rock, paper, or scissors. I did it successfully declaring a char (choice) globably, but I was told this wasnt a good idea, even though it worked. …

Member Avatar for kylcrow
0
162
Member Avatar for kylcrow

Ok I am writing a Rock Paper Scissors game for my c++ class. I have done most of it, but now I am stuck. I need to keep an overall score for the computer wins, user wins, and ties for as long as the user wants to keep playing. After …

Member Avatar for kylcrow
0
1K
Member Avatar for jonbc86

Java program with a menu of 6 items. -each of the 6 items has a check box -when the food is selected it appears to the right saying that so n so was selected. -then i just need a welcome screen before that to introduce the program -then the user …

Member Avatar for jonbc86
0
89
Member Avatar for peter_budo

I have directory which is used to temporary store images while working with them. Once all process are done and images are not need it anymore I would like to delete them. I tried following code but it didn't work. Where is problem? [code] Runtime comPrompt = Runtime.getRuntime(); String[] execStr …

Member Avatar for uh63
0
2K
Member Avatar for Direwolf007

Hello, I have been asked to provide an algorithm for the following: You are given an array of length N, which contains values in the range from 0 to (N^2) - 1. You are to sort it in O(N) time. I have been unable to find any way to do …

Member Avatar for Direwolf007
0
181
Member Avatar for kxh29

[B]Team:[/B] [B]I have a date which comes in the format of mm/dd/yy.[/B] [B]Example: 08/01/00[/B] [B]Now, I have my regular expression to check for this in this[/B] [B]format.[/B] Example: $result = $start_date =~ /(\d\d)\/(\d\d)\/(\d\d)/; So, when I enter a date in the format of 08/01/00, the result is success, or a …

Member Avatar for KevinADC
0
126
Member Avatar for stupidenator

Hi everyone, What is the difference between UNIQUE and DISTINCT? It seems that they do the same thing. Thanks, Nick

Member Avatar for stupidenator
0
365
Member Avatar for FreeFull

Hello. I made an command-line application. Now I want tomake an gui version but I don't know which GUI I should choose. I want the executable to have requirements for libaries while running (so I don't think about using GTK). I tried QT but I don't know if I can …

Member Avatar for FreeFull
0
147
Member Avatar for addicted

hey, its me again, i was thinking of asking you this questions since.... I study C++ by myself without any tutor apart from the help i get here... although i understand everything i read... and i solve most of the exercises easily .. except few... i don't know.. is this …

Member Avatar for mariocatch
0
120
Member Avatar for sushilover25_78

I am trying to figure out a way to write a program that takes the "digital product" of a number (has to be positive). Like if I had 123456789, it would take 1*2*3*4*5*6*7*8*9 which is 362880. It would then take 3*6*2*8*8 (leaves out zeros) which is 2304. Then 2*3*4 which …

Member Avatar for soumyajit
0
117
Member Avatar for ntredame

I am having trouble with inheritance. I am wanting to use fullName.h as the base class and call the functions print and setName into student.h. The problem is that I am getting errors that I can not figure out. The errors are: [I]student.h(22) : error C2352: 'fullName::print' : illegal call …

Member Avatar for ntredame
0
124
Member Avatar for aot

So, it would be nice to be able to insert scrollbars into my program (with Tkinter). Right now I'm using labels to display all my long blocks of text, and people flip through pages to get throught it all. I thought I'd try to add a scrollbar, but it doesn't …

Member Avatar for Lardmeister
0
109
Member Avatar for fulyaoner

Hi to all... In a MFC application, I need to change the background color of a drop down list - combo box control. IDC_MYCOMBO is the resource id and m_myCombo is the name of the control. I need to change the backcolor programmatically. Is there a way to achieve that? …

Member Avatar for fulyaoner
0
247
Member Avatar for jameswoodhouse

I'm very new to VB this is my first attempt at a project. basically i want a simple program that will display a famous singers surname in a text box, then ask the user to input the singers first name in another box. The system must then check the answer …

Member Avatar for jameswoodhouse
0
493
Member Avatar for leeqiang

I just wanna use PyScripter.and I found when I run a test with wxpython.it's dummped.(I have installed the wxpython packge)How was that?:'(

Member Avatar for leeqiang
0
115
Member Avatar for nikkidee

When I run this code (Visual Studio 2005), I get the following compiler errors and can't fix this no matter what I do: c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(10) : error C2143: syntax error : missing ';' before '<' c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(24) : see reference to class …

Member Avatar for nikkidee
0
195
Member Avatar for addicted

Hey, Please i need help with prime numbers... i have been cracking my brain for the problem since two days ago..... I used this test code but there is a problem with it [code] for( number=3; number<=1000; count++){//to test number 3 to 1000 if(number%2 != 0){//to skip even numbers for(int …

Member Avatar for thekashyap
0
91
Member Avatar for ajay_tabbu

dear friends i set path for jdk1.6.0 and that is working.now i have instole j2me but my j2me code is not working,on run import file cannot find by compailer .so plz tell me is there any need of seting path and if it is than how i can set that.

Member Avatar for rahulmenonr
0
114
Member Avatar for Sailor_Jerry

I am in in the process of adding mediawiki to a sever that already has Apache and php installed.

Member Avatar for jbennet
0
92
Member Avatar for treble

I'm just getting started with classes and objects, and having a little trouble. I just filled out some of the basic parts of the program, because I figured I'd have trouble with the class/object implementation. I get the error "error C2228: left of '.determineSalary' must have class/struct/union type" in regards …

Member Avatar for treble
0
97
Member Avatar for jan1024188

How to check in windows Vista if DirectX 10 is installed? Sorry for wrong topic, you can MOVE it if you want.

Member Avatar for jan1024188
0
274
Member Avatar for 2mdennis

I am fairly new to Java and am having some difficulty with implementing an arraylist. I have some classes that contain variables and i have a new class that contains my arraylist. I would like to know how i would get the variables from the other classes into the arraylist …

Member Avatar for 2mdennis
0
162
Member Avatar for Kees Baltus

How to get access to picture information, such as Width, Heigth, Manufacturer, Cameramodel, Exposuretime, Picture made on, Date created, Date changed and so on. (just like in Windows Explorer)

Member Avatar for Kees Baltus
0
290
Member Avatar for cbailey3001

How can I add a sleep(1000) to this code? I've tried but I can't get it to work. (This program is supposed to be an infinite loop) [code] [COLOR=#800080]public [/COLOR][COLOR=#800080]class[/COLOR][COLOR=#000000] ExtendedThread [/COLOR][COLOR=#800080]extends[/COLOR][COLOR=#000000] Thread {[/COLOR] [COLOR=#800080]public[/COLOR][COLOR=#000000] ExtendedThread(String name) [/COLOR][COLOR=#800080]throws[/COLOR][COLOR=#000000] InterruptedException {[/COLOR] [COLOR=#800080]super[/COLOR][COLOR=#000000](name);[/COLOR] [COLOR=#000000]}[/COLOR] [COLOR=#800080]public [/COLOR][COLOR=#800080]void[/COLOR][COLOR=#000000] run() { [/COLOR] [COLOR=#800080]for[/COLOR][COLOR=#000000] ([/COLOR][COLOR=#800080]int[/COLOR][COLOR=#000000] i …

Member Avatar for deng_cen
0
104
Member Avatar for R6er

Hi, I have a parallel array of size 10 with several different size numbers in them. Within my program I put a series of cout statments for the different array indexes so that was known, and here they are: [code]cout << classes[0] << " " << boxes[0] << endl; . …

Member Avatar for R6er
0
259
Member Avatar for Yoshidex

Hello there, I think I have a weird problem with a program I'm writing, specifically, a function to create a file. I made the following program just to test the important part of the problem, which is that it won't create the file. Here's the code. [code] #include <fstream.h> #include …

Member Avatar for Yoshidex
0
101
Member Avatar for raj157

well the problem is i want to write the person's name from preson class to instructor class using inhertiance, i have come up with the following code but gives error .. can someone tell me what am i missing or what can be done. its like sharing from person class …

Member Avatar for raj157
0
121
Member Avatar for blackdove

This is my first attempt at creating a website using PHP. My database is done in MySQL. It is for a made up university. I am having trouble creating the page that should allow current students enrolled at the university to search for courses and add them to their schedule. …

Member Avatar for blackdove
0
119
Member Avatar for amithasija

can we use collection_select with :selected option if yes ,plz let me know.if not than plz tell me how to use select instead of collection_select and where to write query in select if i dont want to find all records. thnx in advance.

Member Avatar for pty
0
421

The End.