199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm trying to write a program for Windows that will control the mouse with the keyboard, but I'm not sure I understand how Windows works. My theory is that I will need to send mouse event messages for the mouse and hook the messages from the keys that are … | |
![]() | I'm not sure how to do this or if its possible with CSS/HTML. I have tables that hold info on my index page that is entered from the members area. The table has a plain white background, which isn't my problem. I'd like it if when new info is entered … |
Hi all Can we convert a string to function name in c. I am not looking for function pointer. Like:- [CODE] void fun1(); voide fun2(); char *fun = "fun1"; (*fun)(); [/CODE] | |
i'm sorry my title is confusing here's my problem i've created this echo "<table border='1'> <tr> <th>Idno</th> <th>Name</th> <th>Specialty</th> <th>Email</th> <th></th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['Idno'] . "</td>"; echo "<td>" . $row['LastName'] . " " . $row['FirstName'] . " " . $row['MiddleName'] . "</td>"; … | |
When you have a file with a lot of lines of numbers. I want to know if instead of writing the formula to calculate the numbers for everyline of data. Is there a way to tell it to apply the formula I have made to every line until there are … | |
Hi, im using visual studio 2010, and for my recent assignment i am having difficulty when closing a text file. My program is to read in the data from a text file and then do some calculations and then output the result. My text file Measurements.txt looks like this: 5 … | |
Hi all, i have a problem with my datagrid attribute "OnPageIndexChanged="gridedit_PageIndexChanged""... for example if i have 2 page and the second page contain only one record.. if i want to delete the record, this error appear.. anyone can help me plz.. [CODE] Invalid CurrentPageIndex value. It must be >= 0 … | |
Hi all, This may be asking a bit much, but this is my FIRST advanced PHP/MySQL project. Any help is appreciated. I am currently building a website for one of my friends photography business, and she has requested to allow her clients to be able to sign with a username … | |
Hello all. I want to find the return address where execution should jump after returning from a function. Say this is my code: [CODE] void foo(){ } int main(){ foo(); printf("After foo.."); return 0; } [/CODE] After foo() returns, how to find the rturn address where control will be passed? … | |
For homework, we have to find the time complexity class of certain algorithms and explain why it has that certain complexity class. So, I have a couple of questions: - Why is the first running time always so much longer than the ones after? (setting up the application or something??) … | |
I'm distributing a binary that users are required to install the following: Microsoft Visual C++ 2005 Redistributable Package (x86) Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) If they don't have them the program puts up a ambiguous error message. I'm not really sure how static linking works, but I … | |
My program lags the computer because i have it going through a while loop to continue check if a condition is true. Is there any way i can have a wait for user input such as pressing a key to perform the evaluation. Or is there any way to have … | |
Hi! I need help calculating the summed values of a column. Also, the row values are subtracted from each other eg: [CODE] col1 col2 col3 row1 a b = a-b row2 c d = c-d row3 =a+c =b+d =a-b+(c-d) [/CODE] however there can be N number of rows. I have … | |
Ok, I'm wanting to do the following... A C++ program that can edit a sentence with word insertions and deletions. You can assume the sentence has words and numbers separated by spaces and punctuation symbols. The input is a regular text file, where each line is terminated with an end-of-line … | |
Our professor decided to give us a really hard assignment in our 2nd week in the course. I really have no clue where to start. Requirements Writing reusable code to check a user name and password can be a challenging task. Three major things can change between one password checker … | |
Hi all, Me again. I am having issues with a looping program. My current issue right now is that it wont compile, it keeps saying i need another perentheses at line 20. This program is suppose to calculate the investment and show for every year. The year and amount of … | |
The assignment was to write a C++ program that implements Insertion, Bubble, Merge Sorts for sorting Arrays of non-negative integers. The three Algorithms should return as output not just the sorted Array but also the number of COMPARISONS needed to sort the array. The array is has randomly generated numbers … | |
Im a novice at php and cant seem to get the following two line together. We want to use this line [CODE] <?php if($logged_in) { echo "Welcome back, $logged_row[username] "; } else { print('<a href="http://xxx/login.html">Login</a> / <a href="http://xxx.com/signup.html">Signup</a>'); } ?>[/CODE] But we need this put into it, we need it before … | |
I am having trouble with the evaluate class. An error message is coming back for the pow(x, degree). I have included the cmath library and have cast x and degree into double. Any hints or tips would be greatly appreciated. I have tested the program without the pow(x, degree) and … | |
i am designing a database for a football league and one of the requirements is Although the match is between two teams, it is common that many players are named in the team but they do not actually participate in that match when it takes place. reserved players and can … | |
[CODE] <html> <link rel="stylesheet" media="screen" href="DynCalendar/dynCalendar.css" /> <script language="javascript" type="text/javascript" src="DynCalendar/browserSniffer.js"></script> <script language="javascript" type="text/javascript" src="DynCalendar/dynCalendar.js"></script> <body> <table width="703" height="210" border="1" cellpadding="5" cellspacing="0"> <tr> <td width="535"><form name="Add_Record"><form action="insert.php" method="POST"> <p class="Headings"><strong>Add a Record</strong> </p> <p>First Name: <input type="text" size="20" maxlength="20"name="firstname" /> Last Name: <input type="text" size="20" maxlength="20" name="lastname" /> </p> <p>Days … | |
How would I pass something from a driver into a list inside a class. I then need remove a word from the list and replace it with a new word. | |
OK so I'm doing this assignment and i'm confuzzled: write a basic class, with a constructor, default constructor, setter and getter functions. This is what I got: [code=c++] class Car { private: int yearModel; string make; int mpg; public: Car(int, string, int); //constructor void setDefault(int, string, int); // def constructor … | |
guyz pls i need help writting d php script for a registration form...i want all the contents of the form to be emailed to an email address i will provide here is a copy of the html code, its juss the php script i need not pls someone help [CODE]<FORM … ![]() | |
Hello How do I deal with Trees as Linked Lists ?? View Photos, [URL=http://img832.imageshack.us/i/49362381.png/][IMG]http://img832.imageshack.us/img832/4553/49362381.png[/IMG][/URL] Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL] I think I would need for TL* son ,TL* father, TL* brother. [CODE]struct ff { int id; ff * son; ff * father; ff * brother; }; class formula_s { public: ~formula_s(); formula_s(); … | |
Hello everyone, i have a problem using the replaceAll method and i hope that somebody can help. I want to remove substrings (sub) from a string (message). The message string looks like that: prop(ag1,0,1,4,5)/prop(ag2,2,5,3,3)/prop(ag1,0,1,4,5).... I want to take each prop(...) and put it in a list, but not the duplicate … | |
I'm now studing Object Oriented programming course,and I want to do a gui and implement all rules of object oriented programming in it . so what's the best recommend language to do gui other wise library swing in java ?? | |
I am starting a homework an assignment on C++ about a mortgage calculator. It is really complicated and I'm really confused. I just need some help. PLEASE AND THANK YOU! :) | |
Hello folks, I am new to VB 2008 and right now I have been struggling a lot for updating access 2003 database from a VB 2008 desktop application. My problem is that I am unable to update the 'Status of the USER' to 'ACTIVE'. The problem is in the "setUsersOnline() … | |
Hello DaniWeb, I am pretty new to this community and overall to the C++ language. Not so long ago i've decided to learn C++. Anyways the problem is: I am trying to make a simple calculator, its very easy my problem is i am trying to advance my knowlege about … | |
I am trying to demonstrate to my class mates the run time difference in using bit-wise and logical operators. I chose to do this by writing a simple (I thought) program that reads 2 ints from the console, and multiplies them two separate times, one using the logical multiply (a … | |
Hello all, I need help with a scientific notation problem. I am to create a program where the user enters a 5 digit number, and it is displayed in scientific notation. This part is easy, however I am trying to take it to the next step and make it so … | |
Hello: Was trying to assign a function pointer to a struct member and am getting compile errors. The .h file I have to use has defined the struct: [code] typedef void(*callback)(bool, char*, int, unsigned long, void *); struct CallbackInfo { callback func; void* stuff; }; [/code] What I have in … | |
So I have an assingment that I am stuck on -_- So I am supposed to create a code that "tests" out a range of integers and determine the perfect squares(4,16,25, etc) within the range without using square root calculations and using a function. I have written the following, and … | |
hello everyone i am a student of computer app. from last 4 months i was using turbo c++. but by the advice of some people yesterday i installed codelite. i wrote a simple c++ program but i am not receiving any output i pressed ctrl+f9 as in turbo c++ but … | |
Hi I have this project I'm working on and I'm totally stuck. Things is that we need to do the following: A - Write a class, Sphere, which has one private field of the type integer which represent the radius of the sphere. B - Write a default, empty, constructor … | |
i want to write a code in C++ in which when i Press a key...it displays the letter which i have set in my code for dat key.....it means a program that changes the ascii code of a keyboard.....tell me the logic how can i do that?????? | |
I am reading the first chapter on graphics in the Stroustrup book. He explains that we students will need to download the files of a GUI toolkit in order to run programs containing graphics. He recommends the "Fast Light Tool Kit, FLTK" because the book's programs are based on that … | |
Below is the function I copied to get the answer...so plz do tell us the simple method for this..... [CODE]int ** addmatrix(int **a,int x1,int y1,int **b,int x2,int y2) { int i,j,**c; c=(int**)malloc(x1*sizeof(int*)); for(i=0;i<x1;i++) *(c+i)=(int*)malloc(y1*sizeof(int)); if(x1==x2 && y1==y2) for(i=0;i<x1;i++) for(j=0;j<y1;j++) *(*(c+i)+j)=*(*(a+i)+j)+*(*(b+i)+j); return(c); }[/CODE] | |
Hi all, Can somebody show me an example how to embed SCPI and GPIB type commands in C sharp for instrument control? It is for controlling a spectrum analyzer through Ethernet interface. Thanks and regards, George | |
Hi, I want to calculate the number of days between two dates. Date is in the below format: First Date : 2010-09-27 05:00:00 Second Date : 2010-10-1 08:00:00 Thanks. | |
Subject PHP: Echo SimpleXMLElement Object Data Out to 3 Column HTML Table Post Hello everyone. I am working with Simple XML Element object data and PHP code. I want to echo out that data into a 3 column HTML table and have run into some trouble. I am currently able … | |
Hello.. i have two datatables with only one column each. i wanted to compare those two columns in two datatables. here is the example dt1 apple orange peach banana dt2 apple peach mango apricot now i want to compare dt2 with dt1. dt2 is bound to a list box. so … | |
can anyone explain me add to cart script.i have read it in some sites but dont know what it means. can anyone explain a simple one? | |
guys,,, m doin my final year BE-cse...i need a career advise..my passion is game design (not coding) like char,areas,etc...but if sme1 really teach me the easiest way to code definetly i will copeup..what is the scope for game designers now a days..??? i want tis information to pursue my higher … | |
Hi I am parsing .csv file which contains 21 000 records. While i am parsing it i insert records in database. It is taking about 40 second for script to parse the file. User will not sit and wait 40 seconds - he might close page. How can i print … | |
Hi All, I am new to Ajax. I have updated my website with Ajax code. How should I get unique url after click on menu. I mean if I click on "about me" on my website yogawithgauri.com. the url in the address bar should be yogawithgauri.com/aboutme Please let me know … | |
I had an assignment to create a calculator in two ways, 1) Method returning values. 2) Method without returning values. I've done this with methods returning values but how could i add, subtract, divide , multiply without returning a value from methods ? [CODE]import java.io.*; class first{ int a=5,b=2,c; public … | |
Hello. Apart from practice and books (like C++ coding standards by Sutter and Alexandrescu) what is the fastest and surest way to acheive coding standards in c++? Supriyo | |
Having the following message when trying to run my DirectX10 application. A screen shot of the message is attached. Would appreciate help with this and just before someone asks yes I have DirectX10 installed. Sorry if this is the wrong place to post this thread. Thanks. |
The End.