64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ShEeRMiLiTaNt

Hello, I need to write a function that would take a string and break it up into tokens (ie words, numbers, and punctuation). First it needs to break up the string and store them into an array called Token[]. Obviously a for loop needs to written however should I just …

Member Avatar for ShEeRMiLiTaNt
0
129
Member Avatar for kshahnazari

HI , everyone can you please write a program for me , I have a set with 5 things in it thats line a={1,2,3,4,5} but it could be everything possible and there are subsets like b={1} c{1,2} d{1,2,4,5} but I cant write the progam so if you can write a …

Member Avatar for np complete
0
124
Member Avatar for brylle

how can i trap my textbox that allows numbers and letters only, no space no special characters e.g (,./;'[]-=\`<>?:"{}_+|~!@#$%^&*())

Member Avatar for TnTinMN
0
103
Member Avatar for mmcdonald

Hi all, I have an issue with a loop as it contains communication between my server and a remote one. If the remote server has an issue then it takes forever to complete the loop and the execution times out. What it currently is: $servers = mysql_query("SELECT * FROM server_tab;e …

Member Avatar for brandonrunyon
0
218
Member Avatar for Krokcy

Hey! So i have started learning c, quite refreshing when i normally code in Java :) I have this task where i need to store three int values in an unsinged int via bitwise operators. Its for a RGB picture where the colour is limited to 256. I have done …

Member Avatar for WaltP
0
203
Member Avatar for testname123

Can someone please tell me how to control a windows form from another form? I have one form (form2) which has a button. When this button is clicked, I need my other form (Form1) to hide a button. I know all the code except for how to make form2 access …

Member Avatar for testname123
0
1K
Member Avatar for pritaeas

Recently bought "Regular Expressions Cookbook 2nd ed." and wanted to share my findings. The book is divided into two parts. The first part (3 chapters) describes tools, skills and programming. The tools chapter shows you what's out there (including his own software). The skills chapter is a tutorial. It describes …

Member Avatar for pritaeas
1
251
Member Avatar for sss93

Hey so for a couple of months now Ive been facinated with c++ and have been going through various tutorials and examples of creating console based applications dealing with arrays,pointers, classes, etc.So I really want to get into the GUI side of it. But from word of mouth I hear …

Member Avatar for mike_2000_17
0
386
Member Avatar for Yorkiebar14

Hello, I have a made a forum like page where a user can submit a thread and the information gets stored in a database. However, when I try to output the data it outputs it without any line breaks in it, example: The user inputs: Hello, This a paragraph It …

Member Avatar for Yorkiebar14
0
202
Member Avatar for daniel36

I need in my project to view pdf files such that no one can save the pdf file.Is it Possible.IF it is please tell me the way.

Member Avatar for brandonrunyon
0
152
Member Avatar for ringo_tech

Hi I just completed my database hospital application and now i'm ready to export it into a JAR file. I palced the DB in the classes subfolder and played with ClassLoader but got nothing! I used the following code String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=f:hospitalDb.mdb;}"; any idea …

Member Avatar for ringo_tech
0
298
Member Avatar for ctclements

int wordpercent = ((count/totalwords)*100); JOptionPane.showMessageDialog(null, "Count: " + count); JOptionPane.showMessageDialog(null, "Words: " + totalwords); JOptionPane.showMessageDialog(null, "Character Count: " + length); JOptionPane.showMessageDialog(null, previousletter); JOptionPane.showMessageDialog(null, nextletter ); JOptionPane.showMessageDialog(null, "Your word makes up " + wordpercent + "% of the document"); This is the final part of my program code. The program lets …

Member Avatar for ctclements
0
207
Member Avatar for rajat.sethi93

#include<stdio.h> #include<conio.h> void main() { float a[5][5],x[3];float t,s; int i,j,k; printf("enter a matrix of order 3*4"); for(i=0;i<3;i++) { for(j=0;j<4;j++) { scanf("%f",&a[i][j]); } } for(i=0;i<3;i++) { for(j=0;j<4;j++) printf("%f ",a[i][j]); printf("\n"); } for(i=0;i<=1;i++) { for(j=i+1;j<=2;j++) { t=a[j][i]/a[i][i]; for(k=i;k<=3;k++) a[j][k]=a[j][k]-t*a[i][k]; } } printf("The upper triangular matrix is as\n"); for(i=0;i<3;i++) { for(j=0;j<4;j++) printf(" %f",a[i][j]); …

Member Avatar for rajat.sethi93
0
208
Member Avatar for Dendei

using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { Cassandra myObject = new Cassandra(); string a ="söt"; myObject.hejsan(a); System.Console.WriteLine(a); Console.ReadLine(); } } class Cassandra { public string hejsan(string value) { value +="Cassnadra"; return value; } } } how come this wont work? all i get is …

Member Avatar for Dendei
0
172
Member Avatar for Dendei

hey i want to return my whole string array but the program wants me to specify one public string CreateCards( string[] Cards) { Cards = new string[52]; for (int a = 0; a <= 51; a++) { if (a <= 12) { Cards[a] = " Hjärter " + (a+1).ToString(); } …

Member Avatar for Dendei
0
319
Member Avatar for Alexkid

Hi There, I need to re-write any mention of .tellg() in my code as the function is not supported on the desired hardware. I have the following lines of code: getline(file,line); { std::istringstream stream(line); stream >> first >> second >> third >> forth; UINT32 file_pos = stream.tellg(); file_pos++; fifth = …

Member Avatar for vijayan121
0
756
Member Avatar for triumphost

I'm learning several languages. 5 at once but I took a liking to one specific feature of java. The This keyword. From their tutorial: /*Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You …

Member Avatar for mike_2000_17
0
493
Member Avatar for Khav

Hi I am developing an image hosting website.I want images uploaded to go to another server , not the one where the script is hosted.For e.g i want images to be uploaded to http://i1.mysite.com instead of http://mysite.com/uploads Suppose i have this code to upload file to server <form action="http://mysite.com/upload" method="post" …

Member Avatar for Khav
0
1K
Member Avatar for poojavb

Hello, I want to implement Change Listener in the Action Listener of a Button I have a color graph chooser and 2 buttons...Apply and Cancel to select the color of the color chooser i have implemented the Change Listener but I want the change listener to act on the Apply …

Member Avatar for poojavb
0
570
Member Avatar for murtazamzk

[CODE]<html> <script> function startEQ() { quake=5; parent.moveBy(0,quake); parent.moveBy(0,-quake); parent.moveBy(quake,0); parent.moveBy(-quake,0); timer=setTimeout("startEQ()",10); } function stopEQ() { clearTimeout(timer); } </script> </head> <body> DEMO IT HERE <form> <input type="button" onclick="startEQ()" value="Start an earthquake"> <input type="button" onclick="stopEQ()" value="Stop the earthquake"> </form> </body> </html>[/CODE]

Member Avatar for murtazamzk
0
285
Member Avatar for Squidge

hi all, I have a scrap working but it also brings the restred trade mark. I have permission from the company to do this. How do i strip these out? // get simple_html_dom from http://simplehtmldom.sourceforge.net/ include_once('simple_html_dom.php'); // @todo change $url for form input $url = ""; $html = file_get_html($url); // …

Member Avatar for Squidge
0
366
Member Avatar for kshahnazari

Im really new to php so sry for my small answer ? Im reading a book about it and what things this two are ? and what they do ? Numbers_roman::tonumeral($year); and require_once("numbers/roman.php") will be thankfull if a person answers this question

Member Avatar for phorce
0
324
Member Avatar for habenero

This is what I want to do; I would like to generate some files (csv) with VB. For example for my fantasy sports teams I keep track of the teams stats, lineups and standings. All 3 for 24 weeks. So if I could generate (CSV) files such as filename-homers_lineup_wk_1 (CSV). …

Member Avatar for AndreRet
0
282
Member Avatar for rahul.ch

int [] ia1 = {1,2,3}; int [][] ia2; Object o = ia1; ia2 = new int [3][3]; ia2[0] = (int[])o; ia2[0][0] = (int[])o; Answer is "Compilation fails in last line" Explanation: Arrays are objects, and that each array dimension is a separate type. So, for instance, ia2 is of type …

Member Avatar for stultuske
0
212
Member Avatar for HibaPro

"SqlDbType.Time overflow. Value '3.00:00:00' is out of range. Must be between 00:00:00.0000000 and 23:59:59.9999999." Does anyone know what is the problem.

Member Avatar for G_Waddell
0
190
Member Avatar for soujanya.bhat.184

Hi.I have written this code which capitalizes 1st character of each word in the string.All other letters of the word has to be in small letter.But i am not getting desired output.Plz tell me where i am going wrong.. #include<stdio.h> int main(void) { char string[]="hI i aM sOujanYa"; char string2[20]=""; …

Member Avatar for soujanya.bhat.184
0
171
Member Avatar for Dendei

hey i have a question how do i get my funktion to work in the design.cs? namespace Visma_projekt { public class BlackJack { public string[] Cards = new string[51]; public void SkapaKort() { System.Console.WriteLine("Ehhhh"); } } } i want to call the funktion from this code visma.cs into the form1 …

Member Avatar for Dendei
0
100
Member Avatar for daino

I'm trying to understand something. Best explained through an example. My understanding is that a Class Adapter (lets say written in C++) is for a class written in PHP (hypothetical). C++ - Class A - Adapter PHP - Class B - Adabtee. If I'm trying to access Class B through …

Member Avatar for daino
0
210
Member Avatar for lscamaro

Okay, I want to start off saying that yes this is a homework assignment but no I don't just want the answer for it. I actually want to learn how to work this. Having said that, I was assigned to determine whether a number is a perfect number and print …

Member Avatar for np complete
0
274
Member Avatar for Jbvo

I am tring to call the same subroutine several times. The first time it runs it works correctly. Everytime after the first time it doesn't run the subroutine in order. I was wondering if anyone knows how to do this. Here is my current script. @echo off set description=Disabled %date:~4,2%-%date:~7,2%-%date:~10,4% …

Member Avatar for Jbvo
0
172
Member Avatar for RobRTaylor

I hate to ask, but I need some help with code. I don't have any because I don't know where to begin. Here's what I'm after. I have a Sql CE database attached to the app, and a table called DUI_Cite_Numbers. There is two columns, DUI_Cite_Start and DUI_Cite_End. I need …

Member Avatar for RobRTaylor
0
188
Member Avatar for triumphost

Is there a way to do the following better? Current I write a set of pixels to a file called "PngFile.bmp". Then I read that file back in as a PNG encoded buffer.. Then I save that buffer back to the harddisk and delete "PngFile.bmp" /*std::fstream PngFile(TempPath, std::fstream::out | std::fstream::app …

Member Avatar for triumphost
0
2K
Member Avatar for llandis3

I have the set of code writen in vb 2010 to reformat a text file of ip address and give me ipsec command to block the ipaddress to my server. It takes a long time when I'm doing 1000+ Ip Address to block a country. This might not be able …

Member Avatar for llandis3
0
144
Member Avatar for Yorkiebar14

Hey, I was wondering if someone would be able to tell me how I can let a user fill out a form and it would create a page with that information for other people to see (Sort of like a forum). I currently have no code for this but I …

Member Avatar for phorce
0
326
Member Avatar for Yorkiebar14

Hi, How could I generate a new number/ID for a new line in my database? Tell me if I'm not clear enough. Thanks

Member Avatar for Yorkiebar14
0
155
Member Avatar for nickg21

Hey everyone, I have the following two queries, and want to know why the first one would return a count of 52, but the second would return a count of 51 when technically they should be the same; SELECT count(*) from Inquiry Inner Join NoDecision on Inquiry.ID = NoDecision.InquiryID_fk Inner …

Member Avatar for urtrivedi
0
143
Member Avatar for websols180

hi; i am facing this trouble in paginatoin " Notice: Undefined index: start in F:\wamp\www\Cybertraders\demo_paging1.php on line 16 " $page_name="demo_paging1.php"; $start=$_GET['start']; > the upper line is line 16 if(strlen($start) > 0 and !is_numeric($start)){ echo "Data Error"; exit; }

Member Avatar for websols180
0
302
Member Avatar for furianera

Hello everyone, i read all the discussion about "web scraping" here in DaniWeb forum but i didn't found a solution to my problem. I have to extract "title" and "content" of news from a website. I wrote (after reading a lot of "tutorial") these lines: $dom = new DOMDocument(); $dom->load('http://www.php.net'); …

Member Avatar for Squidge
0
167
Member Avatar for ayat abukhadra

Hey, I've been working with a company which basically works with vb6 and now we're trying to re-write the applications they developed using vb.net any recommendation for where i should start searching , what we're thinking of is to create application programmatically and then loading forms from access then looping …

Member Avatar for TnTinMN
0
500
Member Avatar for prisacariualex

Hello everyones. I have a problem: I created the code to update a database. Everything work( no error message0 but when I go to see the table in the place where needed to be the updated information is nothing(""). Please help! The file who update the information(ap1i_moc.php) <?php // Conectare …

Member Avatar for prisacariualex
0
129
Member Avatar for gerard4143

Does anyone know how to do this? I attached a program that collects all the command line arguments into a map container noting how many times each command line argument occurs. Now I want to sort this map of information by loading a vector with iterators that point to each …

Member Avatar for vijayan121
0
524
Member Avatar for turbomen

Code a decision using an IF, THEN, ELSE statement (2 branch decision) Code a one branch decision using a null else statement The following is my answer: [CODE] program Negatives; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var balance, posNeg:integer; begin randomize; writeln ('Generating your bank balance'); writeln ('Please wait .....'); sleep …

Member Avatar for htir
0
205
Member Avatar for kshahnazari

I have a simple question about regular expression and Im new to php so sry about my bad questions , what is the meaning of ^ and $ in regular expression and please give examples that if we dont put them it will go wrong . thank you

Member Avatar for kshahnazari
0
176
Member Avatar for israruval007

Ok lets say i have the following xml file <Users> <User> <Name>Jonathan</Name> <Tests> </Tests> </User> <User> <Name>John</Name> <Tests> </Tests> </User> </Users> Im writing a C# program, and what I want is to search for a specific name(eg Jonathan) and add elements and values to that specific tag in my xml …

Member Avatar for israruval007
0
403
Member Avatar for poojavb

Hello, Can we perform bulk insert for SQL data? I have the complete SQL data in text files. There are multiple tables and the corresponding text files. I tried to do the bulk insert but always got some new error. Please help me to get an answer. My code Imports …

Member Avatar for poojavb
0
1K
Member Avatar for honeybee2090

i have 1 text box and 1 button in my application text box have items like this 24.192.72.54:27799*71.163.168.187:40807*93.31.71.187:2541* 24.140.130.144:49251*76.15.157.93:16811 now what i want to do? when i press button then txt change in to this format , like this 24.192.72.54:27799 71.163.168.187:40807 93.31.71.187:2541 24.140.130.144:49251 76.15.157.93:16811 some when can help me? please

Member Avatar for AndreRet
0
273
Member Avatar for WDrago

All, I usually write console apps, but now I have to do a forms app. Hopefully that will explain the sillyness of the following question: I created my project in NetBeans and NetBeans automatically generated a class with the project name, and this class has a main() method. Then I …

Member Avatar for WDrago
0
936
Member Avatar for poloblue

Good Afternoon, I'm a little difficulty with this little program. The error is argument of type int (*)[5] is not incompatible with parameter of type double. I'm getting this error on swapFour(&a, &b); Here is the whole program code double a =102.39, b=201.59; double c=30.99, d=48.99; double e=55.21, f=95.35; //call …

Member Avatar for WaltP
0
170
Member Avatar for Tko_1

so i have this script for a countdown and i would like to have the font color to be white, but i can not figure it out. thanks <script type="text/javascript"> today = new Date(); BigDay = new Date("<?php require("date.php"); ?>"); msPerDay = 24 * 60 * 60 * 1000 ; …

Member Avatar for Tko_1
0
124
Member Avatar for Kayla1993

I am doing a project in class. We have to make a program that scans Two Postive Integers, one at a time, using try-catch block. Can some one please help me get started?

Member Avatar for mlesniak
0
120

The End.