199,114 Archived Topics
Remove Filter ![]() | |
Hi,so I am supposed to encrypt a text file chosen by a user at the moment I have completed most of it (offset factor/shift), I have got each separate character from the text file and put it into a list and converted it into ASCII, I am wondering how you … | |
www.kerennma.com This is the website. When i'm on the "Work", the page doesn't scrolls down, it only works when i click on to another tab and come back to this. Also, if you realise the navigation for this page compared to "Contact" and "Home" page is bigger. Could it be … | |
So I recently started taking this class and i never learned assembly language so writing the program was very difficult. I have this project to do and this is part one. The instructions are: Part 1 Implement the following C++ code fragment in assembly language. Use the block-structured .IF and … | |
Why can we virtual destructors but can't have virtual constructors? I have searched like anything. I got confused a lot after reading few articles on web. Please explain with some good example. Thanks in advance. | |
[Click Here](http://www.imageupload.co.uk/images/2015/03/15/rtb.png) what i want is that when i write any thing on the richtextbox it appear on cell Text. I have found some codes on the internet but i don't know whats wrong: for (int i = 0; i < richTextBox1.Lines.Length; i++) { ListViewItem lvi = new ListViewItem(i.ToString()); lvi.SubItems.Add(richTextBox1.Lines[i]); … | |
I have just finished a merge and sort code for two seperate files. My two inputs are: File 1 Adams C Benton A Jones D Haley A King B Margaret F File 2 Barnes A Charles B Johnson C William D and it keeps doing this for my out put … | |
Hello, If I have an array structured like the following: '0' ... '0' ... '1' ... '2' ... '1' ... '0' => "Mike" '1' => "1892" '2' => "1" '2' ... '0' => "Paul" '1' => "1672" '2' => "1" '3' ... '0' => "Sam" '1' => "1872" '2' => … | |
Hello, I have the following string [null,null,null],["Paul","2293",1],["eric","2099",0] which I will define as: var dataparsed ='[null,null,null],["Paul","2293",1],["eric","2099",0]'; and would like to construct three different arrays in the following format: var opponentName = new Array(null, "Paul","eric"); var numberVal =new Array(null, 2293,2099); var outComeVal = new Array(null, 1,0); Any ideas on how this can … | |
I have this table that i have been modifiying and working with for some time now, its for displaying lots of data both condensed and expandle for each row but also searchable and sortable. Here is my problem, my table used to have perfect sorting and searching before i added … | |
I am trying to implement a test program to describe what this function does: int mystery( const char *s1, const char *s2 ) { for( ; *s1 != '\0' && *s2 != '\0'; s1++, s2++ ) { if( *s1 != *s2 ) { return 0; }//end if }//end for return … | |
I'm having some trouble attempting to implement the constructors for each class. I have this constructor for the class Transaction. Is this correct ? Transaction::Transaction(QString type, QDateTime datetime) : m_Type(type), m_DateTime(datetime) { } AND how do i implement the constructor for the class Deposit ? Is this correct ? I'm … | |
Is it possible to integrate Openbiblio with other free and subscription based libraries like openlibrary etc | |
I'm creating a menu based on the user using the following code System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine("<ul>"); if (!Page.IsPostBack) { foreach (DataRow row in datatable.Rows) { sb.AppendLine(String.Format("<li><a href= x.aspx?Name={0}&Short={1}&Long={2}></a></li>", HttpUtility.UrlEncode(row["x_name"].ToString()), HttpUtility.UrlEncode(row["x_short_name"].ToString()), HttpUtility.UrlEncode(row["x_long_name"].ToString()), row["x_short_name"].ToString())); When the user selects an item from the menu the page is loaded using a querystring. … | |
Hi Everyone, I am looking for the best way to create a PHP MYSQL Query to help me output a complete list of categories from my db. The categories are football team names & I would like to display everyone who supports each football team. For Instance: I have 44 … | |
Hi, I am working on Hotel Application and I need your help on how to prevent booking a room twice. That is, if a room is booked for 3 days(24/2/2015(18.00) to 27/2/2015(7.00)), no room can be booked withing that period. Am developing the project with Asp.Net(VB) ans Sql Database. Thanks … | |
for example i have a void pointer : void *pt; int k=80; pt=&k; now i want to incement it by one byte ,is it just enough to use (++(char*) pt) or I should use (void*)(++(char*)pt) by this asssumption that i wnat to cast it again to int ,char ,... later. | |
I'm trying to parse a few references from a file and load them to mysql table but keep on getting this error everytim,e i run the script: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the … | |
Hi all.. I saw a part of codes which I unable to understand.. pleaase all the expert teach me ya.. below is the part of codes.. UINT A; USHORT B; USHORT *C; CString D; if(!sscanf_s(D, "0x%x", &A)) sscanf_s(D, "%d", &A); *(C + B) = A; //<= what is the meaning..?? … | |
how to retain when update files in php? My Script is here: <?php if($_POST['updatesitesettings']) { $target = "uploads/2015/"; $target = $target . basename($_FILES['profile']['name']); $ok=1; move_uploaded_file($_FILES['profile']['tmp_name'], $target); if($target == "stored/") { $target = "Attachment is Empty"; } $site_name = $_POST['site_name']; $site_description = $_POST['site_description']; $site_tag_line = $_POST['site_tag_line']; $contact_email_address = $_POST['contact_email_address']; $contact_phone_number = … | |
import java.io.*; import java.net.*; import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.text.DecimalFormat; public class Client { static double difference=0; static int totalTransferred=0; static StartTime timer; static double previousTimeElapsed=0; static int sizeDifference=0; static int previousSize=0; public static void main(String args[]) throws Exception { final int lossRate = Integer.parseInt(args[0]); final String hostName = args[1]; … | |
Hi Guys, I have this piece of code that should basically retrieve the priduct ID and display the producton a different page when clicked. I must be doing something wrong because I keep getting "nothing selected" even though the product ID is selected(also displayed on the url(www....../productview.php?prodid=1) <?php $product_id = … | |
![]() | hello every one i have one small doubt i have the following code i want the user to enter the coupon code which has been randomly generated and saved in database now i want that when user enter the coupon code it is cross checked from database i.e entered coupon … |
I need some help .. i want to disable alt+tab .. and other shortcut keys to prevent the user from closing it unless you logout of the program.. | |
help please PART 1: Quiz Version 1, simple quiz [100 marks] a) Your Quiz class will need the following additional methods as shown in the instructions in Quiz.java (See sections marked “TODO”). 1. void printQuizClosedMessage() [5] 2. void close() [5] 3. void showAttemptsRemaining() [5] 4. void showSum() [5] 5. void … | |
// this works sql = "SELECT * FROM `image_upload` WHERE location='article' AND image_id='7'"; // this works sql = "SELECT * FROM `image_upload` WHERE location='article' AND image_id='9'"; // this does not work sql = "SELECT * FROM `image_upload` WHERE location='article' AND image_id='7' AND image_id='9'"; // I wonder why? | |
I wrote an app for a customer which (among other things) takes a chart generated by an Excel workbook, and places it on the C# GUI. But the customer is not satisfied with the image which is a jpg. (The C# app currently saves the Excel chart as a jpg … | |
How to delete DataGridView Row after Selecting Row from Database Using Delete Button | |
Hello I have created a small form for users that they can easily preview then submit the form so like 1st phase user fills the form and click on preview then on preview page thier submitted information will be shown up and at the bottom of the page they will … ![]() | |
I am posting this doubt already as a last resort. I want to insert 0 or 1 into the Boolean / TINYINT. I used var_dump and I see that html always passes as False (0). I will post part of the code of html, php and mysql. Any help will … | |
what is the Running time of the given code? #include<stdio.h> int main(){ char str[100]; int i=0,j=-1,flag=0; printf("Enter a string: "); scanf("%s",str); while(str[++j]!='\0'); j--; while(i<j) if(str[i++] != str[j--]){ flag=1; break; } if(flag == 0) printf("The string is a palindrome"); else printf("The string is not a palindrome"); return 0; } | |
how can i put this in a flowchart form? need for my project and where will i put all the void? #include<stdio.h> #include<time.h> #include<process.h> #include<string.h> #include<conio.h> #include<dos.h> /*Placement*/ void order(); void lo(); char *date; /*header*/ char hdr[]="\t\t\t\t Pizza Hut\n\t\t\t\t Billing System\n\t\t\t Philippines Food Corporation\n"; /*opening*/ void main() { clrscr(); int … | |
Hello, I'm just started to study malloc and realloc, so i just wrote this program to copy two string from user input and consenterate them. then ofcource print it. #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *str = malloc(3) gets(str); int sl = strlen(str); str = realloc(str, … | |
I have a few picture in My.Resources in Vb.Net and I need a next and previous button to change the image . someone help me :) | |
Hello, I'm having a problem with animating a bitmap on my form. There is a massive flickering when animating the bitmap. Is there anything I can do about this? Bitmap bmp = new Bitmap(@"1.png"); aTimer.Interval =1; aTimer.Tick += new EventHandler(t_Tick); aTimer.Start(); public void t_Tick(object sender, EventArgs e){ gfx.DrawImage(bmp,new Point(x,y+1)); y … | |
Hi i am facing a problem. please any body help me <script type="text/javascript"> $(function(){ $("#timegap").change(function(){ var totalreg=parseInt($("#totalreg").val()); // (500) var numberofcounselor=parseInt($("#couid").val()); //(8) var timegap=parseInt($("#timegap").val()); //(11) var appsperhour=Math.ceil(60/timegap); alert(appsperhour); }); }) </script> The out put is without using ceil is 5.45. But using ceil i am getting 6. But in my … | |
Hi, I have 5 different forms (5 pages),by filling each form it will go to next form, it will continue till last form.in first form i have a select box, that select box contains two values, called, a and b. if I click A , I want to hide the … | |
so i have a class assignment to link all our game files, im trying to load a "lose.swf" after the car crashes. our teacher only gave us this line of code to use and i cant seem to figure out how to get the MovieClip(stage.getChildAt(0)).loadThisScreen("lose.swf"); part to work properly ( … | |
Hi I have a gridview which is bound to a datatable called datasource. The datatable is populated with data from the database which is then displayed in gridview. However I would like to add a title to the gridview, I tried this with gridiview.caption and it works fine. However users … | |
Hi I collected the code from internet. i am trying to use dependent dropdown in the popup screen. i can able to display first dropdown in a popup but i am unable to display the second dropdown. can any please help me to fix that issue. **test.php** <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" … | |
Hi there, I am developing shopping cart website using php pdo. what i want, stock quantity has to decrease when an order is placed. Give me some idea guys. | |
I tried to get some data from my function but I couldn't, Can any one help me I have some data in functions file, from this page into my index page public function selectData($table, $where = null, $wheree = null, $where1 = null, $wheree1 = null) { $QUERY = mysql_query("SELECT … | |
I am working on a project and have been doing some research. One thing I have noticed are tutorials calling for saving the index file in .php. I tried this and when loading the file, the result is a blank page. I do not understand why people are suggesting this … | |
Hello i want to make to show adds but on every 10th ticket i have tried with for loop but its adding too much adds here is the code: if($is_active == 1 && $is_shared == 1) { for($i=0; $i <= 1; $i++) { echo "<table id='t01' style='margin: 5px;'><tr><th colspan='2'>Publisher: $publisher … | |
Hello, In my htdocs/ I have two folders: folder1 & folder2: I am trying to redirect : folder1/index.php ------> www.contoh1.com folder2/index2.php -------> www.contoh2.com how to code it? Someone told me to utilize this: http://php.net/manual/en/reserved.variables.server.php but how to code it? | |
Hi there, Please help How to add dynamic textbox (row) and save to database using PHP PDO? | |
is there any way to access the variables of this function outside ? public function selectData($table, $where = null, $wheree = null, $where1 = null, $wheree1 = null) { $QUERY = mysql_query("SELECT * FROM " . $table . " WHERE '" . $where . "' = '" . $wheree . … | |
hello all, I am a mster student, i need a teacher to teach me the curve fitting (cubic spline, bezier, B spline) and help me to program them on visual basic, the lecture should be on skype. if anyone can help me with this please contact me on khaldon89@gmail.com to … | |
I have a text file that represents a book , this first line of it for example is P.G. Wodehouse, "Heavy Weather" (336 pp.) [PH.409 AVAILABLE FOR LENDING] So there is authors name, title, number of pages and if the book is available. As they are not all seperayed by … |
The End.