132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for star289

I have this assignment and I got most of the program but I cant seem to make the counter work right what am I doing wrong? [code=cplusplus] #include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; int main() { int num1, num2, number; cout << "Please enter an …

Software Development c++
Member Avatar for star289
0
95
Member Avatar for Nepenthe8

Hi all I need help with C++, I need to develop a class specification and an irregular polygon application. I am stuck and don't know what to do.I have tried to solve it but it keeps giving me errors. If anyone is kindly to help me out, I would be …

Software Development c++
Member Avatar for iamthwee
0
122
Member Avatar for nurulshidanoni

I have this to file.First [B][U]ayam.txt[/U][/B] 10 20 30 60 90 50 40 [U][B]and itik.txt[/B][/U] a b c d e f g h i How to call read and write the ayam.txt and itik.txt into one file. which first i would like to cout the ayam.txt and then itik.txt.

Software Development c++
Member Avatar for scarface3288
0
148
Member Avatar for jmines

I am trying to make an array of strings in C++. The problem is this that i need the strings to be multiline. Is this possible in C++? how can we do it?

Software Development c++
Member Avatar for jmines
0
90
Member Avatar for yotamlem

Can any one help me, I need to find\build a tool that converts TDateTime (number) in to string that is the date it represents. I want to put this in the Delphi 5 environment as a button or addon or somthing.... Thanks.

Software Development delphi pascal
Member Avatar for jsosnowski
0
89
Member Avatar for k2k

can anyone please point out what's wrong with the files linking? i have this compiling errors: 1>c:\documents and settings\lih\my documents\visual studio 2005\projects\employee\employee\hourlyemployee.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\documents and settings\lih\my documents\visual studio 2005\projects\employee\employee\hourlyemployee.cpp(4) : error C2550: 'HourlyEmployee' : constructor initializer …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
130
Member Avatar for haukee

Hi there everybody, I really have my difficulties with loops ;) I want to creat a cube with 10 x10 x1 (1 is like thickness, but as I have to create a mesh subsequently I can't do it with geometric properties) Plz help :)

Software Development python
Member Avatar for vegaseat
0
136
Member Avatar for julia07
Member Avatar for lookforlohith

[code=cplusplus] #include<iostream> using namespace std; class item { int itemno; int itemprice; public : static int total; void getprice(); void printprice(); friend void calculate(item a); }; int item :: total=0; void item :: getprice() { cout<<"Print item number \n"; cin>>itemno; cout<<"Print item price \n"; cin>>itemprice; total++; } void item :: …

Software Development c++
Member Avatar for lookforlohith
0
646
Member Avatar for nish88

have you ever heard of pycage.???? i want to have its windows version. if it exist????;) can you please give me the links where i can download it and get some tutorials about it.:P thank you very much

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for gehad3003

Hi I finally upgraded a code for password i hope you like it. [CODE] #include <conio.h> #include <iostream> using namespace std; int main() { char *tempPassword = new char; cout << "enter your password: "; char ch = _getch(); int j = 0; while (ch != '\r') { if (ch …

Software Development c++
Member Avatar for Narue
0
131
Member Avatar for Amy

Hello there, I will soon start programming with DIGITAL Fortran V6 developer studio at Univ and would like to install the same software in my machine at home. I have been told that in order to create and debugg projects from a FORTRAN environment I need to have MS Visual …

Software Development c++ visual-studio windows-xp
Member Avatar for paoconnell
0
242
Member Avatar for richasr1

Hi, I'm relatively new to C++ Builder and the language itself, and my code is now becoming quite long. I was looking to take advantage of using a seperate class for certain methods, however I've come across a problem. Here's an example of my code in the new class; [INDENT][CODE]TShape* …

Software Development c++
Member Avatar for richasr1
0
363
Member Avatar for spoorthisri

Please help me how to write into XML file using VC++ 6.0 this is example code where i am not able to write the data into XML File this is ScanComputer.cpp where i am trying to try into XML file [code=c++]void CScanComputer::saveParameters(const char *filename) { ParamIO outXml;//ParamIO.h is pasted below …

Software Development c++ file-stream xml
Member Avatar for spoorthisri
0
252
Member Avatar for nish88

hi everyone i'm trying to make an animation and at the end i am getting a rectangle by using lots of small rectangle. it is not so attractive. what i want is that while the animation is being performed,[B] some of the small rectangles that i am using are deleted …

Software Development python tkinter
Member Avatar for nish88
0
86
Member Avatar for Ints

I have a c program that I need to use in dos 5 but i haven´t found a way to do so .Programs that work perfectly in Win XP console window, will not work in dos.Does anyone know : What do i have to add to my code so it …

Software Development c c# c++
Member Avatar for jephthah
0
133
Member Avatar for gretschduojet1

Hey everyone, I haven't been here in sometime but I'm in need of some guidance. One of the questions I have is how do I enter the name, length, and time for each course? Thanks in advance for the help. Here's what I'm supposed to do: Using OOp inheritance and …

Software Development c++ oop
Member Avatar for Agni
0
128
Member Avatar for ilias_de

Hey , i am trying to make an encryption program . With any codes i've found until now i didn't manage to solve my problem . my problem is about saving my data from a multiline text box to a text file . Basically i want , by clicking on …

Software Development encryption vb.net
Member Avatar for vadiraj
0
85
Member Avatar for Noliving

Here is the problem: Does the recursive algorithm for raising x to the power n work for negative values of n? Does it work for negative values of x? Indicate what happens if it is called for each of these cases. Here is my answer for the above: It's a …

Software Development algorithm java
Member Avatar for Noliving
0
240
Member Avatar for roachic

Hi everyone. I am trying to generate a certain number of sliders on my CDialog, that certain number is not fixed. I managed to make the sliders appear fine by doing this: [code]for certain length{ [INDENT]CSliderCtrl *tracker = new CSliderCtrl(); tracker->Create(WS_CHILD | WS_VISIBLE, CRect(left, top, right, bottom), this, i);[/INDENT] }[/code] …

Software Development c++
Member Avatar for roachic
0
116
Member Avatar for Jacky1

Hi I'm trying to test my code but I keep getting some kind of strange errors bst.hpp: In member function `void Bst<generic>::insert(generic) [with generic = int]': test_BST.cpp:30: instantiated from here bst.hpp:36: error: invalid conversion from `int' to `int*' bst.hpp:47: error: ISO C++ forbids comparison between pointer and integer bst.hpp:52: error: …

Software Development c++
Member Avatar for Jacky1
0
2K
Member Avatar for electromania

Hi, Im reading a file, with 2 columns. this is working such as [code] 1999 5848946 2000 5458445 2001 5757585 2002 7699865 2003 7459758 2004 5797054 [/code] as Im reading I want to be able to count how many rows I've read and also add the all values as im …

Software Development c
Member Avatar for electromania
0
104
Member Avatar for skelly16

Hi All Im having issues with my mail command sending data from my script. I have a korn shell script which logs onto a database and does a few select statements. The problem is i think the EOF stops my mail command sending the data. Im able to run the …

Software Development shell-scripting sql unix
Member Avatar for eggi
0
781
Member Avatar for evios

hi...i am working on visual basic 6 and i need to pass the value to the database MySQL via ODBC, it is working fine juz leaving a small bug here, the code shown below: If player X wins, data below will be stored at MySQL: [code] blnAddMode = True rs.AddNew …

Software Development visual-basic
Member Avatar for fujilec
0
124
Member Avatar for strictlycustom

I'm trying to call up the pay, overtime, and totalpay that I get out of the second function. How do I do that? I think that's my problem. I get the following errors when I run the program: [code]How many hours did you work? 50 What is your rate of …

Software Development python
Member Avatar for strictlycustom
0
3K
Member Avatar for veronicak5678

I am trying to write a program with a Month class that will take a month as input, then display the previous and next month. It should use overloaded prefix+++ and -- operators and postfix ++ and -- operators. My month is decrementing, but when it should display the incremented …

Software Development c++
Member Avatar for veronicak5678
0
108
Member Avatar for ElectorCount

I have a question regarding random number generators. I have already looked at the thread teaching me how to generate random numbers. My question is, is there a way for the generator to only generate one number 4 times? i am trying to randomly generate a deck of cards where …

Software Development c++
Member Avatar for VernonDozier
0
337
Member Avatar for fruitkiwi

This code is provided as shown in below Now i would like to simplify it and hope someone can share wif me . Thanks [COLOR="Green"]Instruction User is required to enter a Roman number to be converted Decimal number. The symbols used in Roman numeral system and their equivalents are given …

Software Development c
Member Avatar for jephthah
0
191
Member Avatar for fruitkiwi

This is a question i copy from others,and i write the code but nid u to help figure out problem. User is required to enter a sentence in English to be transformed to Pig-Latin form. To transform a word to Pig-Latin form, the first letter of the word beginning with …

Software Development c
Member Avatar for jephthah
0
159
Member Avatar for D boss

Hi ppl, i am trying print a txt file from within my java code, here is the code i have done so far but i am getting some runtime errors, also i am trying to keep the coding to a minimum...any help would be appreciated, -------------------------------------------------------------------------------------------------------- package AddRFSwitchPac; import javax.print.*; …

Software Development java
Member Avatar for D boss
0
578
Member Avatar for Brent.tc

Hi all, I have a few general questions that need answering: 1) Is there a way for an application to run a few final commands before it closes (this one is for all applications, not just windows) 2) Is it possible for a window to 'see' the application that sends …

Software Development c++ window-manager
Member Avatar for Ancient Dragon
0
146
Member Avatar for R3B3L

I need help storing data in archives, I always get an unhandled exception when i try... [code=c++] #include"Inventory.h" #include"CustomerTransaction.h" #include <fstream> using namespace std; CarInventory* car_list; int main() { SLL<Customer>* customer_list = new SLL<Customer>; car_list = new CarInventory(); fstream file; file.open("Models.txt", ios::in); if (file.fail()) { cout << "\nFailed to open …

Software Development c++ ios
Member Avatar for Salem
0
84
Member Avatar for kharan

Hello: Please help me to solve this: >>> def printA(): ... try: print a ... except NameError: print 'variable undefined' ... >>> printA() variable undefined >>> a = "foo" >>> printA() foo >>> I tried to do the same think by importing a file "test.py" which has the function 'printA()' …

Software Development python
Member Avatar for vegaseat
0
105
Member Avatar for tvisha

Hi all I tried to run this code on C and I m gettin this error can anyone help me solve it ? also what is an intializer in C? what does it mean when the error says in line 5 about expected intializer before C? "C:\TurboCPP\c_work\DECQDER3.C|5|error: expected initializer before …

Software Development c
Member Avatar for Majestics
0
659
Member Avatar for lemichelle

Hello, From within a function, I'm trying to give data to certain members of a struct that I created. The struct also has an enum type that I created in it. Say this is the struct and the enum: [code] typedef enum {cat, dog, rabbit} Animal; typedef struct { Animal …

Software Development c
Member Avatar for lemichelle
0
94
Member Avatar for computer engW

I have some questions ,i can't solve it .The first one is, Write a C++ program using the switch statement that does exactly what the following program does: [ICODE] #include <iostream.h> #include <math.h> void main () { float number; int choice; cout<< "Enter you number"; cin>> number; cout << "Enter …

Software Development c++
Member Avatar for computer engW
0
131
Member Avatar for echocoder

I am trying to determine a way to create a timeout for a connection attempt to remote Oracle databases. If the connection isn't created in X seconds or less, regardless of the reason, I need to stop the connection attempt and report a message. Below is the relevant bit of …

Software Development java oracle
Member Avatar for echocoder
0
338
Member Avatar for g_loughnan

Hi guys, I haven't a clue why this won't compile! I think the compiler is confusing multiplies as pointers. Here's my code: [code=c] #include <stdlib.h> #include <stdio.h> #include <math.h> #define pi 3.14159265; double data[] = { -0.15709,-0.25413,-0.1545,-0.011505,-0.052141,-0.24125,-0.28251,0.020464,0.48291,0.69804,0.46961,0.019997, -0.26036,-0.22194,-0.059284,-0.027764,-0.14373,-0.21843,-0.14153,-0.030971,-0.060482,-0.19966, -0.217,0.037288,0.41287,0.58642,0.40239,0.036834,-0.19954,-0.1839,-0.06484,-0.042241,-0.13189,-0.18949,-0.12998, -0.044059,-0.064511,-0.16527,-0.1656,0.048371,0.35412,0.8441,0.76091,-0.086579,-0.56076,-0.38969, -0.0037447,0.066327,-0.19043,-0.35463,-0.18658,0.055369,-0.015147,-0.35243,-0.4718, -0.038401,0.66734,0.99976,0.64583,-0.038856,-0.43599,-0.32307,-0.031074,0.023928,-0.17255,-0.29875, -0.16944,0.016309,-0.037833,-0.29157,-0.36583,-0.0038886,0.56681,0.834,0.54992,-0.0043523,-0.33768,-0.2678, -0.048722,-0.0065075,-0.15722,-0.25426,-0.15463,-0.011604,-0.052198,-0.24126, -0.28247,0.020554,0.48303,0.69817,0.46973,0.020092,-0.26031,-0.22194,-0.059329,-0.027849,-0.14384,-0.21855, -0.14164,-0.031061,-0.060533,-0.19967,-0.21696,0.037369,0.41298,0.58653,0.4025,0.036919,-0.19949,-0.1839,-0.06488, -0.042318,-0.13199,-0.1896,-0.13009,-0.044141,-0.064557,-0.16527,-0.16556,0.048444,0.35422,0.84421,0.76101, -0.086502,-0.56072,-0.38968,-0.0037807,0.066258,-0.19052,-0.35473,-0.18667,0.055296,-0.015189,-0.35243,-0.47177, -0.038335,0.66742,0.99986,0.64592,-0.038786,-0.43595,-0.32307,-0.031107,0.023865,-0.17263,-0.29884, -0.16952,0.016243,-0.03787,-0.29157,-0.3658,-0.0038291,0.56689,0.83409,0.55,-0.0042893,-0.33765,-0.26779, …

Software Development c
Member Avatar for g_loughnan
0
104
Member Avatar for LODEY

have a bit of an issue trying to obtain some data from a csv file using PERL. I can sort the file and remove any duplicates leaving only 4 or 5 rows containing data. My problem is that the data contained in the original file contains a lot more columns …

Software Development file-system perl
Member Avatar for KevinADC
0
124
Member Avatar for fujilec

hi....i got one simple question...how to make the caption background transparent? and, is it possible to have animation GIF on message box? hihi thank ya

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
70
Member Avatar for chipo

Im new to Vb. I have created a simple database and its working fine. I want to implement a search function to my database. Iam also receiving an error when itry to edit a record. The error message reads you changes were not effected becaus ethey would create duplicate records. …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
82
Member Avatar for jephthah

okay, experts, i need help. i can't seem to replace characters in a file, like i thought i would be able to: here's an example code. i put print and error stuff in there to try and debug. everything seems to be working ... except that my filename is not …

Software Development c
Member Avatar for jephthah
0
286
Member Avatar for 666kennedy

i know that the AND command is && but what are the code for OR? also if i have a program looping through a system and i want to add something to a variable each time through would [CODE] ERRORtotal += ERR1 [/CODE] work? or wat would

Software Development c++
Member Avatar for iamthwee
0
176
Member Avatar for soosai

how to run a c programme on password checking programme parallely..thanks a lot

Software Development c
Member Avatar for jephthah
0
81
Member Avatar for severman

hi all could any 1 knows how to add color to printf? i mean that i want to write a sentence with color in it. thanx!

Software Development c
Member Avatar for zdaxxy
0
127
Member Avatar for LadyFinger

hi, my problem is i want to display date using combo box. user will select da date and it will be save to db. da date will be separate to day, month and year. the main prob is i don't know how to aviod this happen 31/2/2005, don't no how …

Software Development display visual-basic
Member Avatar for nasir1149
0
306
Member Avatar for Jennifer84

I think I just did found this out: [code] Put.str(""); [/code] How is it possible to ´emty´ a std::stringstream. In this case Put contains: 10. [code] std::stringstream Put; int i = 10; Put << i; [/code]

Software Development c++
0
246
Member Avatar for Traicey

I dont know how long I've been trying to figure this out but I havent got to an answer.... I believe that there must be a way of converting an integer to a double or visa versa but I cant think how... I always thought parseInt or parseDouble wud work …

Software Development c++
Member Avatar for Traicey
0
23K
Member Avatar for bis student

hi , my program calculate the area of rectangle , and I have some errors , and dont know how to correct them . this is the program , [CODE] #include<iostream> using namespace std; class Rectangle { private: double length ,width ; public: double getW(); double getL(); void setW(); void …

Software Development c++
Member Avatar for BlackJavaBean
0
200
Member Avatar for AbuShokry

Hey everybody, I have multiple buttons on a form, I need to make them all have the same click event, which displays the name of the sender button. I knew that in order to make them have the same event handler, I should make there delegates refer to the same …

Software Development
Member Avatar for JerryShaw
0
224

The End.