199,114 Archived Topics
Remove Filter ![]() | |
Hi, I have been working on this all weekend and can't figure out what I am doing wrong. The objective is to collect 3 numbers from the user then display to them the numbers they entered, the lowest number entered, the highest number entered, the total, and the average. Can … | |
Hello, colleagues, Greetings I'm developing this code but I have problems on the part of a database query look at the full function code in which I have problems other than data base is [CODE]import sqlite3 as lite con = lite.connect('MiBase.sqlite') c = con.cursor() c.execute("""create table inventario (codigo real, producto … | |
guys, i am having trouble printing the LCS. This is the algorithm i am following to get the count of the LCS. [CODE]int main(void) { printf("\nThe LCS is %d",LCS(0,0)); } int LCS(int m, int n) { if(m==l1 || n==l2) return 0; if(X[m] == Y[n]) return 1 + LCS(X[m+1],Y[n+1]); else return … | |
Please suggest me for live video streaming as i am trying create a website in which I can update the video live for religious perpose ![]() | |
I need to show the content of one panel class into another panel of another class ..i am new to java so i would appreciate any help...plz help me... in short i just want to add one panel into another through actionlistener of some button.. | |
I have attached the screenshot of my output. I guess, the syntax is wrong. Please help.! [CODE]<?php //initilaize the mysql user name and password //Database Config $dbHost='localhost'; //Database server $dbName='db'; // Name of the database $dbUser='root'; // Database username $dbPass=''; // Database password $source = mysql_connect($dbHost, $dbUser, $dbPass); if (!$source) … ![]() | |
I have a textbook question that's a two parter, the first part asks me to write the definition for a sumStack function (conceptually) with the prototype as: void sumStack(stack<int> istack) I can do that part simply enough, by having it pop each value of the stack and adding that value … | |
can you help me on how to convert the numbers into words . here is my example on how to do that program but im not sure if this is a correct program.. #<iostream.h> #<conio.h> int ones,tens,hundreds main() { cout<<"ENTER NUMBER"; cin>>number; cout<<"ENTER ONES"; cin>>ONES; if(number==1); cout<<"one"; else if(number==2); cout<<"two"; … | |
I have a form that contains a cfgrid named idGrid (using CF9). Contains four columns: Autonum (for now, the pk), CR_ID (fk), ID, and IDType. These come from tblIDs in my db. The grid is editable but not the Autonum or CR_ID fields (select="no"). I am using code straight from … | |
I am working on a project and i need to have the colume of 3 boxes but I keep getting errors when I try to compile. Can anyone help and see what I am doing wrong? Here is what I have so far: [CODE]#include <iostream> using std::cout; using std::endl; class … | |
AS javascript date function return gregorian Date. Can I retrun Hijri Calendar date from javascript date function and how? Thanks in advance | |
hello can somebody check my query cause i'm having a hard time working on it., i need to insert data on my database when i process it tells syntax error in Insert into statement pls. help thnx [CODE][COLOR="Green"]try { OleDbCommand cmdSave = new OleDbCommand(); cmdSave.Connection = cls_DB.cn; cmdSave.CommandText = "insert … | |
Hi All When trying to open a URL with bellow code, it Gives "TypeError: not all arguments converted during string formatting" [CODE=python]import urllib City="%D9%85%D9%87%D8%B1%D8%A7%D9%86" Province="%D8%A7%DB%8C%D9%84%D8%A7%D9%85" myurl = 'http://www.owghat.com/owghat.png.aspx?Province='+'%s'+'&City='+'%s'%(Province, City) #the real address is:http://www.owghat.com/owghat.png.aspx?Province=%D8%A7%DB%8C%D9%84%D8%A7%D9%85&City=%D9%85%D9%87%D8%B1%D8%A7%D9%86 a="e:\\img.png" urllib.urlretrieve(myurl,a)[/CODE] So, what I'm doing wrong? AND Another question: How to encode a utf-8 string(example: مهران) … | |
Hello Everyone, I am Karan Patel from India.I am presently a Computer Engineering student.I am in my 5th semester. I want to develop an application in PHP.So will you please guide my all the required knowledge to do that? I have knowledge of HTML,CSS,Javascript and Joomla CMS. So what should … ![]() | |
I need my code to continue after a return statement. Any way to fix this? | |
I've to design a database for a tuition centre. Here is some business rules for it: - A centre has many student (1-m) - A centre has many teacher (1-m) - A centre offer one or more subjects (1-m) - A teacher teaches one or more subjects and a subject … | |
I need some help with doing a choice. Atm i have [code]choice = switch (choice) { case 'A': case 'a': { optel (); break; } case 'B': case 'b': { break; } case 'C': case 'c': { break; } default: { System.out.println ("You did not choose any of the options"); … | |
Dear Experts, I have code for adding/deleting/modifying form icon and tool tip text to task bar. Its working fine in Standard.exe project but when i tried to use these code as dll file then i am getting error code 424 , object required. I already register dll file through regsvr32 … | |
How do you insert label values to database? here is my code.. [CODE]Imports System.Data.OleDb Public Class frmemp Dim con As New OleDbConnection Dim dbAddNew As New OleDbCommand() Private Sub frmemp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim ds As New DataSet Dim dt As New DataTable Dim … | |
hello i am beginner to java i wrote a simple program of object array but it is showing run time error [QUOTE]Exception in thread "main" java.lang.NullPointerException at classarr.main(classarr.java:14)[/QUOTE] [CODE] class abc{ int i; } class classarr{ public static void main(String arg[]) { abc a[]=new abc[4]; int j; for(j=0;j<=3;j++) a[j].i=j+1; for(j=0;j<=3;j++) … | |
I need a little help with algorithm for my code.Given a word "abacus" i have the code to find all its anagrams but i need to include also the words that are smaller in length than the original word. That is, I wanna be able to list ABA,AAB,ACA....ABAC,ABCS....so on. Thanking … | |
I'm suppose to make a code that is suppose to check errors on inputted letters but I can't seem to get it right cause when I input something either wrong or right it still prints "ERROR" [CODE]void check(char a, char b, char c, char d,char e,char f, char g, char … | |
I have almost made the program which gives urls from google and collect in listbox and sort found as i typed links and copy into richtextbox. But i need to pick up all urls from google automatically from all pages. Because now it does only 1 page. Here is the … | |
I'm a beginner looking for Windows 7 phone app development. Have downloaded the kit and emulator. I follow tutorials to develop apps but I don't understand the steps.I use visual C# 2010 as the IDE .Please help as to what should I learn so as to understand the coding in … | |
I am trying to utilise a development kit for software that we use at work. I think I have found a member function that would address a problem I have and I'm trying to test it. The documentation says that it is used thus: [CODE] int SDKclass::SDKclassmethod( a_data_type** a_data_array_ptr, char*** … | |
Hi All.... how to search by price range [CODE] ---------------------------------------- id price | range_type | min | max ---------------------------------------- 1 | A1 | 1 | 100 2 | A2 | 101 | 200 ---------------------------------------- 3 | B1 | 151 | 250 4 | B2 | 251 | 400 ----------------------------------------- [/CODE] … | |
The following code shows a simple use of speech synthesis to speak the string "Hello World". [CODE]package helloworld; import javax.speech.*; import javax.speech.synthesis.*; import java.util.Locale; public class HelloWorld { public static void main(String args[]) { try { // Create a synthesizer for English Synthesizer synth = Central.createSynthesizer( new SynthesizerModeDesc(Locale.ENGLISH)); // Get … | |
I'm interested in a generic event system for Python. I've searched the forum for similar topics, and I've searched the web for existing implementations. I haven't found exactly what I'm looking for. I'm familiar with the Observer pattern. However, my implementation and other implementations lack strong support for concurrency and … | |
well guys , i want to make a read and write from textfile ... but the problem is when i click the calendar, and click create now(button 1), it cant work... if i didnt click the calendar, it works well.. so how to solve this problem anyone? [CODE] using System; … | |
In programming terms, Is there any difference between Generate Anagrams, and Generate Permutations of a string ???? | |
Hey guys I'm trying to create a tic-tac-toe program in c++. This is what I have so far. But it just produces garbage. [CODE]#include<iostream> #include<cstdlib> #include<ctime> #define frz system("PAUSE") using namespace std; //Global Variables const int length = 3; const int width = 3; //Function Prototypes void initializeboard(char [length][width], int); … | |
Hi I am in a java class and am working on a mortgage calculator with gui. I think I almost am done and have the assignment parameters completed but am stuck on two issues. 1) can't get my scroll pane to work. 2) I want to have the user select … | |
Hey is there a way to find the maximum occuring character in a string without using a hash map. ? Maybe in dynamic Programming or something ??? | |
I have been looking for tutorials for about an hour now for pythin networking and nothing i am finding is helpful. What i need is a python program that will take a computers ip adress and tell me if a specific port is open. Can anyone give me a quick, … | |
Hello, [URL="http://www.daniweb.com/software-development/java/threads/223488"]http://www.daniweb.com/software-development/java/threads/223488[/URL] I need C code for a problem in given link above. I tried to convert it to C code but couldn't do it, i'm kinda beginner. I guess it's easy problem for pro programmers so i really appreciate if you can help me out. | |
My basic problem is that I'm having a hard time implementing a Pthread that consists of a round robin dequeuing 4 arrays consisting of ints. Followed by a Pthread that creates random numbers with which to enqueue them with. I've written most of the code for the queue itself and … | |
[CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> main(){ char cChoice; printf("****************************************\n\n"); printf(" FLIP!-TAC-TOE 3D \n\n"); printf(" Enter S to start the game or \n\n"); printf(" E to exit! \n\n"); printf(" Choice: ", cChoice); scanf("%c", &cChoice); if(cChoice == 'S') function1 (); else exit(EXIT_SUCCESS); printf("\n****************************************\n\n"); system("CLS"); void function1(){ char cMarker1; int i = … | |
guys i need some help!.. my friends are having their project on web developing?? How can i create a Login System with this database?? [B]tbl_stud[/B] st_uname = logmein st_pw = 123 type_id = student [B]tbl_prof[/B] pr_uname = pro pr_pw = 321 type_id = prof tbl_admin ad_uname = adm ad_pw = … | |
Hi Everyone, this my first time. My question is how can I locate a non-ascii character in a string/field? Thanks, C | |
Here is Mandelbrot set viewer in Tkinter and modules for shedskining (included compiled modules for windows in the zip file): [CODE]# mandelsh.py def mandel(real, imag, max_iterations=20): '''determines if a point is in the Mandelbrot set based on deciding if, after a maximum allowed number of iterations, the absolute value of … | |
Hi, I'm working on a bit of a self-tailored operating system, loosely based on MikeOS (I've kept some MikeOS calls, removed a few, added my own, stripped down the interface,..) and i seem to be stuck on a problem. I need to define userspaces and allow the system to accept … | |
hi there ! im new to programming , i cant figured out how to determine the highest even number and the lowest odd number among three numbers in C . does anyone out there have an idea ? i badly need your help . tnx in advance :))) | |
I'm writing an application for processing scientific data. The data is displayed in a jTable. I'm done with the data processing itself, now I want to do some conditional formatting to make interpretation easier for the end user. [LIST=1] [*]The last column of the table contains a threshold value, and … | |
I have question about shell command well lets say i have this [CODE] Shell("\bin\game.exe", AppWinStyle.NormalNoFocus) [/CODE] Well as you know the command will come up an say File Not Found [CODE] FileNotFoundException [/CODE] So how can i put this command and when the file is not found turn up with … | |
I have 2 classes. One get/set BlockData, and one main class that loads,draws,updates. I have a big list of public Texture2D types that I have in the main class. I need blockdata to be able to get the texture2d types for each block and send it back to main...but blockdata … | |
Hi everyone, First time i am going to work on the search.please help me how i make search in my site,the website is about the products,i want the user search for the products by city name, [B][U]Requirements [/U][/B] The simple search give result of the products in the selected city,the … | |
import java.io.*; public class Wisk_project_template { private static BufferedReader inStream = new BufferedReader (new InputStreamReader (System.in)); //***************************************************************************** // handles addition private static void optel () throws Exception { // ask name System.out.print ("Hi - what is your name? "); // call menuLevels and ask for level menuLevels (); System.out.print ( … | |
What does "values", "data" and "field" mean in java ? For example, definition of encapsulation is hiding of data in a class and making this class available only through methods. In this way the chance of making accidental mistakes in changing "values" is minimized. In access specifiers, Java allows us … | |
So, I created two forms: Input and Output. In the Input form, the user inputs the required information such as name and schedule. Then when the user is finished, he/she will click the "finished" button which brings up the Output form which has all the inputted info from the Input … |
The End.