199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lukezzz

With this code I will show a message box that you can press Yes or No. What happens when pressing Yes is that a panel will be Visible. On this panel, I have a label that shows text and a progressbar that will go from Value 0-100, like the code …

Member Avatar for Lukezzz
0
83
Member Avatar for ceyesuma
0
63
Member Avatar for alannabrittany

[B]Problem Math[/B] Input File: MathIn.txt Output File: MathOut.txt Project File: Math Mathematicians on the planet Earth, write math expressions using in-fixed notation. In this notation, math operators are written between the operands they operate on (e.g., 2 + 3). On Mars, math strings are written in post-fixed form. In this …

Member Avatar for Stereolad
0
164
Member Avatar for Crushyerbones

I'm doing a project for college. It's not too complicated but it involves a lot of data access on a linked list. Does anyone have any tips for designing an intuitive command line gui? I'm doing things like: [CODE=C] while (current !=NULL) for (i=1;i<10;i++) printf("%d *Name: %s\n",i,current->data.name); current=current->Next; switch (get_char()) …

Member Avatar for Salem
0
111
Member Avatar for VernonDozier

I am trying to learn Visual C++, particularly the GUI components, so I tried to make a simple program where a button is displayed to a frame and when the button is pressed, a cout statement is invoked which displays a message to the console saying that the button has …

Member Avatar for VernonDozier
0
704
Member Avatar for bhoot_jb

i am writing a code for a stack within stack...or nested stack...whatever.. in the code..and the mainstack is a stack of substack, which in turn, is a stack of integer data.. i thought of using class template for both the stacks - mainstack and substack..but am confused with how to …

Member Avatar for bhoot_jb
0
117
Member Avatar for Traicey

Guys I have this terrible problem, damn its a long story and the code is too much and the worst part is it doesnt show a thing, I have two structs and two data files, They both have the same primary key and somewhere along the way I have to …

Member Avatar for Nick Evan
0
78
Member Avatar for siripong153

I'd make a basic C rpg game and I want to save data such as Exp, name, gold, ect. How can i do it in C? I went to c++ forum and saw it but fstream doesn't work on C. thank You

Member Avatar for jephthah
0
152
Member Avatar for kux

I have a function that recives as one of the parameters a function pointer. If i want to pass a class method as that function, how do I do it? I tryed like this: [code] class C { public: SetVector( vector<UTF16> ); }; //function prototype void function( const string sToPlace, …

Member Avatar for Duoas
0
89
Member Avatar for picass0

i understand how to create a socket and assign a port to a socket. But how can i make a for loop to auto assign 21 ports to it? need some helps!!!

Member Avatar for picass0
0
97
Member Avatar for yelugamraghu

How can we type cast a double number to long. I am getting wrong value, when i am trying to type cast it to long. [code=c] int main() { int s=9; double minuttakst=0.019000; int takst_enhed=60; double antal_minutter, beloeb; antal_minutter = (double) s / (double)takst_enhed; beloeb = ((double)((long)(((antal_minutter * minuttakst) * …

Member Avatar for jephthah
0
273
Member Avatar for bindiK

I need help immediately to solve the following question: can somebody suggest how to code the following? Write functions OpenFiles and MergeAndDisplay: OpenFiles syntax: ifstream *OpenFiles(char * const fileNames[], size_t count); Parameters: fileNames - a pointer to the first element in an array representing the names of text files to …

Member Avatar for bindiK
0
206
Member Avatar for inshi

hello everyone, i badly need your help well, i have already implemented my chatroom in [B]PHP[/B] which runs perfectly on a single computer. however, when i have tested the chatroom over a network where atleast 2 computers accessing my chatrrom, [B]it appears on 2 separate frames[/B] that is, if 2 …

Member Avatar for somedude3488
0
107
Member Avatar for abolbridge

I keep getting this error and I can't figure out why. Here is my code: <% set conn = server.createobject("adodb.connection") set rs = server.createobject("adodb.recordset") conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("/data/newsleepermedia.mdb") & ";Jet OLEDB:database" rs.open "select * from Prices WHERE id=" & request("idnum"),conn,3,3 if not rs.eof then do while not rs.eof response.write …

Member Avatar for abolbridge
0
135
Member Avatar for Nemoticchigga

All my communication using this delegate and function are great between forms, but this thread for receiving compiles and all, but then throws this error. I have posted the important sections of my code. If you think I need more, let me know. Thanks. I am getting a Cross thread …

Member Avatar for Ancient Dragon
0
91
Member Avatar for ivy47469

Hi everyone, I am new to Python, I am stuck with this problem. "If your initially deposit $10000 into the account, and earns 6% interest per year, to meet your monthly expense, at the beginning each month you withdraw $500, how long the account will be depleted? if you withdraw …

Member Avatar for kdoiron
0
124
Member Avatar for Tyrfing

Hello, I have a program that generates several 1-dimensional arrays that I would like to conduct data analysis on. I was wondering if there was some sort of python tool (or module, or anything) that could write these arrays to a column of a spreadsheet ( in OpenOffice formatting). Is …

Member Avatar for kdoiron
0
168
Member Avatar for athirar

While executing programs with large lists ,i am encountering an error message: Index error:List index out of range The program works well with small lists..Can anyone suggest me some efficient methods to handle this problem?or Is there any other efficient datastructure other than lists and dictionary to serve the purpose …

Member Avatar for kdoiron
0
118
Member Avatar for kanjali

Hi , I want to add new windows form in the present windows application. Which should be used to get some details from user and then i want those information back into my main form. Please help me to do this. I tried but iam able to show those in …

Member Avatar for kanjali
0
127
Member Avatar for deerslayer

Forwarn I am a newbe to the coding word! I am writing an application to open a 'machine code' file, in .txt format, to edit a value, save and close the file to the same directory. I have been successfull using a listbox to show all files, with the correct …

Member Avatar for chamsups
0
114
Member Avatar for yelugamraghu

[code=c] int main() { int antal_sekunder=9; double minuttakst=0.019000; int takst_enhed=60; double antal_minutter, beloeb, beloeb1; antal_minutter = (double)antal_sekunder / (double)takst_enhed; beloeb1 = ((antal_minutter * minuttakst) * 10000.0) + 0.5 ; //This is used for rounding up to 4 decimals. printf("\n beloeb1 = %lf", beloeb1); printf("\n (long)beloeb1 = %ld",(long) beloeb1); beloeb1 = …

Member Avatar for jephthah
0
134
Member Avatar for ryy705

Hello, The following is a code excerpt I found on the web. Could someone please tell me where I can find information about how to use [I]$$[/I] variables and [I]${$var}[/I] variables. I have never seen them before. [CODE]foreach ($expected as $formvar) $$formvar = (isset(${"_$_SERVER[REQUEST_METHOD]"}[$formvar]))? ${"_$_SERVER[REQUEST_METHOD]"}[$formvar]:NULL;[/CODE]

Member Avatar for nav33n
0
81
Member Avatar for ramiljoaquin

Hi! I don't have access to office on the server. Does anyone know an open source way to generate an xls file for download? Or is there any way of generating a file that upon download will auto open into excel? Thanks ramil

Member Avatar for ramiljoaquin
0
135
Member Avatar for ryanlcs

I am wwondering when is best practice to use pointer. [CODE]class Pen{ .... }; int main(int argc, char *argv[]){ Pen myPen; Pen *myPen = new Pen; } [/CODE] These are 2 ways to create myPen object. But what's the main diff between them? When to use it as pointer and …

Member Avatar for n1337
0
82
Member Avatar for sireesha.c

How to upload video files like wmv,etc in an application folder and how to download that video file in media player usnig asp.net +c#.

Member Avatar for sebastian3
0
108
Member Avatar for asif.ishaq

Hi, Please let me know if anybody knows that how to get schema information of a table (e.g. columns name,data type, key columns.. etc) using c++.I don't want to use system tables query and things like that.I was searching on the net and found CIndexes and other classes but not …

Member Avatar for Ancient Dragon
0
385
Member Avatar for timdog345

[code] //pg 368 #1 /* void initialize (double& h, double& r) { h=0; r=0; } void getHoursRate (double& h, double& r) { cout<<"please enter how many hours you worked. "; cin>>h; cout<<endl; cout<<"please enter your rate. "; cin>>r; cout<<endl; } double paycheck (double h, double r) { double overTime, finalAmount=0, …

Member Avatar for Nick Evan
0
131
Member Avatar for shobha1335

Im developing a Issue Tracker Application in struts,I have one link 'view issue' which displays all the issues as a report, for each record one update link will be there, if we click on update link it has to go to that particular record page with details from the database. …

Member Avatar for shobha1335
0
139
Member Avatar for kinyuadave

Hi there i've just known how to make an exe file now what am asking is how to change the icon of the exe from the default one to one of you choise like in the one cd access program.

Member Avatar for kinyuadave
0
160
Member Avatar for plusplus
Member Avatar for greeny_1984

Hi everyone, Ima working on a business site similar to alibaba.com.In that we have a main categories named agriculture,chemicals ....so on. on clicking on agriculture we get one more subcategory containing different names line plant products,beans so on.. on clicking on beans we get the companies selling beans. similar to …

Member Avatar for tesuji
0
155
Member Avatar for navneet1083

I've fired a query which result some data with the respective count from the table and after that i want to fire a query to get the total number of count on that count which i got it from my first query. Could anyone helps me out to get the …

Member Avatar for tesuji
0
182
Member Avatar for BAEdwards

I am just posting in the hopes that somenone can explain a problem I seem to be having with Turbo C++. My application basically has two forms (Form1 and Form2). Form1 is the main form and Form2 is created dynamically, as the result of a button click event, from Form1 …

Member Avatar for thekashyap
0
168
Member Avatar for sonia sardana
Member Avatar for shankhs

hey I want to input a string that contain spaces such as "My name is Shankhs"; i initialized a string str; then cin>>str; but str is not taking words after spaces as if spaces are acting as a delimiter... i tried gets,getline but they does not seem to work for …

Member Avatar for shankhs
0
101
Member Avatar for zawpai

Hi, Could anyone please check my sample code? I am a beginner in C++. This code is for file comparison. Whenever I run it, the compiling result is always "Usage: compiles <file1> <file2>". I think something is wrong. Please give me some suggestions how to go through the code. Best …

Member Avatar for mitrmkar
0
160
Member Avatar for cebubinary

HI guys. Im a student and studying c++ that and cmd and so far i stil havent figure out how to change my current dir while my program is running. My program is that i want to make a test.txt file with a "my test file" inside it , in …

Member Avatar for Nick Evan
0
253
Member Avatar for bindiK

Hi, I need solution to this immediately. Can somebdy suggest what needs to be done in the following program: Write functions OpenFile and DisplayColumns: OpenFile syntax: void OpenFile(const char *fileName, ifstream &inFile); Parameters: fileName - a pointer to the name of the file to be opened inFile - a reference …

Member Avatar for Nick Evan
0
126
Member Avatar for plusplus

Can I change an existing form to a masterpage, or can a masterpage only be defined when creating the form

Member Avatar for plusplus
0
79
Member Avatar for toolbox03

The problem is with this line inCustomerDetails[i].getCustomerProduct(productName, productID, unitCost, quantityPurchased, x); data.txt 5 Angie Ang S1234567 Y 4 Choco P0001 5.50 2 Rice P0002 10.00 1 Bread P0003 2.00 1 Chicken P0004 7.50 1 program code [code=cplusplus] #include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; class Product …

Member Avatar for Nick Evan
0
146
Member Avatar for kousarrabiya

Hi, Iam trying to put username and password in some dat file(ADMIN.DAT)from changeLogin page and getting/retreiving username and password from another page from ADMIN.DAT file.... My problem is username and password details are getting stored in dat file in readable text format NOT IN BINARY.. Writing into file part is …

Member Avatar for kousarrabiya
0
114
Member Avatar for mrcniceguy

The code is sending for profile comment,I dont know what is wrong with my code because when i click the POSTCOMMENT button It just gives a blank Page,with no Error desplayed or Any message. And actualy the Datas are not sent. <?php //Connect to the database server $dbcnx=@mysql_connect('localhost','root','650715'); if(!$dbcnx){ exit('<p>Unable …

Member Avatar for nav33n
0
106
Member Avatar for cobaltbass

I'm having a little trouble with some code. I'm writing a library management program. I need to be able to input title, author, isbn, etc. in the program. When the program asks for the isbn it behaves as expected. When I enter any words the program terminates, but if I …

Member Avatar for Nick Evan
0
111
Member Avatar for ArchiMedes

Hi, I'm new around here & newish to VB 6.0 as well! :cheesy: I'm using VB 6.0 to create a random access file, which has 2 fields per record . I know that all the records must be of equal length, but am wondering if there is a practical limit …

Member Avatar for ahmbil
0
713
Member Avatar for sonia sardana
Member Avatar for nuaris

Lists have the append() function to add an item to the end of the list. Is there a similar function to add to the end of dictionaries? Update() doesn't seem to work. Example: >>> a = {'a':'a'} >>> b = {'b':'b'} >>> c = {'c':'c'} >>> a {'a': 'a'} >>> …

Member Avatar for nuaris
0
749
Member Avatar for Vai

After logging in, main.php is loaded and instead of displaying the correct included page, it displays Main Page. So what is wrong w/ my code? Thanks in advance for any and all help... [code] this is placed inside the "main.php" <?php require('core/db.php'); require('core/check.php'); ?> This is placed inside the check.php …

Member Avatar for somedude3488
0
176
Member Avatar for bazwacky

Hi I am quite new to php and mysql, i have built a property website and i am getting stuck with the paging of the results I can get the paging to work fine when i set the variables manually but when the variabes like type and price come from …

Member Avatar for sagedavis
0
186
Member Avatar for Hockeyfreak889

I need to make a program that outputs a random number between 1 and 10 every half of a second. Right now i dont know how to generate random numbers or use a timer so i need lots of helf here.

Member Avatar for Ancient Dragon
0
93
Member Avatar for axn

i can write to the file with no issues, but cant read. i have defined the file to append so as not to overwrite data. then i write to it [B]log_file.writelines(lines)[/B] but the reading wont work?? [B]log_file.readlines(lines)[/B] and thought i could just use log_file = open('%s' % os.path.join(logfile_path, file), 'a+r')

Member Avatar for bvdet
0
104

The End.