199,114 Archived Topics
Remove Filter ![]() | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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? | |
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++) … | |
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")); … | |
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 … | |
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 … | |
[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"; … | |
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 … | |
what is code mean? [CODE] void fo(){ count += 1 + !(count <5); cout << count <<endl; } [/CODE] Thank you . | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
can I use the try...catch statement on java to stop the execution of codes on error? just like the exit sub on vb | |
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 … | |
Hello, does all php versions accept the <?= ?> or no ?? Don't you think for designers <?= ?> is easier than <? echo ?> Thank you | |
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 … | |
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" … | |
I want to calculate factorial with all proper validations. Can anyone tell me the functions to be use for this using VB.NET...pLz | |
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 … | |
[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"; … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
[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. | |
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 … | |
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 … | |
[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 … | |
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 [] [] [] … | |
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 … | |
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 … | |
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 … | |
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() … | |
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. | |
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 … | |
[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 … | |
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 … |
The End.