199,114 Archived Topics
Remove Filter ![]() | |
Please can some one help me with codes to check and see if a text box contains first name, space and surname | |
My code is [CODE]package diningphilosophers; class DiningPhilosophers { // Η κλάση αναπαριστά την εφαρμογή static Philosopher philosopher[]; static Forks forks; static DiningRoom diningRoom; public static void main(String[] argv) { philosopher = new Philosopher[5]; forks = new Forks(); diningRoom = new DiningRoom(); for(int i = 0; i < 5; i++) philosopher[i] … | |
Hello, Ive just started programming in Assembly and im having a little trouble with the language itself. I wanted to make a program that takes two positive integers and adds them together, and outputs a message if theres a carry over, but i have no idea how to go about … | |
Hello, i'm making a small little app that pings all ips on a network from 192.168.0.1 to 192.168.0.255 and populates the active IPs into a listbox. Then from there i want you to be able to select one to look up the machines name on the LAN. [CODE] Private Sub … | |
[code]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <%@ page language="java" session="true" %> <html> <body> <% //Getting the text values from create login page String lid = request.getParameter("loginid"); String lpin = request.getParameter("loginpin"); String loginid = lid.trim(); String loginpin = lpin.trim(); [COLOR="red"]out.println(loginid); out.println(loginpin);[/COLOR] // Connect to Database to retrive all the … | |
Hi Guys, I need some light on this. I am a beginner programmer in vb.net but used to be programming in the old days in QBasic, Cobol, Dataflex, Informix, DBase etc. Now, I am developing/creating software and have hired some online programmers to do the job. My questions are: a) … | |
Hello. I'm currently having a memory leak problem in my program (C++ with MFC, VS2005) and I don't know WHY it happens, as the code seems to be OK to me. Anyway, here's the code that causes memory leaks: [code=C++]char* va( char* FormatStr, ... ) { va_list ArgPtr; char *FinalString; … | |
Hi I really need help It is a homework for just four days later. want someone to write two programs for me: 1-A program that converts a decimal number to hexadecimal 2-A program that generates the output below using loops: | |
Hi all, i need help on how to change a grid line((x1,y1), (x2,y2)) to another color. I have a 6 * 6 grid(black lines), made using pygame and i want to change the colour, with response to a mouse click on the coordinates. Is this possible? Below is the code … | |
hy to all members of Daniweb im a finance student currently taking computer programming course, im kinda shy to post it here actually coz im not good in IT nor programming. im really really new in C++, im having problem with my assignment. hope that all the seniors here could … | |
I am trying to write a program to do the hill cipher technique of encryption. I am stuck trying to break the large array of numbers representing letters etc. into multiple smaller arrays with one column and two rows does anyone know how this could be done?? Here is the … | |
I'm writing part of a program that involves writing user generated information to a text file. [code]class MonsterStats: def __init__(self, name): self.__monName = name def setName(self, name): self.__monName = name def fileWrite(self): monFile = open('MonsterFile.txt', 'w') monFile.write(self.__monName) monFile.close() [/code] I wrote this to test it out: [code]import MonsterClass name = … | |
I'm not really to sure with using python and its object oriented features as Im better with java. Im not sure whether to put the functions inside the classes as i can't really seeing this making a difference. I will apply my code and any changes or guidence would be … | |
this is a homework task im completly lost in? we need to implement this header file below i like to think im pretty good at arrays and classes.... but the new additon of dynamic arrays has got me really confused... any help would be greatly appreciated [code] #include <iostream> using … | |
[COLOR="Green"]Hello all.. I have a problem with my program in here. I am making a chatting application and i just need a final touch. This is the code snippet i make to represent my problem. First, i'd like to tell that i want to make the sending process like the … | |
hello all, I am attempting to write a simple programe that will imitate pressing a button on a third party application. so far i have this: [code] // astro rocks BOOL CALLBACK FindButttonPush(HWND hWnd, LPARAM lParam) { if(GetDlgCtrlID(hWnd) == 1000){ *(HWND *)lParam = hWnd; return FALSE; } return TRUE; } … | |
I am creating a matrix math library which I would like to give the user access an element in the NxM 2D array, that was allocated in the constructor. I've been reading that you can't overload the [][]. How would I be able to overload this overload this operator so … | |
Hi I'm having a lot of problems with this project. [URL="http://rapidshare.com/files/231273948/project_programmeren01.rar.html"]http://rapidshare.com/files/231273948/project_programmeren01.rar.html[/URL] This is the source code in rar, because it's to much to copy-paste. Are there people who can solve those errors? | |
I want to write a function that displays the whole contents of a list. But im not sure how to do so. I have displayed my datatype of which i want to print...and at the bottom is the function that I want to print the list with. Thanks in advance. … | |
Please can anyone tell me why that program crashes when I enter the first matrix? [CODE]#include<iostream> #include <stdlib.h> #include <windows.h> using namespace std; void menu() { cout<<" \t\t\t\t*-*-UNIATIVE Matrix calculator-*-*\t\t\t\t "<<"\n"; cout<<" "<<(char)1<<" NNNN MMMM AAAA "<<(char)1<<" "<<"\n"; system ("color 08"); _sleep(1000); cout<<" \t\t\t *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\t\t\t"<<"\n"; cout<<"Ahlan washlan ya user Ya … | |
Hi, I have a shell script that is supposed to change the permission for my WWW folder so that Apache can access them. My current script is [CODE=shell]chown apache /var/www/* chmod 755 /var/www/*[/CODE] This works fine for /var/www/ but subdirectories of /var/www/ e.g. /var/www/html/ is still owned by samarudge (My … | |
i want to read words form a text file and remove the comars and fullstops and then put the single word to a vector. but when i try the method below i get an error can some one please help me. [CODE]char delim[100]=",.`~!@#$%^&*()_+=-{}][:';?><|"; ifstream fileOne("file.txt"); string fileWord; while ( fileOne>> … | |
can anybody tell me .why it is not working .any help would be greately appreciated.Bold line is not working.Kindly find the attachment also.it becomes red i am using ms office 2003. kindly help me. here is the code what i have written. [code] Sub AddTopHeader() Selection.TypeParagraph Selection.TypeParagraph With Selection .Font.Name … | |
hi guys im working on a project which i have almost compleated, which saves the data onto a text file (semi colon delimited ) however the second part requires me to import this file into access database by clicking a button on my projects gui, i already know how to … | |
Hi guys, I've been using asp.net 2.0 over the past 2 years making simple web applications but have never used it with MySQL. I've been asked to create a website for a relative. The site will be a vehicle leasing company. After speaking to owner and understanding his requirements i … | |
Reputed number problem switch case statement hai This is my code Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim i As String i = TextBox1.Text Dim x As Object For Each x In i Dim num As Integer num = x.ToString() Select Case num Case … | |
How do you call passwords from a txt file to check with the entered password to allow access. I hope that makes sense. | |
hi please i am confused with bst complexity what is the complexity for balanced search insert delete ------------- unbalanced seach insert delete please help and correct me if i am doing things wrong thanx | |
Hi there, I need to show and hide functionality through javascript , how can I achieve this. If I click on a dash link then show particular section and if I click again then it should be hide. Is there is any script I can use? Please reply. | |
Hello. I'm developing a encryption program. I'm testing with encryption right now. I use bitwise operators and also bitwise shifts. [OR [|], XOR[^], AND[&], NOT[~], right[>>],left[<<]] To add even more security, I went ahead and added bitwise shifts. Whenever I shift the numbers, they go over 256 [max int in … | |
Hi, I'm trying to make a contact form, but it won't send the e-mail when I press send. It doesn't make an error, just nothing happens. I really don't know what the problem can be. I'm doing it in .net c# here is my code from my cs page: [CODE] … | |
I'm having trouble with a class which is fine until another method tries to access variables in the same class, seems like a scope issue to me. I get null pointers when i try to access an object which clearly works in a previous method. All my data and called … | |
Hi all - hope your weekend is going well. I've got the following code. It compiles, but gives a warning about a stack overflow error in the istream& operator function. When running the program, it just continuously outputs "Enter ID for student." What am I missing that makes this recursive? … | |
I developed this application on C++ I am using 5X5 and 3X3 kernels to convolve with Image. As I know convolution is computational Intensive and I have to convolve many kernels with my image to achieve the result, the execution takes 2 seconds. I would like to reduce the processing … | |
I have a fix code below [code=php] $values=array( "advertisement1" => 34, "advertisement2" => 45, "advertisement3" => 16, ); [/code] I want to take some information from my database and output the same way I have the code above but am getting an error. I am using [code=php]$sql = "SELECT advertisement.adver_name, … | |
Heya, i'm learning c at the moment and have a project i need to complete. I'd like to start of by saying that the course i'm on is pretty poorly taught. They taught us scanf printf basic arrays basic structures and fflush which doesn't even work on my compiler. We … | |
Hi, I am trying to code a program which will allow a user to search through a .db file for a word which is specified through an argument. The main class is in a different file. I am having a hard time putting the contents from the DB file into … | |
I am a novice user and am proposing to do a project on airline reservation system in C++ as a part of class. This is something I myself have proposed. I have started to design the classes and need some help. So far I have only created 2 basic classes: … | |
Hello, I am using OLEDBConnection and OLEDBDataAdapter and connected to the MS-Access database. how can i add the textbox value to the table in database on a button click and want to display it in datagridview?? | |
I have a couple text boxes A,B, C A is time in B is time out And C calculates the difference. Those 3 boxes are datetime boxes This form has a report binding navigator that manages the interaction to the database. The problem is that the values entered and calculated … | |
Can I have some idea's as to how to do that? Like say you have a piece of code that created n lists that are linked. Then you ask which node would you like to change the data? How would one do it? My Idea was the node contains N … | |
Hi, I have tried to find out on this, but I cannot be sure. Anyone knows for certain fopen and file_get_contents (or any similar functions) will generate an entry in the target domain's website traffic stats? I know this could be traffic analyser specific, so for a start, will it … | |
Hi mates.. I have a small question.. I have now 3 different classes, sounds ok? this is the 1st class, called "Wire" [CODE]public class Wire { private boolean Value; public boolean isValue() { return Value; } public void setValue(boolean value) { Value = value; } }[/CODE] This is the 2nd … | |
Hi, I'm trying to find out how to call a method from another class every 0.5 seconds until I tell it to stop using a function from the same class (the class that is doing the calling). Does anyone know if this is even possible? I've done a few Internet … | |
My static variable got initialized [B]everytime[/B] the function is called. Here's my code(simplied), thanks. - [code]<script> function validate() { return true; } </script> <?php vote(); Function vote () { static $testvar = 1; echo $testvar; if ($testvar == 1) { $testvar++; echo $testvar; } } echo '<td><input type="image" width=50% src="pix/camera.gif" … | |
Hi and sorry for the inconvenience I am trying to make an interface where a function is run given a number(windows API). I want a default function to be run if it hasn't been overwritten by the user. So my question is can i assign a number to a function/method … | |
i have to read input from .sql file .but that file name should be read from command line instead of cin.how to do that command? if my file t.sql ,how it would be? i tried like this but i couldnt get the output int main(int argc, char* argv[]) which file … | |
1.write a program segment that computes 1+2+3+...+(n-1)+n, where n is a data value. follow the loop body with an if statement that compares this value to (n*(n+1)) /2 and displays a message that indicates whether the value are the same or different. what message do you think will be displayed. … | |
Hi, As i am new in OOP, i just want to ask those who are experts in OOP that can this my example be considered as OOP example? Thanks [code] dbprocess.class.php <?php class DBprocess { private $dbconn; private $db; public function __construct($host, $user, $username, $password, $database) { $this->dbconn=mysql_connect($host, $user, $username, … | |
I'm having some problems with my code: [CODE] int a, b,x, c, d, cdnr ; char songname[4][3000][30]; char sok[4], avsok[30], cdtitel[4][30], r[30], i; { ifstream array2; array2.open ("array.txt"); array2 >> i; for(a=1;a<=i;a++){ array2>>cdtitel[a]; array2>>r[a]; for(b=1;b<=r[a];b++) array2>>songname[a][b]; } array2.close(); } for(a=1;a<=i;a++){ cout<<cdtitel[a]<<endl<<endl; for(b=1;b<=r[a];b++) cout<<songname[a][b]<<endl; }[/CODE] My text file: [CODE]3 AAAAAAAA 2 … |
The End.