199,114 Archived Topics
Remove Filter ![]() | |
How to implement hamming code in C++ or C I have a prog same as other user (Melissa). I need help to get me started in coding as i'm almost forgot everything i've learned on C or C++. The task is implement a program for any hamming codes by using … | |
Looking for an example to fit into a demo I am doing... I'd like the user to be able to enter text and click search using POST method Once the next page has loaded, display that variable using GET Only in AJAX please. Thanks in advance for your help. | |
Write a C++ program that contains a structure named “Account” having four data members 1) Account number 2) Account holder name 3) Account type 4) Account Balance Account type may be Saving, Current, etc. In main function, declare an array of structure “Account” of size 10. Populate this array by … | |
OK, i recently got a few books on OpenGL, i also got Microsoft flight sim x, and a nice logitech joystick to use with it. so i want to try to figure out how to make OpenGL take input from the joystick. i haven't read much of the books yet … | |
I have a table in mysql which I can view perfectly using JSP, but there is a problem with inserting into the table which I cannot figure out. Here is my code: [CODE]<%@ include file = "database_ini.jsp"%> <% if(request.getParameter("insert") != null){ String name = request.getParameter("name"); String sql = "insert into … | |
Hi, I've just been looking at Hello World applications for programmign CGI's - and ive discovered that: [CODE]#include <stdio.h> int main(void) { printf("Content-Type: text/plain;charset=us-ascii\n\n"); printf("Hello world\n\n"); return 0; }[/CODE] Compiles to about 15.4 kb, compared to: [CODE]#include <iostream> using namespace std; int main() { cout<<"Content-type: text/plain"<<endl<<endl; cout<<"Hello World!"<<endl; return 0; … | |
Hi all, I have managed to get my average using cross tabs but only if I have grouped it by their categories. If I remove the GROUP BY clause, the cross tabbing doesn't seem to work. Can anyone help me? I would need to get something like:- [CODE]Year | Month … | |
Hello all, I looked around with google for a while and couldn't find an answer to my question. I'm trying to use php to get the name (or ID) of an html tag. I need to do this because I am creating a shopping cart which has a checkbox beside … | |
I have a form written in vb6 that the user is able to show listed items in a listbox from criteria from 4 different comboboxes. The data is being connected to an Access db. Where I am stuck at is after the search lists the data in the listbox the … | |
Hi Everyone, I m trying to built a Web Vulnrebilty Scanner which will test CGI/RFI/XSS/ on a remote Web Server.Here are my baby steps for do this project. 1-Discover pages in remote site. (ex: [url]www.google.com[/url] , [url]www.google.com/x.html[/url] google.com/y.html ...) 2-Post some scripts to the link and test the response. 3-Read … | |
ok am new to C# and am doing good so far except I been having a problem with the exit button the code for the exit button is: close(); or I use = this.close(); and that close the form but the problem is that the program still in the process … | |
I want to Show "ToolTips" when radioButton4 is Checked and when you Hover the mouse over textBox2. This works as expected. Now when I Check the radioButton5 wich makes the radioButton4 UnChecked I dont want the ToolTips to be seen when Hover the mouse over textBox2. I am trying to … | |
I'd like to write up something that will generate random numbers that would plot into a triangle distribution. I know how to get a normal distribution, which is similar. [CODE=python] import random for i in range(200): print random.normalvariate(3,1) [/CODE] But there doesn't seem to be anything in the random module … | |
Hi all.Am trying to extract a group of words from a text file.but i dont get the expected result using regular expression.Here are my codes: mytext.txt contains: [code] Group=1 Name=mattew Sex=male Age=25 Group=2 Name=John Sex=Male Age=19 [/code] When i try to get the group=1 i end up get everything below … | |
hi, I was trying to implement the sieve of eroathoses (I know I spelt this wrong) and it works. But i was trying to find all prime under 2 million. The .cmd for visual studio just corrupts if I try to find all prime under 2million. I am guessing It's … | |
I am currently storing a hypermatrix of not very many objects over a 4d hyperspace. I am working with a 100x100x100x100 hypermatrix that is VERY sparsely populated. Only about 500 cells actually contain anything. The problem is that this matrix takes up huge amounts of memory even when it's mostly … | |
Hi all. I wanted to run this class by some experienced programmers to see if I have any obvious errors and to get any advice otherwise. I created a test suite and everything seems to function properly so I'm interested in feedback on overall class design, choice of data types, … | |
Hi I am trying to upload an excel file to the server. But it won't work, every time I am trying to upload an xls file and press the button. it writes: No file was uploaded. as if i had no file. you are welcome to try on: [url]http://radio.web.surftown.dk/admin/indset_program.aspx[/url] the … | |
[B][COLOR="Red"]Primary[/COLOR][/B] (x) x.y f(x) a[x] x++ x--new typeof sizeof checked unchecked [B][COLOR="Red"]Unary[/COLOR][/B] + -~ ! ++x --x (T)x [B][COLOR="Red"]Multiplicative[/COLOR][/B] * / % [B][COLOR="Red"]Additive[/COLOR][/B] + - [B][COLOR="Red"]Shift[/COLOR][/B] << >> [B][COLOR="Red"]Relational[/COLOR][/B] < > <= >= is as [B][COLOR="Red"]Equality[/COLOR][/B] == != [B][COLOR="Red"]Logical[/COLOR][/B] AND& [B][COLOR="Red"]Logical[/COLOR][/B] XOR^ [B][COLOR="Red"]Logical [/COLOR][/B] OR| [B][COLOR="Red"]Conditional[/COLOR][/B] AND&& [B][COLOR="Red"]Conditional[/COLOR][/B] OR|| [B][COLOR="Red"]Conditional[/COLOR][/B] … | |
Hi there, I am a VB.NET programmer and i have been programming for 2 years. I have been feeling that the way i do things are incorrect when it comes to the design and planning of a program. It always feels like the program is just a mess behind the … | |
I prefer to write the backend first because thats how I think and it seems more logical to me, what do you prefer? | |
Hello friends, Suppose I want to write a dll file with MS-VC8.0 compiler. I need to add [B]__declspec(dllexport)[/B] for all of the functions which will be called from outside of that dll. Now my question is that whether it is possible to export all functions of that dll at a … | |
hey, I am developing this game of snake, just like the nokia phones have. anyway i have worked on windows till now, but now i am using geany on linux. so there are quite some methods which are not standardised for all platforms. one of them is gotoxy() and i … | |
[code] <form> <table border="0" width="100%"> <tr> <td align="right" width="60%"><select name="select" size="1" > <option>Select Category</option> <? $sql1=mysql_query("select name from categories") or die(mysql_error()); $num=mysql_num_rows($sql1); while($row=mysql_fetch_array($sql1)) { $category = $row['name']; ?> <option><?php echo $category; ?></option> <? } ?> </select> </td> </tr> </table> </form> [/code] Here i got i.e. it display in list student, … | |
Greeting When it comes to SQL I'm a novice and I think what I want to do is WAY outside my expertise. I have a file management system called ProjectWise. Everything to create the folder path is located in a single table. You start with the lowest folder then you … | |
I took a backup of a database a while ago and I'm having trouble with running it on a new (Windows 2003) server through phpmyadmin 3. Whenever I execute it the resulting tables, fields and data are all converted to lowercase! If I use phpmyadmin to create them it works … | |
Hi My first post yaa lol. This will lily be the 1st of many posts as i trty to get my head round things. Basically i am going to need to post info from a form in to a database but all so post it to a remote api url … | |
Is it possible that Treeview have Backcolor transparent. Cz when i select the properties of Treeview & choose BackColor transparent..error is there property is not valid. | |
Hi, I have an application where I would like to add the following: When the user clicks on a button the FileOpenDialog must activate and allow the user to select an EXE file. When the user clicks OK, the selected EXE should execute. I am new to C# so I … | |
I am coding in VB to add 3 fields of MS Access back end. If there is no value (or blank) in a particular field, I want 0 to be considered in addition. Following code is not working for checking the blank field. If IsNull(DE_hours) Then DE_hours = 0 End … | |
This is my code.Here Instead of query string can i use view. plz reply me. Protected Sub btnchk_name_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnchk_name.Click Dim str As String = "select ID from table1 where ID = '" & txtid.Text & "'" Dim con As String = ConfigurationManager.AppSettings("preeconn") … | |
Hello, The Hexadecimal value of EBCDIC has to be converted to corresponding character as the user inputs it. The following table shows the hexadecimal value of characters in ASCII and EBCDIC. Can anybody help me with an efficient C-Algorithm for this conversion? Char----Deci-------Hex.ASCII---Hex.EBCDIC A ------65---------41------------- C1 B-------66---------42-------------C2 C-------67---------43-------------C3 D-------68 ---------44-------------C4 … | |
Hi Group , A small Query ,I need to know how can I notify a new row entry in a table. to be more specific I have a table Users If at all a new users registers from web his details are stored in database. i would like to know … | |
Hi , I have an ajax code which works well in IE. I receive the responseText and thus the alert messages. However, i receive no responseText in Firefox. The code snippet is as follows. function pingip() { var ipaddress=document.baseform1.serviptxt.value; var xmlHttp; try { xmlHttp=new XMLHttpRequest(); } catch (exception) { try … | |
Guys, I'm in need for a java jar named tidalwave and drew. Is there someone who can tell me where can I find this jar? | |
Hi, i have seen few codes where assert macro is used to make some checks on conditions. They used 'assert' so frequently (like in every destructor) that makes code looks too bad. My question is: [LIST]why people rely on assert so much. is it because is it easy to use … | |
hey all! please help me to check for validaiton such that... i hv few textboxes and combo boxes and if data is not entered in them then the submit button should be locked... and also tell me where should i write the code as in .... in form_load or submit_click... … | |
Dear friends I am new to this forum and looking for help here. I am building an application in JSP with TomCat and MySQL. The application is to be stored on C:\ on the server while the data it will be dealing with will be on D:\. When I use … | |
hi to all, I have a page that contains two frames (before you start telling me that frames are not good, I know but this is the requierement from my course, what I can do?), anyway I have a main page that contains leftframe.aspx and rigthframe.aspx, everything is working ok … | |
Learn how to fully use the windows header with help from [URL="http://www.winprog.org/tutorial/simple_window.html"]Windows.h Tutorial[/URL], I'm pretty well along in the Programming world and was wondering if this would be really useful in becoming a programmer in the future. | |
Hi There, I am very very new to C#. I need to create a Windows Service, which should check my sql server database for every 30 seconds, and it should do some calculations on some table and insert them in some other table. I have the C# code to do … | |
I want to develop a system where the MS Access Database on the client machine, gets updated from an MS Access Database located on a remote server. How can this be achieved? Is vice-versa possible too. Thanks in advance :) | |
I have developed, along many years, a system using VB6 for Windows, using XP Professional. Now, I purchased a iMac, that uses an Intel Core 2 Duo 2.66 Ghz processor, so that installing Windows Vista Home Premium 32 bits edition, I could use resources from Windows and OS X Leopard, … | |
Hi all, It's been a long time since i was last logged in here. Comatose was probably glad to see the back of me and my non stop questioning ;-) Well today i have a small question which i hope someone can help with... Here is my question... im trying … | |
I'm making a program, and I'm at the beginning where I'm just reading the information in. The goal of this short bit of code is to read in a date (when I finish the program it should be able to read in multiple dates from a file, but I'm keeping … | |
Where should I include other header files, in header file or source file? What is the difference between the below two: Example: [code] //file1.h #include "file2.h" ... [/code] OR [code] //file1.h class class2; ... [/code] [code] //file1.cpp #include "file2.h" ... [/code] | |
A pointer points to a memory location containing a specified value right? If a pointer is defined without something to point at, it can point anywhere, right? Here is my question: What are the practical uses of pointers? I mean why wouldn't you just make a reference to the variable … | |
Hi, I am learning ASM and have encountered a problem. I have the following statements. When debugging I am seeing that the value in AL is not being inserted as 02h. On the other hand if I change "mov al, [myNumber]" to "mov al, 02h", I get the desired value. … |
The End.