199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bobos051

Please can some one help me with codes to check and see if a text box contains first name, space and surname

Member Avatar for dataobjx
0
87
Member Avatar for dproun

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] …

Member Avatar for dproun
0
139
Member Avatar for SceneZx

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 …

Member Avatar for BestJewSinceJC
0
144
Member Avatar for Zandermander

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 …

Member Avatar for Zandermander
0
3K
Member Avatar for pinaz

[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 …

Member Avatar for pinaz
0
343
Member Avatar for ecedano

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) …

Member Avatar for Teme64
0
121
Member Avatar for NTxC

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; …

Member Avatar for NTxC
0
448
Member Avatar for massivefermion

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:

Member Avatar for Ancient Dragon
0
151
Member Avatar for ifemi

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 …

Member Avatar for ifemi
0
102
Member Avatar for 7eatsnine

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 …

Member Avatar for 7eatsnine
0
159
Member Avatar for davhuang

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 …

Member Avatar for jlm699
0
262
Member Avatar for bobstein

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 = …

Member Avatar for jlm699
0
110
Member Avatar for applebiz89

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 …

Member Avatar for jlm699
0
240
Member Avatar for timb89

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 …

Member Avatar for ArkM
0
87
Member Avatar for bluerose

[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 …

Member Avatar for bluerose
0
357
Member Avatar for astropirit

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; } …

Member Avatar for aces27
0
116
Member Avatar for Talguy

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 …

Member Avatar for Talguy
0
108
Member Avatar for vaps

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?

Member Avatar for vaps
0
88
Member Avatar for applebiz89

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. …

Member Avatar for applebiz89
0
79
Member Avatar for M'N'M

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 …

Member Avatar for tux4life
0
103
Member Avatar for samarudge

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 …

Member Avatar for samarudge
0
91
Member Avatar for newcook88

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>> …

Member Avatar for tux4life
0
601
Member Avatar for firoz.raj

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 …

Member Avatar for cguan_77
0
93
Member Avatar for stephen lowry

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 …

Member Avatar for Teme64
0
317
Member Avatar for Lewis_UnderGrad

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 …

Member Avatar for Lewis_UnderGrad
0
195
Member Avatar for ravindransrm

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 …

Member Avatar for ravindransrm
0
108
Member Avatar for bennyp

How do you call passwords from a txt file to check with the entered password to allow access. I hope that makes sense.

Member Avatar for HNgoc
0
333
Member Avatar for hider

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

Member Avatar for thoughtcoder
0
141
Member Avatar for coolmind259

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.

Member Avatar for mail2saion
0
104
Member Avatar for Petrock6

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 …

Member Avatar for NeoKyrgyz
0
142
Member Avatar for kischi

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] …

Member Avatar for mail2saion
0
120
Member Avatar for DotA

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 …

Member Avatar for DotA
0
125
Member Avatar for JLopeman

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? …

Member Avatar for JLopeman
0
241
Member Avatar for saravananrmca

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 …

Member Avatar for Salem
0
184
Member Avatar for welbyobeng

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, …

Member Avatar for welbyobeng
0
108
Member Avatar for schaffino

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 …

Member Avatar for schaffino
0
109
Member Avatar for alilskeetskeet

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 …

Member Avatar for BestJewSinceJC
0
124
Member Avatar for k007

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: …

Member Avatar for k007
0
2K
Member Avatar for bharanidharanit

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??

Member Avatar for c0deFr3aK
0
103
Member Avatar for roby22

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 …

Member Avatar for roby22
0
95
Member Avatar for BlackStar

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 …

Member Avatar for BlackStar
0
505
Member Avatar for jakesee

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 …

Member Avatar for jakesee
0
104
Member Avatar for Q8iEnG

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 …

Member Avatar for BestJewSinceJC
0
162
Member Avatar for sasukeuchiha

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 …

Member Avatar for BestJewSinceJC
0
139
Member Avatar for coboldeveloper

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" …

Member Avatar for coboldeveloper
0
145
Member Avatar for mostermand

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 …

Member Avatar for mostermand
0
149
Member Avatar for bernadlosini

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 …

Member Avatar for tux4life
0
156
Member Avatar for richardcyper

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. …

Member Avatar for ArkM
0
134
Member Avatar for veledrom

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, …

Member Avatar for ShawnCplus
0
97
Member Avatar for teddycow

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 …

Member Avatar for tux4life
0
105

The End.