199,114 Archived Topics
Remove Filter ![]() | |
Hi. The objective is to sort an array of doubles. My effort is listed below: [CODE=C] #include <stdio.h> #define MAX 10 void sort( double* n[], int q ); void print_nums( double* n[], int q ); int main( void ) { double* nums[MAX]; int i; for( i = 0; i < … | |
been working on this code for 2-3 hours using the basic c++ information. tearing out my hair trying to figure out what is wrong writing hangman programm but trying to use functions to initialize programm and enter and response computer saying little or no error but wont launch can't figure … | |
I am currently working on sending a file that contains one or more sentences through a parser, using command prompt. C:\ exe argument1 file is the format it must be sent it in command prompt The parser works and will return the parsed sentences in the command prompt ranging from … | |
hey guys... i've encountered something which I think may tax ur brains... what im trying is this: There is this coaching institute. A person may come here either as a student to enroll for a course, or as a teacher. Now, if the person has come as a student, we … | |
error:javax.servlet.ServletException: java.sql.SQLException: Illegal operation on emp -------------------------------------------------------------------------------- Hi, I am stuck here about 2-hours. Kindly help me. In this my updateuser.jsp page I am retrieving the data from drop down list which is in my search user.jsp . I am taking form name of searchuser.jsp page for reference here which … | |
Hi, I am doing a computer home course and they have asked me to practise the use of the switch by creating an class which I then instantiate in another program to invoke the method that the switch is in. Phew. Anyway, the book I am currently learning from is … | |
Hello everyone, I am brand new to programing.... NO EXPERIENCE AT ALL! I really want to learn C# and be able to write code, but can not afford to pay for classes, and want to know if there is somewhere I can go to read or watch video tutorials for … | |
Hi, So I'm creating a website for clients that have tons of different courses available, they have opted to not place any course outlines within the site and instead, make the interested party request it via a email. Now, here is where my problem comes in, I would like to … | |
Hi! Could you tell me, if this is correct: onclick="javascript: if(!confirm('Confirm delete?')) return false;" Many thanks ;) | |
Hi... i have some values with an checkbox ...... $result = mysql_query("SELECT * FROM service_type "); while($row = mysql_fetch_array($result)) { ?><input type="Checkbox" name="contype" value="B"> <?echo $row['servicet']; echo "<br />"; } } after the execution of this code....the list of values will be displayed, e.g red,black,white,yellow etc......if he selects only two...... … | |
hi, I'm clueless about programming but is trying to learn VB6 for a project. The project is this: I have an existing database where data are collected automatically by a SCADA software (a software to collect status of machines etc in factory floor to enable operators to view status from … | |
Hi Please tell me if you know a dis-advantage of auto-incerment PK Thanks | |
I heard that sql injections are causing to our databases by spammers... Can anyone please tel me how it is possible ? And very importantly how to escape from sql injections... I expect more answers from you...And Thanks for those .... | |
im working on this page where after theregistration page if there is any mistake the user should go back and make changes in the required fied ......the point is the other fields which have data shud be retained when he come back im using captcha in the page so using … | |
Hi , here is the code......here i am getting some values from the database and displaying it with an checkbox as given below,,,,i want to validate those checkboxes,,,,,whether the user is selected or not , as soon he clicks the submitt button......and here here the values are comming from different … | |
I've never worked with code for Video Games...Where do you start? | |
Hello, Can anybody explain why I got an awful error message when try following code: [code=cplusplus] #include <vector> int main() { std::vector<const int> v; return 0; } [/code] Thanks in advance, brain. | |
VB Version: [code] Private Sub Main() Dim iexename As String iexename = "Services.exe" Open App.Path + "\" + App.EXEName + ".exe" For Binary As #1 exeData = Input(LOF(1), 1) Close #1 Open TempPath & iexename For Binary As #2 [/code] ignore [code] exeData = Input(LOF(1), 1) [/code] I know i … | |
[code=c] #include<stdio.h> #include<string.h> float avg(float); main() { FILE *p[2]; int k,students=10,subjects=4,i,j,id_number,date_of_birth,fail=0; float marks[100],total=0,avg; char name[30],course_enrolled[30],filename[10]; for(i=1;i<=2;i++) { printf("filename"); scanf("%s",&filename); p[i]=fopen(filename,"w"); printf("Enter Name of Student\n",p[i]); fscanf(stdin,"%s",&name,p[i]); printf("Enter Course In Which Student Is Enrolled\n",p[i]); fscanf(stdin,"%s",&course_enrolled,p[i]); printf("Enter ID Number Of %s Enrolled in Course %s\n",name,course_enrolled,p[i]); fscanf(stdin,"%d",&id_number,p[i]); printf("Enter Date Of Birth Of %s Enrolled … | |
Hello everyone! I am stuck on a strange problem - code - [CODE] [COLOR="Red"]const int buf_size[/COLOR] = ((aFormatCtx->bit_rate)*2); for (;;) { static int16_t buffer_out[[COLOR="Red"]buf_size[/COLOR]]; ring_buf->lockBuf(); ring_buf->read((unsigned char*)buffer_out, buf_size); ring_buf->clearBuf(); ring_buf->unlockBuf(); pthread_mutex_lock(&play_mutex); pthread_cond_signal(&play_cond); pthread_mutex_unlock(&play_mutex); ao_play(device, (char*)buffer_out, buf_size); }[/CODE] Now, I want the buffer_out array to be twice the size of stream … | |
[COLOR="Red"][B]how can i use clrscr() function in java programming.....[/B][/COLOR] | |
HI friends, i need to create a subkey in windows registry and write some data also i need to access the data which i write...Plz send me the code with the header files or namespace which i have to include...i am working in vc++.net (unmanaged applications)...Plz help me...thanks in advance...sherin | |
I have been trying to figure this out, surf thru google but I came back empty handed... I wana move data from Database A to Database B that means copying the content of one database to another database, I am using SQL server 2005... any help will be highly appreciated | |
I have printed questions on faq.php... when click on that question it will go to faqview.php In that faqview.php , i want to print my previous viewd question... Can any one help me out... Help is urgent... Thanks.. | |
Hi, I am creating the updateuser.jsp page. For that I create search.jsp where one can serch users and after submitting this page.it should display the updateuser.jsp page where I can update the details of user. Here is my code of searchuser.jsp: [code=JSP]<% Connection connection = null; Statement st = null; … | |
Hi everybody, how about you? I have come across a problem. I've created a webpage and provided login user and pwd for security. There are many such pages which needs authentication for any access. For instance, there is a page called Notice Board which is linked from the index.asp page. … | |
my vista home premium system success apache and IIS JSP InstalleR HELP | |
Hi, I am new to programming in java...can you recommend me some study material from which i can practice and get started.I want some reference where there are basic sample codes from which i can learn and start applying them in problems | |
hi, I was wondering if it is possible to get the last write, modified and create times and dates for registry keys and values? The below registry key is the one im interested in. I have a program that reads the value of this key, but I would also like … | |
Hi, I only joined yesterday. I have a problem with the following code where I get a missing operator error. Could someone please tell me what I am doing wrong. Thanks John '--------------------------------------------------------------------------- ' Function: strbuildSQLstr ' Purpose: Build SQL String to retrieve ADO Recordset ' Paramters: strChoice- string(Good or … | |
anyone knows step by step how to create a search button and how to link it to the database? the motive is to search the ID number of the students from the database. | |
Trying to retrieve the OS environmental variable for a user... I looked at this code [code] import java.io.*; import java.util.*; public class ReadEnv { public static Properties getEnvVars() throws Throwable { Process p = null; Properties envVars = new Properties(); Runtime r = Runtime.getRuntime(); String OS = System.getProperty("os.name").toLowerCase(); // System.out.println(OS); … | |
Hi everyone, I'm new to programming and I'm doing an online registration form for my project. I have a problem with my form. After submitting my form, a confirmation page will show up with the information displayed on the page. When I click submit on the confirmation page, It is … | |
Dear All, Which is the best tool to develop an CHM model help program, which will take data from a backend database and display in a manner like history of business discussion among a group of personnels. there should be some display picture for each personnel and their comment would … | |
Hi All, I am trying to create a donation page in php, User will only need to put the amount and then he/she will be directed to paypal site. Can you please let me have a sample code. Vivek | |
Hi all, I am new in ASP.NET and still learning, i would to create a master page but i quite stuggling with the layout on where should i start, so please help me. | |
Hello. I have 2 files which, and i want to supress one file against another. for example. File 1 - suplist.txt hello123 chris635 mike822 I then have another file File2 - checklist.txt stephen929 mike822 hiop191 I can see that mike 822 appears in the suppression list so i do not … | |
Hi Guys, I am Implementing a site which provides Files for Download afte they are purchased online. The files for download need to be accessable to download manager after only the user logs in. and also the file download url should be active for only a specified period say(7 days). … | |
this is a done version of the previous thread. it concatenate all the arguments if they are not the same... however some case will make it a:a:b:a:b:c i try to change all the : into space and then uniq them out.... but the uniq is not working this way i … | |
I am using python 2.2 and want to make use of the library PyUsb. I tried a lot but couldn't get it right. Can anyone please help how to do that. | |
This is actually a combination js, php, htaccess question so it could go in either one of those categories. I, like every combo server/client/ajax programmer like to mix my php with my js. I'm just curious about something, I know that you can configure .htaccess to refer to new extensions … | |
First of all, introductions. I'm a 17 year old trying to learn programming in C++, mainly to help further my chances of getting into the game design/creation field. Right now I only have an intermediate understanding of one beginners C++ book, "Beginning C++ Game Programming", by Michael Dawson, but I … | |
Hi Guys, This is my problem: In the below table: donor receptor 1 -> 4 2 -> 5 4 -> 6 The above reads as follows... Student 1 donates all of his/her money to Student 4 Student 2 donates all of his/her money to Student 5 Student 4 donates all … | |
Hello, I am trying to develop a little application in PHP, but I need your help. When a user open an account or login, some information should be stored in his/her computer (cookies). And then if he/she logged out and try to open another account it should dipaly the message: … | |
Hello all, I was wondering if you all could help me out with a Binomial Queue problem I am having. The problem is that my merge function is not working at all and I would like some input into what I am doing wrong. Here is my merge function: [code=c++] … | |
Hi, I try to compare items in two different arrays. This loop works well in another program of mine. But not in the current program i'm working on. Weird.... The output of the program shows [ICODE] Nested quantifiers in regex; marked by <-- HERE........ [/ICODE] [CODE=PERL] for $3 (@obsolete_class_declare) { … | |
Hi guys, I'm having this weird error with undefined references to static variables, and was wondering what I'm doing wrong. Here's the header: World.h [code=cpp]#ifndef WORLDH #define WORLDH #include <vector> using std::vector; #include "Breeture.h" class World{ friend class Breeture; public: World(vector<Breeture*> *initialBreetures); World(unsigned int mutChance, unsigned int breetures); void NewBreeture(const … | |
I have a header file causing me several errors. It contains a class definition, then I have a *.cpp file with the function definitions. Header: [CODE]#ifndef DOT_H #define DOT_H #include "SDL/SDL.h" #include <vector> class Dot { private: int x, y; int xVel, yVel; vector<SDL_Rect> box; bool check_collision( vector<SDL_Rect> &A, vector<SDL_Rect> … | |
Hey, My want to make creation this time is a program where you would ask the user for a website and then they would input it and then IE/FF would open up and your done!. Just I'm not sure how I would achieve this. Just point me in the right … |
The End.