199,114 Archived Topics
Remove Filter ![]() | |
i'm working on an e-voting system for my thesis... but i'm having problem on how to output the data in all the rows in the database in a check box. so it means that the number of checkbox is equals to the row of the table. i manage to output … | |
![]() | hi!! I installed TurboC++ version 3.0 in my computer, which runs a WindowsXP OS.... the problem is... the turboc++ window opens in my screen but i am not able to use my keyboard as well as my mouse within its window, hence i am not able to work with it … |
hey guys im trying to write a simple program for displaying an image using opencv libraries but the program never compiles.. it says no such file or directory 'highgui.h' .. ive tried reinstalling and configuring both devc++ and open cv about twice but to no avail.. ive downloaded the latest … | |
I'm having trouble even beginning to GUI program in C++. I'm using DevC++ with WX widgets and I've downloaded the DevPac. I really need something to help me understand the basics. For example. How would one go about creating a project and programming a GUI applicatin. Also, when you compile … | |
I'm working with some objects given to me by the API for an architectural modeling program. When navigating the model, I get a set of Component objects. One of the data members of these Component objects is a set of Interface objects. I'm looking to search for a specific Interface … | |
Hi, I am trying to generate a list of random numbers where each number in the list is a individual string. This is my code so far: [CODE]import random def make_secret(numdigits): a=[] secret = random.sample(range(0, 10), numdigits) for i in secret: a.append(str(secret)) return a[/CODE] An example of what i'm trying … | |
Hey guys, I have to write a c code for an emulator of a very simple CPU. The CPU uses 16 bits for all addresses and data and has three registers, I, A and PC. The instruction cycle is as follows: 1. Fetch the operand for the current instruction (an … | |
Hi all. I've tried to make a simple hover effect about small images but it won't work. I also tried to make the following script: 2 seconds after page loading image1 changes 2 seconds after that image1 returns to back state and image2 changes and etc. Can someone help? Best … | |
Who make better programmers? Men or Women? :) Just curious coz all around the world, in academics, women surpass men. But in this field, i guess its men :). What you say? I am a male by the way! | |
hi all im writing a website for a life insurance agency as a final year project and i need the system to have a mechanism of an online payment system. i have no idea how to create it. could anyone lead me to a tutorial or something which can help. … | |
![]() | i need to compile and run my assembly code on windows7 using MasM615..it normally compiles but doesnt created the .exe file..who can help me here please i dont want to run xp...i prefer windows 7 and linux ubuntu...i need solution for ubuntu too..Thanks Guys |
Okay i'm really sorry to have basically bombarded this forum but this is my last cry for help on this project I swear! I guess many of you are intimately familiar with what's happening so far, and thank you all so much for putting up with me =) I've got … | |
ok so the thing is im trying to save information from a register page into a file [code=java] else if(ae.getSource()==b1) { fname=t1.getText(); lname=t2.getText(); rol=t3.getText(); branch=cb1.getSelectedItem().toString(); username=t5.getText(); password=t6.getText(); username.savedata(); setVisible(false); } [/code] the username file is--- [code=java] package Proj; import java.io.*; public class username { public static void savedata() { try … | |
hey , my question is that suppose we have an application runnig . it has a jlabel with some text and now in some function i change the text by using setText()func and continue with some other stuff in the function , now the text that i changed is not … | |
Is there any concept of pure virtual destructor in C++? | |
Hello, Is the endianess can be for the nibble boundaries ? Because i have defined a class, and try to access the array with a pointer of class type. typedef unsigned char uint8; class A{ public: uint8 a:4; uint8 b:4; }; int _tmain(int argc, _TCHAR* argv[]) { uint8 temp = … | |
i've made the following program that count how many times the input character is appeared in a string. [CODE]import java.io.*; class strngcls{ public static void main (String args[])throws IOException{ String s1,s2; char ch; InputStreamReader ir = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (ir); System.out.println ("Type any Sentence: "); … | |
okay, I'm trying to create a new instance of SimpleCanvas through the FlagDrawer object. I need the SimpleCanvas to be scalable. I can only use the two instance variables and one constructor given to me. What I'm trying to do now is take the class instance variable (int) size and … | |
I was studying Instruction cycle from "Computer System Architecture" by Morris Mano .Under timing and control topic,fetching cycle is explained like this: [b]T0: AR<--PC T1:IR<--M[AR],PC<--PC+1[/b] IR-Instruction Register AR-Address Register PC-Program Counter However, according to my understanding of previous topics PC can be incremented with T0 control signal.Please explain is it … | |
Hello. I have a search engine form that is not ajax and it refreshes the page on search. I was wondering if it is possible to type a onclick code where it will contain my php script for the search engine by when you search, it'll send show the result … | |
Hi everyone. Today i have been playing with templates and decided to make a generic question and answer function using templates to allow you to choose the return type for each call. Code below. [code] template< class T > T qAndA(const std::string Question,const T retType) { T retVar; std::cout<<Question<<std::endl; //ask … | |
hi, The problem i am facing is Notice messages in my website when i upload site on domain. I tried to sort it out by applying error_reporting(0) in php and code in htaccess file to disable error reporting. But problem is still there as shown in my website [url]www.bathroomfurniturestore.co.uk[/url] Please … | |
![]() | I need help on this two assignments: # 1- Write a client and server, Java Swing application using socket connections that allows the client to specify a filename to the server in a Textfield and the server send the contents of the file back to the client if it exists. … |
hi, The problem i am facing is Notice messages in my website when i upload site on domain. I tried to sort it out by applying error_reporting(0) in php and code in htaccess file to disable error reporting. But problem is still there as shown in my website [url]www.bathroomfurniturestore.co.uk[/url] Please … | |
Hi all, I have a script to built thumbnails for some images. It's working great, but when the file name for the original picture contains a single quote, it skips that picture. I use this: imagejpeg($result, "thumb/".$title.".jpg", 100) or die("Cant save image"); $title is the picture name, received direct from … | |
Yet another thread showing how awful I am at programming... I've got a list called week_pattern It contains a list of 52-character strings which represent whether something occurs in a certain week. The list is below: [CODE]['0000000000111111111100000000000000000000000000000000', '0000000001000000000000000000000000000000000000000000', '0000000000000000000000000011111111000011100000000000', '0000000000000101111100000000000000000000000000000000', '0000000001111111111100000000000000000000000000000000', '0000000000111111111100000000000000000000000000000000', '0000000000000000000000000001111111000001100000000000', '0000000000111000000000000000000000000000000000000000', '0000000001111111111100000000000000000000000000000000', '0000000000000000000000000011111111000011100000000000', '0000000000000000000000000011111111000011100000000000', '0000000000000111111100000000000000000000000000000000', '0000000000000000000000000000000000000000001000000000', '0000000000000000000000000001111111000001100000000000', … | |
[CODE]int main() { int ival=12 , ival2 = 14; int &ref=ival; ref = ival2; cout<<ref; return 0; }[/CODE] That code shows an o/p as 14? How is it possible ? i thought references were not reassignable ? 1 more thing- do references occupy seperate spaces in memory like pointers ? … | |
I found the following code on internet for adding two numbers using pointers:- [CODE] #include<stdio.h> int main() { int a=30000,b=20,sum; char *p; p=(char *)a; sum= (int)&p[b]; printf("%d",sum); return 0; } [/CODE] But I can't understand how p holds the value 30000 or how the result of the program is addition … | |
I have spent days trying to get this web page to function as intended. If I have the .js in a separate file and reference it from the web page <head>, the page works fine. However, once it is embedded instead, nada. This is the entire web page coding, including … | |
Hello! I am fairly new to regular expressions (in PHP in particular, since there seem to be some special requirements/restrictions), and am especially stumped with my most recent attempt at parsing two particular strings. The first one is a URL in which I want to retrieve the first variable: [code]http://somesite.come/page.html?var=1234&some=2[/code] … | |
Hi all, I got a idea! if you have open source project ideas please share them on this thread. There are many tons of open source projects out there in the internet. what here expected is fresher level complex code-bases. :TODO: requests are welcome. so the final year students who … | |
MY question is, like we do for integer and float, Integer.parseInt(args[0]) Float.parseFloat(args[1]) How do we take character input from command line ? | |
How can I extract URLs from webpage and want that all url should be from some specific site only like "www.abc.com/32432/file.zip" it should search abc.com and the extenstion can zip,rar,001 any help? | |
Float can hold 6 significant digits and double 10 (this is how the book tells me). Consider this code i wrote to test : [CODE]int main() { double a=355979.567; //9 significant digits i think cout<<a; return 0; }[/CODE] The o/p is 3555980. i thought since 'a' is double it should … | |
Hi and thanks for reading.I'm trying to acces the master PLC of a CAN network using the windows api.It's become a nuisance since i cant' figure this out at all.I will try to be brief since i don't have the source code at hand. So i'm initializing a handle for … | |
Hi I have a database which has a table named [B]main[/B] and a field named [B]description[/B] typ of [B]description[/B] is [B]longtext[/B] I can insert more than 100 word through phpmyadmin. but can't insert through form submit by post method. but Here i can insert 10 word through same form submit. … | |
Hello, I am having issues creating an application that is due tomorrow! Obviously I am not calling my functions correctly, or I just don't even have my functions written correctly. Please help!! Here is the problem: I am trying to create an application for a wire company that sells spools … | |
Last time i was facing a problem to connect or link to database for my java program. Actually i have to implement a reservation system, but then after i have sucessfully connect to database, i found out that i can do everything in database, then the class which i create … | |
Hello, i need help in bluetooth coding using visual studio 2008 (vb.net) .... who can help me/ provide some examples/ some external links in the internet of bluetooth source codes ??? i need bluetooth functions like: - detecting other bluetooth users - turn on / off computer's bluetooth - send … | |
I have the following code: [CODE]import java.util.*; public class Final{ private double guess = 1; public Final(double x){ root(x); } public double root(double b){ double rez = -1; if(Math.abs(guess*guess - b) < 0.001){ rez = guess; } else{ guess = (2/guess + guess)/2; rez = root(b); } return rez; } … | |
Hello peoplez, I am writing an application in vb.net using a mysql database. I need it to be multilingual. I have not found much useful info on this so I thought I 'd go ahead and work it out myself. I have started making a translation table in the mysql … | |
I have the same issue, either POST or GET, when running the codes in localhost, they give me empty values but everything works fine when running them to my hosting..weird.. I'm now doing some back ups, will reinstall my localhost server.. any help please.. thanks | |
I was wondering if anybody would be able to help me insert a confirm delete popup window that closes after submit. here is what i have so far [B]index.php[/B] [CODE]} //delete tool button actions if (isset($_GET['deletetool'])) { $id = mysqli_real_escape_string($link, $_POST['id']); $sql = "DELETE FROM tools WHERE id='$id'"; if (!mysqli_query($link, … | |
I would like to set and display a score that varies on how fast the correct answer was made. For example..a question would be answered for only a minute..and the score would be 20points for answering in the range of 1-10 seconds, 15points for answering in the range of 11-30 … | |
While compiling ProC application on AIX...getting the following error proc iname=v4_mcdr_6010 ProC/C++: Release 10.2.0.1.0 - Production on Fri Jul 2 11:15:52 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. System default option values taken from: /edw/ora10gclient/10.2.0/client/precomp/admin/pcscfg.cfg Parser error at line 756, column 32, file /usr/include/sys/thread.h: Error at line 756, … | |
[CODE]SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[createaccount] @account VARCHAR(15), @password VARCHAR(32) AS SET NOCOUNT ON DECLARE @DateActivated AS CHAR(8) IF NOT EXISTS (SELECT account FROM ACCOUNT_TBL WHERE account = @account) BEGIN INSERT INTO ACCOUNT_TBL (account, [password], id_no2, isuse, member, realname) VALUES (@account, @password, @password, 'T', 'A', … | |
Honeslty have no idea on how is the output being generated ? [CODE] #include <iostream> int main(int argc, char** argv) { int i=1,j=-1,k=0,l=2,m; m=i++||j++&&k++; printf("%d %d %d %d %d",i,j,k,l,m); return 0; } [/CODE] output : 2 -1 0 2 1 evwn though j++ is is present that value is not … | |
Hello Friends, Any body help me to convert the code from Delphi to vb 6.0 const C1 = 43941; C2 = 16302; function BorlandEncrypt(const S: String; Key: Word): String; var I: byte; begin SetLength(Result,Length(S)); for I := 1 to Length(S) do begin Result[I] := char(byte(S[I]) xor (Key shr 8)); Key … | |
I'm a little new to C++ templating, and I'm having trouble understanding this behaviour. Basically, I have a templated class, and I want to define the = operator between the class and the same class with any template parameter. The problem is that the overloaded version of the = operator … | |
okay, so i have a search form that has some optional fields, so when the form is submitted using the GET method to its processing php page, the resulting URL may have blank values in it, and it gets quite long. What id like to know is is there a … |
The End.