199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JRM

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 …

Member Avatar for JRM
0
4K
Member Avatar for Joncamp

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

Member Avatar for Dani
0
165
Member Avatar for bhavna_816

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.

Member Avatar for KevinADC
0
109
Member Avatar for davvid

: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

Member Avatar for Maidomax
0
76
Member Avatar for DynamitMsk

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 …

Member Avatar for DynamitMsk
0
117
Member Avatar for cdwind

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:

Member Avatar for jwenting
0
144
Member Avatar for turnbui

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), …

Member Avatar for Ancient Dragon
0
193
Member Avatar for **UM HASSAN**

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..

Member Avatar for waynespangler
0
91
Member Avatar for jan1024188

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 >= …

Member Avatar for jan1024188
0
115
Member Avatar for trihaitran

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 …

Member Avatar for vegaseat
0
162
Member Avatar for babutche

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 …

Member Avatar for jrcagle
0
111
Member Avatar for hbmarar

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 …

Member Avatar for freshwebs
0
124
Member Avatar for DynamitMsk

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 …

Member Avatar for ~s.o.s~
0
150
Member Avatar for kenshihimura

[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 …

Member Avatar for Lerner
0
153
Member Avatar for dss

Hi, I just took a freelancer script its a cgi script. Can any one let me know is there any posibility to run a cgi script on local computer like we run php on apache/IIS and asp on IIS. Is there any way to run cgi script. Thank You

Member Avatar for KevinADC
0
299
Member Avatar for mytime19

[B]i need computer graphics programs written in c..[/B] [B]thanks a lot..:sad: [/B]

Member Avatar for John A
0
147
Member Avatar for MattEvans

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 …

Member Avatar for MattEvans
0
196
Member Avatar for adam37

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 …

Member Avatar for Colin Mac
0
151
Member Avatar for mytime19

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

Member Avatar for ~s.o.s~
0
130
Member Avatar for itchap

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 …

Member Avatar for jwenting
0
178
Member Avatar for tech291083

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 …

Member Avatar for tech291083
0
126
Member Avatar for road22

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 …

Member Avatar for iamthwee
0
110
Member Avatar for DaveNY

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 …

Member Avatar for qkerby
0
171
Member Avatar for binoy.M

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..

Member Avatar for jwenting
0
211
Member Avatar for rpjanaka

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..? …

Member Avatar for jwenting
0
225
Member Avatar for chris99

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 …

Member Avatar for vegaseat
0
134
Member Avatar for Knight3

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 …

Member Avatar for mytime19
0
94
Member Avatar for mymirror

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 …

Member Avatar for mytime19
0
193
Member Avatar for Mike999984

Is it possible? Because I want to convert my Mario by Utter Chaos into Java to put on my website.

Member Avatar for TylerSBreton
0
251
Member Avatar for senguptapallab
Member Avatar for kissiwat

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 …

Member Avatar for WaltP
0
101
Member Avatar for juster21

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!!!!

Member Avatar for QVeen72
0
84
Member Avatar for jobra

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 …

Member Avatar for Ancient Dragon
0
121
Member Avatar for jobra

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); …

Member Avatar for John A
0
233
Member Avatar for kararu

The differences are listed here [URL]http://www.geocities.com/karthika_79/diff.html[/URL] hope this helps, karthika

Member Avatar for John A
0
180
Member Avatar for DynamitMsk

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); } …

Member Avatar for Salem
0
2K
Member Avatar for himanjim

Hey friends , Is there any way to change textcolor in C? I am not able to find any method...

Member Avatar for himanjim
0
164
Member Avatar for kingflux

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 …

Member Avatar for kingflux
0
151
Member Avatar for cty

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 …

Member Avatar for remcov
0
206
Member Avatar for michael.ngobeni

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 …

Member Avatar for Paladine
0
194
Member Avatar for Luckychap

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 …

Member Avatar for Luckychap
0
110
Member Avatar for mikefitz

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 …

Member Avatar for shatnawi
0
109
Member Avatar for spaceboy

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 …

Member Avatar for spaceboy
0
120
Member Avatar for Walkers

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) …

Member Avatar for iamthwee
0
152
Member Avatar for LoobyLou

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 …

Member Avatar for jwenting
0
102
Member Avatar for andrax

Hi, I was wondering if anyone knew of a good memory leak checker (like valgrind's memcheck) for c++ win32 apps.

Member Avatar for andrax
0
204
Member Avatar for Matt.Austin

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) …

Member Avatar for r_jack
0
182
Member Avatar for whoknows101

[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) { …

Member Avatar for ~s.o.s~
0
107
Member Avatar for p_p_g_1_6

[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 …

Member Avatar for DavidRyan
0
83
Member Avatar for manu124

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

Member Avatar for paradox814
0
161

The End.