199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for on93

Can anyone tell me about this program how the delete tail work ? ..................................................................... void linklist::deleteSearchList(int id) { node * cur; cur = head; if (cur == NULL) return; // no node in list if (cur->link == NULL){ delete cur; head = NULL; }else if (id == head ->st.id){ cur …

Member Avatar for Lucaci Andrew
0
107
Member Avatar for shakayu

Hello guys, Am new to php with Ci... am trying to display a gridview in a form so as to extract data frm db & display the value.. .Any help?

Member Avatar for shakayu
0
1K
Member Avatar for dinhunzvi

i have the following php script. the databtase table i'm saving the data to allows NULL values for the email. this is the table structure. ` CREATE TABLE tblcontacts ( contactID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, contactName VARCHAR( 50 ) NOT NULL, phoneNumber VARCHAR( 20 ) UNIQUE NOT …

Member Avatar for dinhunzvi
0
232
Member Avatar for rishif2

hello experts . . . i've designed a form (two textboxes and one commandbutton) i wanna display id and user(fields of the table). and i display id and user on the basis of the id(inputted through textbox1).And for that i've written following code within command button's click event Private Sub …

Member Avatar for rishif2
0
152
Member Avatar for Lethugs

Hi, is there another way of hiding or formating column value in asterisk in select statement? im using the command replace SELECT REPLACE([Item].[Price],[Item].[Price], '**********') AS Price From Tablename it works fine, but is there anyway to do this? Instead of replacing/forcing the value to display asterisk, i just need if …

Member Avatar for Lethugs
0
926
Member Avatar for yup790

In the main class the user enters text trying to find the file in the same directory as the source file. The string gets passed into the constructer and a file object is made but the file isn't found. The print statements are just to find out what is happening. …

Member Avatar for yup790
0
389
Member Avatar for kartouss

Hello, I need to encrypt an image but my program is accepting 16 bytes of data for encryption from a file named plaintext.txt.. The program is encrypting data in blocks of 16 bytes that is the 1st 16 bytes are read then it is encrypted and saved in the ciphertext.txt …

Member Avatar for gnrsu
0
1K
Member Avatar for Ryanb

What's up experts. I have a problem that's driving me crazy.. I can't get any external javascript files to link to any of my pages. They work perfect if I put it all in the head section but as soon as I put the JavaScript into an external file and …

Member Avatar for Ryanb
0
259
Member Avatar for nitin1

i have a undirected graph and i want to print a cycle with length >=k (given) , can you suggest me a algo ? i dont want any code, snippet. i am hoping for hint and algo for this. thanks. it is guaratned that cycle of length >=k exists.. thanks.

Member Avatar for Taywin
0
142
Member Avatar for hudhasama

Hello there. I used this code for user and it works but when I use and alter a bit for admin side system, there is no data inside of the text field and the username keep on changing to 0 eventhough I type in other username. This is the code. …

Member Avatar for code739
0
226
Member Avatar for AstralPlain

Hello. I'm attempting to create a program in C# that reads lines of text from a text file and stores them in a list. Then I have to compare each line to another equally large (50 lines) text file, and display the differences to the screen? Could anyone help? It …

Member Avatar for tinstaafl
0
210
Member Avatar for jkaye

I have racked my brain and can't find the error for the incorrect SQL syntax. I basically have a form with a bunch of fields. Some of them are checkboxes (single instance check boxes) and I think that's where the code is breaking, but values of the checkboxes are 'Yes' …

Member Avatar for jkaye
0
296
Member Avatar for ShiftLeft

This code will not work on EMU8086 or any processor prior to 80286. Line 40 would need to be changed.

Member Avatar for mathematician
0
542
Member Avatar for chira.laura.9

Hi. I have this example for an lab and I don't understand what's happening. Especially what MEM32[0] means... DATA SEGMENT MEM32 DD 316423 DATA ENDS CODE SEGMENT … … MOV AX, 43981 SUB DX, DX ;load dx ax 43981 ADD AX, WORD PTR MEM32[0] ;add inf. word ADC DX, WORD …

Member Avatar for mathematician
0
495
Member Avatar for Pauliuz

Hey. Does anybody know how to change Form designe on button click in the same Form, but not by opening new one. Sorry for my English.

Member Avatar for TnTinMN
0
333
Member Avatar for DamzWildfire

I have a drop-down menu with different categories onece a category is selected i have a text box which accepts the type. this text box is an autosuggestion text. so whenever i select a category from the dropdown menu on the things that are within that category should be displayed …

Member Avatar for diafol
0
143
Member Avatar for NoUserNameHere

Hi, I'm trying to enable a submit button only when all the input fields are filled. Is this the correct way of checking to see if an input field is empty? $(document).ready(function() { $('#submit_button').attr('disabled', 'disabled'); $.each(':input', function() { if ($(this).val() != "") { $('#submit_button').removeAttr('disabled'); } }); });

Member Avatar for NoUserNameHere
0
294
Member Avatar for ziadkassam
Member Avatar for ziadkassam
0
723
Member Avatar for anisha.silva

Hi, i am trying to implement a federated search. I have no idea how to start implementing it? i have several questions relating to this. 1. has the application needs to be web based or desktop based? 2. do i have to have a database in the application side? i …

Member Avatar for tinstaafl
0
188
Member Avatar for castajiz_2

Hi guys I have a little mess up in my head going on i dont really know why. My question is how come a right join AND a left join were made to handle database queries, why both of them, isn t one enough? for instance let s take the …

Member Avatar for adam_k
0
226
Member Avatar for rkelly70

I have splicontainer inside another spitcontainer, I can open the form in any section but I can not get the form to stay maxamized and stop the user from moving the form. Ideally I'd like to dock the form but I'm not sure thats possible. Thanks Ross

0
69
Member Avatar for innovateuk

Though am still a learner, I have developed a small php application and planning to sell the same. Meantime, I would like to protect my script using api or something and srictly not obfuscating or encoding, or using zend frame work? Is there any easy way? using base64decode, I should …

Member Avatar for veedeoo
0
171
Member Avatar for uzair.tabassumwahla

#include<iostream.h> #include<conio.h> #include<stdio.h> #include<math.h> main() { system("cls"); int h,w,m; cout<<"Press1,if you are male"<<endl; cout<<"press2,if you are female"<<endl; cin>>m; if(m==1) { cout<<"you are male"<<endl; } if(m==2) { cout<<"you are female"<<endl; } cout<<"Enter your height="; cin>>h; cout<<"Enter your weight="; cin>>w; if(m==1) { if(h<60) { cout<<"you are unfit"; } if(h>=60&&h<65) { if(w<45) cout<<"you …

Member Avatar for Moschops
0
177
Member Avatar for arasten

I made a program that makes someone think his desktop cleaned up, its just for fun and make me learn a littel bit of codes because i'm still a beginner in programming i'm 16 years old in high school grade 11 so i wanna learn more codes because at school …

Member Avatar for pritaeas
0
5K
Member Avatar for 03hasnam

From Class Model: public TableModel getTableData() { TableModel model=null; try { String sql = "SELECT eventID as 'Event ID', date as 'Date',eventName as 'Name', time as 'Start Time' FROM Event"; pst = conn.prepareStatement(sql); rs = pst.executeQuery(); model = (DbUtils.resultSetToTableModel(rs)); } catch(SQLException e){ e.printStackTrace(); } finally { try {rs.close(); pst.close(); } …

Member Avatar for Taywin
0
236
Member Avatar for jasonlolwut

I need a source code for JAVA for balancing a chemical equation. CH4 + O2 = CO2 + 2 H20 CH4 + 2 O2 = CO2 + 2 H20

Member Avatar for Taywin
0
2K
Member Avatar for zvjezdan.veselinovic

Hi everyone. My name is Zvjezdan Veselinovic and I am a student at Rasmussen College over in New Port Richey, Florida studying Game and Simulation Programming. For my student portfolio, I want to create a "tron-like"/ "snake-like" game called Colors and Explosions. I have so far arrow key movement. That …

Member Avatar for deceptikon
0
488
Member Avatar for SoulofchaOs

I am coding an image puzzle game and one part of the code is to compare the pieces the user has selected to the pieces of the correct image to check if it is correct. Each image piece is already added to a JButton as an ImageIcon. An identifier is …

Member Avatar for mKorbel
0
252
Member Avatar for uzair.tabassumwahla

#include<iostream> using namespace std; int main() { for(int i=0;i<13;i++) { cout<<"*"; if(i==0 || i==12 ||i==9) { for(int j=0;j<10;j++) { if(i==9 && j==0) { cout<<" "; } else cout<<"*"; } } else if(i==10) { cout<<" "; cout<<"*"; for(int j=0;j<7;j++) { cout<<" "; } cout<<"*"; } else if((i==1 || i==2 || i==11)) …

Member Avatar for CGSMCMLXXV
0
200
Member Avatar for mrabrar09

Hello everyone am facing an error exception SQLServerException: The TDS protocol stream is not valid Jan 19, 2013 4:21:02 PM com.microsoft.sqlserver.jdbc.TDSReader throwInvalidTDS SEVERE: ConnectionID:18 got unexpected value in TDS response at offset:1508 Jan 19, 2013 4:21:02 PM com.microsoft.sqlserver.jdbc.TDSReader throwInvalidTDS SEVERE: ConnectionID:18 got unexpected value in TDS response at offset:1451 com.microsoft.sqlserver.jdbc.SQLServerException: …

Member Avatar for pritaeas
0
1K
Member Avatar for DJSarma

Please help me!I want the code for doing following task in perl. Task is that "Read the paragraph from a file and print it in another file in ascending(total number of words in a sentence) order." My sample task: If the input "Hi! my name is Sarma. Can you help?" …

Member Avatar for voidyman
0
580
Member Avatar for markyeoj

Hi, Im not sure why this code is not working on IE browsers but on chrome its working well. This code is for a Popup, that will ask the users if stay or leave page once they try to refresh or go to other webpage. (you can test www.thesuperheroblueprint.com).. and …

Member Avatar for stbuchok
0
331
Member Avatar for triumphost

How can I calculate CLOCKS_PER_SEC.. It is defined as 1000 in ctime. I don't want it defined. I want to calculate the actual value.. I tried the below code but it seems to be giving me my CPU speed.. on a 2.8 Ghz processor, it prints 2800. On a 2.0 …

Member Avatar for deceptikon
0
2K
Member Avatar for uzair.tabassumwahla

> *Inline Code Example Here*hi i want to print the diamond as shown bellow,which is generic i mean depend on the user input.the following output is for "5", Heading Here 1 232 34543 4567654 567898765 4567654 34543 232 1

Member Avatar for uzair.tabassumwahla
0
109
Member Avatar for Tortura

Hello, I have several textboxes and it is possible to write something in one of them and then without losing the focus I could or would save the input. But there is no FocusLost and therefore the TextChanged event doesn't fire. How can I save the input of one these …

Member Avatar for Tortura
0
2K
Member Avatar for somaye.s

hi i need to get pixel value of an color image but i don`t know how. i need code for do this.

Member Avatar for radhakrishna.p
0
112
Member Avatar for AquaNut

Hi All, I am working on a project that involes reading in an xml and sending out a soap message but have come stuck with an error of Cannot implicitly convert type 'string' to 'string[]'. The code is: foreach (var dr in DataRecords) { //build up the values we're interested …

Member Avatar for AquaNut
0
680
Member Avatar for amith_ami

hi all... im getting undefined index errors while running my code in localhost. im using wampserver 2.2... but it works fine with older version of wampserver. here is my example code for products page.... <?php $man_id=$_GET['man_id']; $man_name2=$_GET['manf_name']; $man_name=str_replace('-',' ',$man_name2); $cat_id=$_GET['cat_id']; $cat_name2=$_GET['name']; $cat_name= str_replace('-',' ',$cat_name2); if($cat_id!=""): ?> <span class="pro-head"><?php echo $cat_name;?></span> …

Member Avatar for amith_ami
0
890
Member Avatar for bharathG

I have two files called 1.txt and 2.txt I want to just compare each line of 1.txt with all the lines in 2.txt. and if any of the line of 1.txt is not available in 2.txt those lines need to printed on console. It is ok even if 2.txt contains …

Member Avatar for 2teez
0
346
Member Avatar for davy_yg

<?php // url nya: abcd.com/jumlahklik.php?idads=[idadsnya] $con = mysql_connect("localhost","root",""); mysql_select_db("freescript", $con); // kalo ada yg click tambahkan jumlah klik $count = 0; if ($_GET['idads']==1) { $count++; $waktu = date('Y-m-d H:i:s'); $idads = 1; $date = date('Y-m-d'); $time = date('H:i:s'); mysql_query("insert into adsmgt (idads,waktu,date,time) values ('$idads', '$waktu', '$date', '$time')"); } //di jumlahklik.php …

Member Avatar for davy_yg
0
178
Member Avatar for Tinnin

Hi all, I'm trying to send emails to various people using a .php file run with a crontab. I'm having some PHP issues though. My code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Email</title> </head> <body> <?php # …

Member Avatar for Tinnin
0
206
Member Avatar for Bile

-->>Hello, I hope I can get help on this its like this... -->>I have an application that allows a User to brows files in a Computer... -->>On My point of interest Zipped files,that's My filtering Criteria... -->>When the File wiht .zip is found it is displayed on the Textbox very …

Member Avatar for AndreRet
0
139
Member Avatar for ibn_sumal

Hello guys, I'm trying to save/store data from a *form* to a *text file*. The problem is that the information sent from the form does not seem to be storing in the text file as whenever I enter its url the page is just empty. The code is as follows: …

Member Avatar for pritaeas
0
438
Member Avatar for Rahul47

Hello Guys, I have a table having a column called Sr.No. And I Wish that everytime i make an entry into that table Sr.No should be auto Incremented. How Can I Achieve this Functionality ? Thanks

Member Avatar for ryan311
0
136
Member Avatar for anglwthnati2de

So.... I am just wondering which would be the better one to learn for todays market - ASP.net or JSP. I have to take one or the other and am not sure which one is the better choice. If it were up to me I would say neither and go …

Member Avatar for anglwthnati2de
0
148
Member Avatar for davy_yg

adsmgt.php $result = mysql_query("SELECT COUNT(idads) AS countidads FROM adsmgt") or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { echo "Number of ad clicks: ".$row['countidads']; } $result2 = mysql_query("SELECT waktu, date, time FROM adsmgt") or die(mysql_error()); echo "<br>"; echo "<br>"."Tanggal"." "." Waktu"." Jumlah clicks per hari"; while($row2 = mysql_fetch_array($result2)) { echo "<br>".$row2['date']." ".$row2['time']; } as of now, all …

Member Avatar for davy_yg
0
182
Member Avatar for RaoxFaello

I'm trying to create a program that determines if what i inputted is a Literal (String or a Char) My idea on how to create one is if i inputted a string (Starts with the usual ") so the first Index in my Array should be " or else it …

Member Avatar for RaoxFaello
0
170
Member Avatar for christiangirl

Hello, I am getting Identifier expected and Illegal start of Expression erros in this code: [code] //"Math is our Game" - A math testing program for First through Fourth grade students //Import GUI packages import javax.swing.*; import BreezySwing.*; import java.awt.*; import java.util.Random; //import TurtleGraphics.*; public class Math extends GBFrame { …

Member Avatar for stultuske
0
815
Member Avatar for LegendX

import java.util.Scanner; public class Lab7 { /** * @param args */ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int counter = 0; String[] letters = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; final int ROW; final int COL; System.out.println("Please enter the total number of rows: "); ROW = scan.nextInt(); System.out.println("Please enter the …

Member Avatar for stultuske
0
109
Member Avatar for Lethugs

I published my project in vs2010 and im trying to deploy it to other computers. I used this connection string that runs smoothly on my pc. This code tries to retrieve the servername and try to connect to database mysysDatabase. This forcely change the app.config. Private Sub btnOk_Click(ByVal sender As …

Member Avatar for Lethugs
0
1K

The End.