199,114 Archived Topics
Remove Filter ![]() | |
i have this code, i need to have [B]for()[/B] inside this boolean method, but it shows an error that return method is missing. how can i solve it? [CODE] public static boolean findPrevious(int dataIdx, int featIdx, String data, String[][] array){ for(int i=0; i<dataIdx; i++) { if(array[i][featIdx] == data) return false; … | |
| |
Hello guyz, im new in assembly. I have this exercise using MIPS. The idea is to write a fuction that finds the bounding box of shapes in a bitmap. "0s" are the background and "1s" the foreground. I have Runtime exception at 0x00400254: fetch address not aligned on word boundary … | |
I've only just began learning assembly this semester and am having a problem with my assignment. I need to write a code to display 0-9 and then A-Z on a 5x7 LED matrix on a EDS-8086 board via BGC-8088. The problem I'm having is that the Data segment (DS) overrides … | |
I've looked around online a bit and have a few books, but none of the resources I've read seem to explain what an OPCODE is really for. Could someone provide some details? Thanks, Runicode | |
Ok so I am writing code to a contacts database and as i add new info to the table it is not committing to the table. I have attached my program... idk if you will be able to open it. But I have 2 buttons one adds a new row … | |
I'm stuck here ! I hava a txt file that contains only integers , I opened the file and read its contents into an array of characters. [CODE] li $v0, 13 # system call for open file la $a0, file # output file name li $a1, 0 # Open for … | |
Hello guys it my first time trying c# i am trying to solve this problem and this is what i got so far i dont know where to locate the auto implementation properties to which class i a little bit confused appreciate any help the question is add below [CODE]using … | |
hi everyone! this is my encryption routine (using standard call) in x86 Assembler __ASM{ encrypt: push ebp mov ebp,esp mov eax, [ebp+8] mov ecx, [ebp+12] push eax and eax,0xAA not al mov edx,eax pop eax and eax,0x55 xor ecx,edx xor ecx,eax rol cl,1 rol cl,1 mov eax,ecx sub al,0x20 pop … | |
Hi. When I was looking at the header files of c library such as malloc.h, I saw that it defines some functions inside the struct (Function Pointer) and other functions outside, so my question is, why sometimes people defining function inside the struct and sometimes outside? Thanks -- Mark | |
I wanted to pause the execution of my program by requiring the input of a keystoke (any key). The idea was to put a message on a label something like "Change a switch to --- and then key any key to continue." I expected the program to wait until any … | |
People, i have downloaded a game cod from the internet and it wont run.. it always gives a linker error and i don't know what to do. i am new to allegro game development and i really need help. | |
Hello, I'm looking for an easy way to wait for a keypress in a non-gui application. Example: I press A, program says "You pressed A" I AM NOT LOOKING FOR STRINGS AND ENTER! THIS NEEDS TO WORK FOR THE ARROW KEYS! | |
Hey, i have written immanence java program and now i have been asked to create sequence diagram for it. i am really unfamiliar with uml therefore i was wondering are there any good reverse engineering programs that would create sequence diagrams for me? p.s project has been written using netbeans … | |
how we write array for dis problem: int movie title; int no of customer ; int no of day ; double ticketprice ; double drinksprice ; double studentprice ; anyone knows?? | |
Hi, It's about a year that I have been coding on Java but I still have basic problems working with threads. My main concern is that I can't understand the logic they obey in their behaviour. I know that they are processes which run independently but I don't know how … | |
Dear all, Can anyone tell me how can I call Java function to VB.net window application? Regards | |
I need help i'm out of ideas, i don't know how to add numbers in a currency format. need help please. Thank you in advance. | |
hi all, i have an applet code here..i wanna do database operations later on..but i m stuck to this basic applet function..have a look [CODE]/* * @(#)Appletsamp.java 1.0 11/04/09 * * You can modify the template of this file in the * directory ..\JCreator\Templates\Template_2\Project_Name.java * * You can also create … | |
Is there any methods that in java can make or prevent its window frames from being moved or being dragged, like those in windows 7 installations. post it guys if any and it will help others too! thanx in advance. | |
CODE 1 <?php ini_set('date.timezone', 'Asia/Kuala_Lumpur'); $today = Date('y.m.d H:i:s'); // current time echo $today; ?> CODE 2 <?php ini_set('date.timezone', 'Asia/Kuala_Lumpur'); $today = Date('y.m.d H:i:s'); // current time $query= "UPDATE items SET post_date = '{$today}' WHERE item_name='$item_name'"; mysql_query($query); ?> hi all, as you all can see, i have two similar code … ![]() | |
I am trying to finish this palindrome program and the only output I get is output cannot be found. Can anyone show me what I am doing wrong. I will put the instructions in if needed for a guide to show what it needs to do... [CODE] #include <windows.h> #include … | |
Hey, everyone, as you can see, first post. I'm just stumped. I've tried everything I can think of to [COLOR="Red"]highlight certain keywords as the user types in a non-CPU intensive manner in JTextPane with a StyledDocument[/COLOR]. I'm almost sure there is a logical way that I cannot see, but here … | |
[CODE] $lines = file('http://www.adexmart.com/product.php?id_product=276&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link'); // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lines as $line_num => $line) { if(htmlspecialchars($line)=="</div> "); echo htmlspecialchars($line)."<br>"; } ?> [/CODE] I am printing lines (all html code) successfully, but I dont able to check a condition for … | |
I am trying to write pop() function in a file but I am really stuck. It looks like it is asking to delete the top element of the stack and returns a Bookmark pointer. Please, help!! I am showing the header which explains what needs to be done. [CODE]#include "Bookmark.h" … | |
Hi Everyone I have a webform, from which i want records should be submitted into two tables under same database name. My code is [CODE]<?php $con = mysql_connect("localhost","************","***********"); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db("qserves1_uksurvey", $con); $sql="INSERT INTO forms (date, Receivingsky, Title, Firstname, Lastname, House, Street, … | |
hi any body tell me where use in PHP this function $_GET on websitedesign and why I use this. tell me ? thanks and advanced. ![]() | |
C:\Users\Kostya\Desktop\c++\MacroWriter\ifexists.cpp|27|error: ambiguous overload for 'operator=' in '((farm*)this)->farm::sendeachbase[i] = 0'| Ok so I am making a class for my program and I want to initialize some of its variables to 0's. I haven't done anything with classes for a while so I am not good with this stuff. This is my … | |
I'm new to [B]Qt[/B]. What resources do you recommend for learning Qt? Thanks. | |
hey can any one tell me what's the advantages of c#.............when compared to all other languages | |
Hi, I have 2 images stored in the variables [ICODE]Image img_arrowl; Image img_arrowr;[/ICODE] and now I need a function or method to set the opacity of these two images. So the syntax I'm after would be something like the following: [CODE] img_arrowl = set_imgopacity(img_arrowl,0.75); img_arrowr = set_imgopacity(img_arrowr,0.75); [/CODE] The only … | |
Hello. I am doing an exercise and faced an problem my code is: [CODE] protected void ddlStudents_SelectedIndexChanged(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(connection); SqlCommand comm = new SqlCommand("GetFullStudentProfile",conn); comm.CommandType = CommandType.StoredProcedure; comm.CommandText = "GetFullStudentProfile"; SqlDataReader reader; try { conn.Open(); reader = comm.ExecuteReader(); reader.Read(); StringBuilder sb = new … | |
Hey guys I have an encrypted ip address in php like $visitor_ip = ip2long($_SERVER['REMOTE_ADDR']); $visitor_ip looks like this 1860881473 can i decrypt this number to get a proper ip like "42.108.196.150""? if there is a way todo so? Thanks again | |
hey i'm planning to display all the datas that is in the database as shown in picture [B]output.bmp[/B]........but i can't print the whole thing in the database, instead i could print only the first row in the database as shown in picture [B]database.bmp[/B]..........can anyone tell me how to print the … | |
OK, I need help!!!!!!! I've tried every advice I could find on google, nothing works for me!!!!! my DB has data in hebrew I can't figure out how to set the collation and everything else right so that my site would show the data in hebrew when I echo it … | |
I want to create a 3 page search to bring back one result from a SQL database. The first page will be a image of a male and female, and the user selects themself, e.g either Male or Female. They click next. The next page asks for the day of … | |
hey people . i am trying to set a cookie but when ever i try to set it, it says : [CODE]Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\signup\conf.co.signup.php on line 13[/CODE] please help me with this. this is my code: [CODE] <?php error_reporting(-1); if(isset($_COOKIE['logedin'])) … | |
Hello, I have date saved as varchar (Day,DD,MM,YYYY)in my database(DB) and it is displaying on my DB binded datagrid. I have binded it through VS.NET 2008. Is there any way I can get the sorting of my datagrid from date? Please tell me the possible solutions for it. Thanks Adnan | |
When I first started programming my TemporalWars 3D game engine in 2008, very few interfaces were used. However, as the program grew in complexity I quickly realize the importance of compartmentalizing code and abstracting the connections to those units using ‘Interfaces’. For those who are not aware of what an … | |
hi, for a 'total cost' field in sql i used the data type 'money'.. in c# what data type should i use to match that of the sql?? decimal or float?? thanks | |
I have to make alikation which is to measure the response time of site. Application can not be blocked during the response / request process? Help please! | |
When writing this: [CODE] #include <iostream> #include <iomanip> using namespace std; int main() { float number = 2.12345; cout <<fixed <<setprecision(3) <<number; return 0; } [/CODE] I get 2.123 If I then cout another float variable that I want all decimal numbers at, and not setprecision(3)...... How do I do … | |
I got a look one huge Java code suggestion from one [URL="http://www.daniweb.com/software-development/python/threads/86608/1525822#post1525822"]newbie high jacker of old thread[/URL], so I had to write this code. [url]http://oeis.org/A001235[/url] (for values with [B]minimum [/B]2 ways, first difference is 87539319 with three ways. You can of course change the if part of the print to … | |
I was wondering how I could create a java application program which allows sending free sms to any network subscribers without the use of any hardware component (i.e. GSM modem). Is it possible? What are the things should I consider and how does the logic work? Can anybody tell me … | |
Hi all, I have some images path in database. So i need to get those images in a slide show like this [URL="http://www.trans4mind.com/personal_development/JavaScript/imageSlideShow.htm"]http://www.trans4mind.com/personal_development/JavaScript/imageSlideShow.htm[/URL] But in this link only 4 images were there. But for me i need images from database. so how can we do that can anyone help me.. … | |
Hello All, Can any one tell me how we bind data to a ComboBox from a dataset? Thanks for your precious help | |
Hello folks, I beg your pardon if I have posted the thread in wrong forum. But my query is related to sql server and visual basic 6, so I thought posting it here rather from visual basic forum will help me getting most replies.... I have developed an client-server based … | |
hi, i have added a new tool to the toolbox in visual studio by adding an existing solution to my solution and automatically a new tool was added to the toolbox. now, how can i make it portable so that when i open my solution on another pc, it will … | |
i would like you to help me to build my school database query rightnow | |
I am 4 months new to PHP! So please be gentle with me. : ) I have an input form that contains check-boxes(it works and posts array to database correctly!) I have an update form that contains the same check-boxes (it updates and posts array to database correctly BUT IT … |
The End.