199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for twinkle2011

Guys I have an homework activity creating a simple calculator and I encountered some errors in my code can someone help me out of this activity or revised my code. My code have not finish yet and still thinking how my calculator works or what code to be in functionality. …

Member Avatar for JamesCherrill
0
383
Member Avatar for phoenix_2000

Heya all, I've got a really weird bug here at the moment. I recently uploaded a javascript file form my local dev machine to an IIS server, and it gave me an odd error: "truedocument undefined". When i looked up the line in my browser source code(the one you get …

Member Avatar for Airshow
0
141
Member Avatar for cppgangster

I have strange problem and I dont know where it does come from. First I list here the struct I have problem : [CODE] struct _THREADPARMS{ //global definition in one of my header file HWND h_wnd; BOOL bContinueAccept; BOOL bConnected; CProgressCtrl* pProgress; CDialog* pDialog; }; [/CODE] then I declare global …

Member Avatar for cppgangster
0
715
Member Avatar for udayashan

Hi all, Problem in retrieving the value of the form variable. Followed these steps: Created .jar file out of the .class file generated. jnlp file is working fine and the dialog box for open / save file is opening. but not able to get to file path. Can you please …

Member Avatar for NormR1
0
212
Member Avatar for PF2G

Hi, DaniWeb I'm doing a registration page and i want the button "Send" add the information to the MySQL DB, then appear an alert box saying: "Regsitration succesfully!!" and in the end redirect to "index.php". This is what i have: [CODE] <?PHP //ligar base de dados $dbhost = 'localhost'; $dbuser …

Member Avatar for pzuurveen
0
960
Member Avatar for hencre

Hi Guys, I'm new to python - how to execute dos2unix from python - subprocess.popen with shell = False ? >>> cmd = subprocess.Popen(["dos2unix","./FEED1/bin/*"], stdout=subprocess.PIPE) dos2unix: converting file ./FEED1/bin/* to UNIX format ... >>> dos2unix: problems converting file ./FEED1/bin/* All help appreciated.

Member Avatar for hencre
0
1K
Member Avatar for chet6

Hi, We are a team of 3 people. We have not worked on Python before.We want to learn python & also develop a small project or software using python,c,shell scripts in LINUX environment. Could someone help us or give information on websites of the projects that we can develop?

Member Avatar for Ismatus3
0
160
Member Avatar for theUserMan

Need some help computing the geometric mean of an array this is what I have so far... i'm not really sure why i'm suppose to use pow [CODE]include math.h include int geomean(int *myarray, int count) { double geo = 0; double count = (double)count; for(int k=0; k < count; k++) …

Member Avatar for zeroliken
0
494
Member Avatar for lgbagabuyo

public class Library { public Library(String Libraries) { } private String Library; public static void main(String[] args) { Library firstLibrary = new Library("10 Main St."); Library secondLibrary = new Library("228 Liberty St."); //errors in this part, cannot find symbol //Symbol: class book //location: class library.library [COLOR="Red"]firstLibrary.addBook(new Book("The Da Vinci Code")); …

Member Avatar for zeroliken
0
268
Member Avatar for PrimePackster

Hello Guys, Well i have a problem, I coded a program to print the ascii table, then give the user a option to either convert character into ascii or ASCII to character. Well the latter is not working, and the loop to print the ascii table is having the same …

Member Avatar for PrimePackster
0
250
Member Avatar for sandman64

I'm trying to change the user inputted date into a date object so that i can format it into a date format then display it in the selected format in the textarea [CODE] import java.awt.*; import java.awt.event.*; import java.awt.CheckboxGroup; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class radiobutton …

Member Avatar for sandman64
0
194
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; class Reverse { int n,num,dig,rev; public: void Rev() { cout<<"enter an integer number to check if it palindrome or not \t"; cin>>num; n=num; // rev=0; while(num>0) { dig=num%10; // 48%10=4 rev= rev*10+dig; // rev=48*10+4=484 num=num/10; //484/10 =48 cout<<num; } if (n==rev) cout<<"given number is palindrome"; …

Member Avatar for Srinivas0
0
172
Member Avatar for SketchGamer

Hey guys, this is my first post here and I need a lot of help. I'd like to start off by saying that I'm VERY new to this so I might have some really obvious errors in here/my code might not make sense(i hope this is not the case) and …

Member Avatar for zeroliken
0
1K
Member Avatar for AlvinLiu

what is code mean? [CODE] void fo(){ count += 1 + !(count <5); cout << count <<endl; } [/CODE] Thank you .

Member Avatar for MandrewP
0
188
Member Avatar for udayashan

I have to open a dialog box to browse file and to get the file path..Similarly a location to save a file. both these tasks need to done in the CLient machine ,because its a web application hosted in the server. I tried using JNLP.Its opening in the server itself …

Member Avatar for udayashan
0
104
Member Avatar for vammy

Hi Guys, How do we create relation ships between tables using a sql query? im using MS Access and VB.net. Please post an example,tht would b really appreciated. many thanks.

Member Avatar for vammy
0
124
Member Avatar for skylinepkr

I have made a tetris game on my own and am trying to have options in the menu where when clicked, will change the frame to that size such as small, medium, large. I am trying to do this on a frame and at first I tried setting the preferred …

Member Avatar for skylinepkr
0
125
Member Avatar for l1nuxuser

Hello everybody i'am building a software to make lab management. So I need to save the data base. and i using SQLite. but I have problem the SQLite pramter is a const char. and the data from the software are CString. and becouse I using Unicode I can't convert them …

Member Avatar for kndubey88
0
672
Member Avatar for newbie14

Dear All, I got one table as the tblMasterData then I left join it with another table like this tblEventAlert. So what I want to do if there is a match between tblMasterData and tblEventAlert then for that tblEventAlert I would like to match it with tblDevice to to get …

Member Avatar for newbie14
0
231
Member Avatar for malcolm p

Got 2 problems with my buttons selection. What happens is the user selects the number of buttons depending on the number entered in the text box. If the number is 3 in the text box, then the user can only select 3 buttons, if more buttons are selected then it …

Member Avatar for Airshow
0
97
Member Avatar for Morten Brendefu

In my Delphi9, I have the ability to "Shrink" complete procedures and functions so that only the first line is visible. There is a small + or - at the beginning of first line of a routine, and when pressed, the code is 'minimized' or 'maximized'. I find this to …

Member Avatar for pritaeas
0
266
Member Avatar for depakjan

Please help me in finding the xpath for these nodes [CODE]<IPAddses> <IPAddss><ix>0</ix><addss >124.123.123.330</addss ><desc /></IPAddss> <IPAddss><ix>1</ix><addss >124.123.123.331</addss ><desc /></IPAddss> <IPAddss><ix>2</ix><addss >124.123.123.332</addss ><desc /></IPAddss> <IPAddss><ix>3</ix><addss >124.123.123.333</addss ><desc /></IPAddss> <IPAddss><ix>4</ix><addss >124.123.123.334</addss ><desc /></IPAddss> <IPAddss><ix>5</ix><addss >124.123.123.335</addss ><desc /></IPAddss> <IPAddss><ix>6</ix><addss >124.123.123.336</addss ><desc /></IPAddss> <IPAddss><ix>7</ix><addss >124.123.123.337</addss ><desc /></IPAddss> <IPAddss><ix>8</ix><addss >124.123.123.338</addss ><desc /></IPAddss> <IPAddss><ix>9</ix><addss >124.123.123.339</addss ><desc …

Member Avatar for mrame
0
113
Member Avatar for aldeene

can I use the try...catch statement on java to stop the execution of codes on error? just like the exit sub on vb

Member Avatar for stultuske
0
158
Member Avatar for lbgladson

I have to display the following pattern using a loop: @@@@@@@@@& @@@@@@@@&& @@@@@@@&&& @@@@@@&&&& @@@@@&&&&& @@@@&&&&&& @@@&&&&&&& @@&&&&&&&& @&&&&&&&&& I have the following program that is using a loop but it displays 9 rows of 10 @ symbols instead of incorporating the & symbols. What do I need to do …

Member Avatar for stultuske
0
452
Member Avatar for cmps

Hello, does all php versions accept the <?= ?> or no ?? Don't you think for designers <?= ?> is easier than <? echo ?> Thank you

Member Avatar for cmps
0
121
Member Avatar for i_ignore08

hey guys i'm having problem to my code in MAGIC SQUARE [B]Output of my current code[/B] 0 1 8 7 5 3 2 9 4 it's a little bit confusing.. the 6th digit turn to [B]0[/B] any help will be much appreciated :) thanks in advance [CODE] import java.util.Scanner; public …

Member Avatar for bibiki
0
137
Member Avatar for cyberwarezcp

Hello I wanna asking, i have a database ( online ) which have a 3 table ( Name, Link, Status ) I wanna ask how to : Check Name Data is it Same with the TextBox1? if it same check the status data is it "A" for Active or "N" …

Member Avatar for Netcode
0
651
Member Avatar for deepsmehta

I want to calculate factorial with all proper validations. Can anyone tell me the functions to be use for this using VB.NET...pLz

Member Avatar for Netcode
0
4K
Member Avatar for bmichelle510

This program is supposed to display a frame with a label that contains an image,two buttons, and a text field. When the user clicks the button the image is supposed to change. I know I don't have the code for the change in the text field. I am just trying …

Member Avatar for jieryn
0
197
Member Avatar for babyhuyx

[CODE]int game = 3; int ckenonum; const int hkenostore = 4; int hkeno[hkenostore]; const int ckenostore = 4; int ckeno[ckenostore] = {1,2,3,4}; bool kenopass = false; for(int hkenostore = 1; hkenostore<4; hkenostore++) { do{ cout<<"Please enter a unique number between 1 and 15 (" << hkenostore << " of 3)\n"; …

Member Avatar for cutenaj12
0
2K
Member Avatar for rockerjhr

pushl %ebp movl %esp,%ebp pushl %ebx movl 8(%ebp),%ebx leal 2(%ebx),%edx xorl %ecx,%ecx cmpl %ebx,%ecx jge .L4 .L6: leal 5(%ecx,%edx),%edx leal 3(%ecx),%eax imull %eax,%edx incl %ecx cmpl %ebx,%ecx jl .L6 .L4: movl %edx,%eax popl %ebx movl %ebp,%esp popl %ebp ret trying to make code in c then compiling it with the …

Member Avatar for BlZbB
0
258
Member Avatar for krunalkakadia

Hi all, I am using asp:UpdateProgress and asp:UpdatePanel.it works on local fine but when i upload it to live site then it is not working. please do some needfull help. thanks, krunal

Member Avatar for krunalkakadia
0
409
Member Avatar for ThemattyC

Im working on my final project for school where i have to uses arrays to store the first year of energy costs, the second array will store the second year after going green, and the third array will store the difference. I have pretty much all the code written out …

Member Avatar for TrustyTony
0
166
Member Avatar for SheepGotoHeaven

I'm having issues with generating tokens for the game of nim. Currently all im trying to do is get the generation of the tokens down in the canvas. I recently figured out that you can not add an object of the same name to a children collection if that object …

Member Avatar for SheepGotoHeaven
0
245
Member Avatar for JerryRong

I'm supposed to create a factorial application that prompts the user for a number and then displays its factorial. The factorial of a number is the product of all of the positive integers from 1 to the numbers. FOr example, 5! = 5*4*3*2*1

Member Avatar for zeroliken
0
112
Member Avatar for challarao

Hello, I wrote two programs which sort first names which are already sorted by their last names.One is with Selection sort and the other is with Quicksort! The question is , "is any one of them stable?." "If the names with same first names are still in sorted order by …

Member Avatar for WaltP
0
324
Member Avatar for DiabloInC

The purpose of this code is to open a file, read a passage and delete any word that is "secret", it is then to save the new passage to a new file. Problem: [Warning] passing arg 1 of `strcmp' makes pointer from integer without a cast I think I know …

Member Avatar for zeroliken
0
263
Member Avatar for manjeet593

[COLOR="green"]10 Coins Puzzle[/COLOR] Hello Friends, I m facing problems in coding of 10 coins Puzzle. I have made it, but the process was not good enough. I think there is a recursive process to sole this problem, but i couldn't get it. Plz help me out with efficient algorithm/code.

Member Avatar for Adak
0
135
Member Avatar for f.sh

actually I'm developing a template using ASP.net and C#. as you can see in attached picture, my template include 3 part and i want to have partial refreshing, that's why i'm using updatepanel. in this template once the user click at the top menu it will refresh the side menu …

Member Avatar for f.sh
0
499
Member Avatar for Daigan

Hi. So here's my code [CODE]public class TextFileIO { static Console c; // The output console static int total; public void askData () { int line = 0; int i; c.print ("Enter the number of words you're going to input: "); total = c.readInt (); File dataInput = new File …

Member Avatar for Daigan
0
237
Member Avatar for jmercer23

[CODE]/** Programmer: Jennifer Mercer Date: 12/12/2011 Course: PRG/420 File: Calculator.java Requestor: Dwain Hammer Billings MT Request Description: Write the program in Java (without a graphical user interface) and have it calculate the payment amount for 3 mortgage loans: - 7 year at 5.35% - 15 year at 5.5% - 30 …

Member Avatar for NormR1
0
498
Member Avatar for sirlink99

I am trying to make a storyboard program, but I am having trouble displaying the currect amount of windows per page. my basic program looks like this [] = button to open editor [+] = add new button [>] = next page [<] = previous page Frame [] [] [] …

Member Avatar for sirlink99
0
143
Member Avatar for Ty88

Hello everyone, it's my first time posting here and it's an urgent matter as I need the solution to this by midnight tonight :/ I'm really struggling with the all Big-Oh notation thing and I could really use your help. I have this C++ code: [CODE]void Teste::listarMaisAfastados() { int maior …

Member Avatar for Ty88
0
221
Member Avatar for Luis Ventura

Hello, i'm new to this forum and to Python and i want to creat a function that counts the number of words on .txt file, but also that creats a dictionary with it, with the words has a key and the number of referencies to it has a value. Thanks …

Member Avatar for Luis Ventura
0
545
Member Avatar for sofia85

Hi, I have a large file (11 GB), that I want to extract information from. I decided that the file was to big to work with, so I ended up with splitting it into 20 smaller files. Now I don't know what the smartest thing is to do with these …

Member Avatar for sofia85
0
148
Member Avatar for BlZbB

hello everyone I write project, there is problem in linking of my code [CODE] Error 1 error LNK2005: _str_list already defined in file1.obj string-test\file2.obj string-test Error 2 error LNK2005: _str_list already defined in file1.obj string-test\str.obj string-test [/CODE] think this is my code, anybody have any idea [B]main.c[/B] [CODE] int main() …

Member Avatar for WaltP
0
258
Member Avatar for denmarkstan

Good day people please i need your clearification here: i want to go for mcdba certification. i do not understand these category exam stuff of 70-431, 70-293, 70-290, 70-291 etc. please let someone explain for me. thank you.

Member Avatar for mlesniak
0
123
Member Avatar for ayaya3523

I have been working on this code all week and can not figure out why its saying that my identifiers are undefined.... Please Help! [CODE]class Invoice { public: // constructor initializes the four data members Invoice( string, string, int, int ); // set and get functions for the four data …

Member Avatar for Clinton Portis
0
521
Member Avatar for harde

[ICODE]* Slot Machine Program by Harde*/ #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { int x,a, b, c, token=4; srand(time(0)); cout<<"\t********************************************************\n" <<"\t* Welcome to slot machine. *\n" <<"\t* Would you like to play? (1 to play, 2 not to play) *\n" <<"\t********************************************************\n\n"; cin>>x; while(token!=0) {cout<<"You have …

Member Avatar for harde
0
349
Member Avatar for 1stoptutorials

Hey Everyone hope all well. I have this code that works perfectly on a mysql database [CODE]<?php // visit http://php.net/pdo for more details // start error handling try { // connect $pdo = new PDO('mysql:host=localhost;dbname=name', 'name', 'password'); // enable error handling through exceptions $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // create safe query $query …

Member Avatar for mlesniak
0
296

The End.