199,114 Archived Topics
Remove Filter ![]() | |
hello all. This program is just a collection of functions to demonstrate various programming principles. What I'm saying is that don't worry about the overall function-it ain't all that... One of the principles is using a 'non member' friend function to display the output. I added this to the public … | |
Taking a Java test I found a for{} loop which had a : character in it?... like this... for { : } I was supposed to fill in some objects, but I have no idea how a : character does in a for loop? Any comments? JON | |
I m new to perl and i have to develop such webserice which can use the perl script via html so that the source of the perl file cannot be displayed only the output is displayed. | |
:rolleyes: my game have several boxes filled with randomly cards! the job is to match the 3 cards by vertical or horizontal way.if three same cards were in match.. I ld to make them disappear from the boxes .. How can I do .. ?pls | |
Hi everyone, I've been working on this for days, but just can't get it. I have a linked-list containing edges of a weighted directed graph, and my goal is to find a path from vertex A to vertex B going through exactly n nodes. Anyone has suggestions, or links with … | |
I'm learning C++ language now but i don't know which IDE should i use.Someone recommend DEC-C++ to me but it a little terrible debugging. I don't want use the bareGDB and how can i do. thanks.:sad: | |
Hello folks, I have a working CGI written in C. It uses the printf statement to build the outgoing HTML web page. I understand that printf is actually outoutting to the STDOUT device. I'd like to use the WriteFile statement to build the outgoing page and I've tried this:- WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), … | |
can any body explain for me the way of using media player control in vb.net2003. i want a video to start only when clicking on a certain button. i don't want it to start automatically when the form is loaded.. | |
ok here`s the code [code]#include <iostream.h> void main() { int x = 0; cout << "Loliko si pa star ? >>>" ; cin >> x; if ((x >= 0 ) && ( x <= 4 )) { cout << "\n dojencek" <<endl; else //error here { if ( (x >= … | |
Hi I'm a completely new to computer programming and am looking to make an application that can search through 3 dictionaries using one input. The dictionaries are Chinese-English, Chinese-Vietnamese and another Chinese-English. The first one is taken from CEDICT, an open source dictionary in Unicode. I'm going to try to … | |
HI, I HAVE BEEN TRYING TO FIGURE THIS PROBLEM OUT ALL DAY LONG. CAN SOMEONE PLEASE HELP ME ALONG? I WILL TELL YOU THE PROBLEM AND THEN SHOW YOU WHAT I HAVE SO FAR. I AM TRYING TO MODIFY THIS RECURSIVE PROGRAM: [code=python] def fib(n): if n < 3: return … | |
hi , Good Morning. Well i would like ot know how i could parse this URl in PHP as parse_url() would give me a query part ...the problem is actually i want to parse the query part of URl thatg we get using the parse_url. for eg: the url below … | |
For my project I'm using an array of structs that I declared in the header file [code] struct City{ string name; int visits; }; City* map[200]; [/code] now when I'm trying to initialize it in a constructor, like [code] for (int ii=0; ii<200; ii++) map[ii].visits = 0; [/code] I get … | |
[QUOTE] 1. Write a program that read the data from a file name address.txt. Then, right justifies the text in new text file name add.txt. Given the width of the new text file is 70. 2. Write a program that counts and prints the numbers of line and word from … | |
[B]i need computer graphics programs written in c..[/B] [B]thanks a lot..:sad: [/B] | |
In certain cases, it's correct for my app to die if it encounters a potentially dangerous condition... I'm working on a more detailed error reporting system, and among the things I want to list are; the object class that threw the error, and the method that threw the error. At … | |
Hi, I'm revising for an exam comming up in C Programming. Can anyone help by answering some typical questions which might come up in the examination. Any help would be appreciated. [B][U][COLOR=#000000]Basic data types[/COLOR][/U][/B] [U][COLOR=#000000] [/COLOR][/U] [LIST] [*][COLOR=#000000]What are the different types of data?[/COLOR] [*][COLOR=#000000]What are signed and non-signed data … | |
i need previous years enterance papers with solution.. can anyone give me any link or help me out.. i'm having exam.. IIT JAM 2007 | |
Hi Everyone, I'am currently working on this question: Write a producer-consumer problem that uses threads and shares a common buffer. However do not use semaphores or any other synchronization primitives to guard the shared data structures. Just let each thread access them when it wants to. Use sleep and wakeup … | |
Hi, I am using the Kdevelop IDE on Fedora core 5 32 bit Linux to learn c++ programming, but the funny thing is I can't figure out as how to set up the IDE in such a way that it gives me the option of syntax highlighting and automatic code … | |
i have installed djgpp through a cd ( it also has some software called Knoppix... don't know what to do with that... does anyone know?) so here is my problem: i made a c++ program on notepad and saved it with .cpp extension... now how do i compile it? do … ![]() | |
Hi I wrote code for Java program to simulate the rolling of 2 dice. The application should roll the dice 36,000 times. In a tabular format it should show the frequency of rolling 2,3,4,5,6,7,8,9,10,11,12 and also the percentage. It compiles alright but I am not getting the output. Can someone … | |
Hi all... i am trying to add a vector to the hashtable as a value.This vector contains three fields.But the problem is while adding new vector to the hashtable as value the old vector is also replaced with new one.... So please help to solve this problem.. | |
hi i am tring to use connection pooling in java with postgresql database. in given examples, i cant understand these file names that is given to create InitialContext object, also that file names are different for each and every examples. how can i get those files, and what are those..? … | |
Just trying to make pickle work, but when I load the file the dictiionary is still empty. It's an addressbook, with the dictionary keys being names, and values being numbers {N:NUM} I've programmed pickle to save it to a file with a user specified name, and it does so. I … | |
I'm writing a program in assebly using x86 intel processor series and a flat model can anyome suggest anything about this? ;;;;;;;;;;;;;;;;;;; input string,40 ;the user enter a characher 'q' for instance atod string ; now the value in eax as decimal ;;i need to compare the number and if … | |
can somebody help me to know a vert efficient algorithm in dividing more than 32 bytes of number? e.g. 65534.99/2326.84=28.1648029 =>6553499/232684 =281648029 =>63 FF 9B/03 8C EC=10 C9 9B 9D how could that be? my algo is that use shifts and subs but in a bitwise manner i want to … | |
Is it possible? Because I want to convert my Mario by Utter Chaos into Java to put on my website. | |
Hi, all I'm trying to do is have my program request a name then after name is inputted, ask if there are any more names to add [Y/N]. Problem is program keeps displaying 'add name' and 'any more names to add' on the same line without giving the option to … | |
I need to create an app that will run an executable at 3 given time (8am, 12pm, and 4 pm). Can anybody tell me how to start? Thanks!!!! | |
I am tring to get the real time data [B][COLOR=#7f0055]for[/B][/COLOR] almost 200 subjects [B][COLOR=#7f0055]and[/B][/COLOR] store it in a file. But then I get the each subject data in four different subject codes in the sense four rows from the real time data which I want to store all of it … | |
Please can anyone help me to get the time zone between GMT & New York including the daylight saving. I am able to get the timezone between GMT & localtime including the daylight saving. My program goes like this [code=c] time_t t = time(0); struct tm* data; data = localtime(&t); … | |
The differences are listed here [URL]http://www.geocities.com/karthika_79/diff.html[/URL] hope this helps, karthika | |
Hello, I'm trying to read in a txt file that looks like: AAAA BBBB 1234 CCCC DDDD 4321 .... and here's what I've done so far: [code] char a[4]; char b[4]; int c; FILE *input= fopen("input.txt", "r+"); if (input==NULL) perror ("Error opening file"); else{ while(feof(input)== 0){ fscanf(input,"%4s",a); fscanf(input,"%4s",b); fscanf(input,"%d",&c); } … | |
Hey friends , Is there any way to change textcolor in C? I am not able to find any method... | |
Hello, and thank you in advance for any help you can provide. Each line in our datagrid control contains a product number, description, and a textbox for the user to enter a quantity-to-order. Users enter quantities (not necessarily on every line), click the Next button, and continue. Sometimes users return … | |
Error message: Query failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 -------------------------------------- Can any one able to edit it in correct form?(*I using PHP5) ---------------------------------------------- $[PHP]query="select count(*) from cart … | |
Hi Guys, I have an aspx page called Main.aspx which has several text boxes and a button. When I click on this button, it opens up a popup window called SubMain.aspx I want to drag and drop those text boxes from the Main.aspx page to this new popup window. Is … | |
Hi, I had almost completed my program of Analog clock with tC++. but i got stuck, when any arm of the clock is over another arm it erase the other arm when it passess by. I try to redraw that arm but it looks very bad as it start blinking … | |
Hi, I have an ASP.NET application that will not close a Browser using the Javascript Window.Close() command. I am opening a Browser on top of the current Browser to display and collect additional information. In the Click event of the command button on the pop-up Browser, I execute some VB.NET … | |
I'm looking for a C++ certification course, but there seems to be about 1001 offerings on the net, and the last thing I want to do is spend my money on something that employers won't recognise as legitimate. Could anyone please recommend some of the courses/companies out there that I … | |
hi, OVer the last few days, I've bee having serious issues trying to check input from the user and making sure its numeric, I recently found this function like many others but I cannot get it to work. [code] #include <cstdlib> #include <iostream> using namespace std; bool IsNumeric(const char *p) … ![]() | |
Hi Does anyone know how to insert data into a database from a website? I have created a Registration form for users to register to my web site. With this I would like the data they have entered to be stored in a MySQL database. I have created the a … | |
Hi, I was wondering if anyone knew of a good memory leak checker (like valgrind's memcheck) for c++ win32 apps. | |
Greetings all! To get to the point, I'm having issues accessing SQL databases. The specific error is as follows: Connection failed: SQL state: '28000' SQL Server Error:18452 [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Here's the setup: The workstation(s) … | |
[code] #include <iostream> using namespace std; // structs/Classes /*********************************************************************/ struct Key { char* data; // string Key () {this->data = NULL;} Key(char* data) { this->data = new char[strlen(data)]; strcpy(this->data,data);} bool operator== (Key& key) { return 0 == strcmp(this->data,key.data);} // is this == to that key bool operator< (Key& key) { … | |
[B]Here it goes: 1. Write a C program to calculate the value of x for the given formula of quadratic equation. 2. Write a C program to calculate the petroleum consumption. It should assign the distance travelled in km. and the amount of petroleum used in litres and compute the … | |
Hi, Would really appreciate if someone can help me. Need to generate 10 random numbers such that their sum is less than 1. thanks so much in advance manu |
The End.