199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for carlcarman

I wrote this program that reads data from a txt file named books,and then arranges the data by name and price. that part works fine ,my problem is that I want to sum up the total price of the books and display it. I've tried a couple of ways to …

Member Avatar for carlcarman
0
160
Member Avatar for kunlamp

[code=cplusplus] #include<iostream.h> #include<malloc.h> #include<stdlib.h> struct point{ float x; float y; point *next; }; point * create(int count) { point *p,*h,*s; h=(point *)malloc(sizeof(struct point)); if(h==NULL) { cout<<"Malloc memory error"<<endl; } /********************************************Init head**********************************/ h->x=NULL; h->y=NULL; h->next=NULL; /********************************************Init head**********************************/ p=h; for(int i=0;i<count;i++) { s=(point *)malloc(sizeof(struct point)); if(s==NULL) { cout<<"Malloc memory error"<<endl; } cout<<"cin …

Member Avatar for kunlamp
0
128
Member Avatar for Feenix45

Its about the pay system of a shop. The user enters a product ID,the interpreter gets the details from the file and appends it to a list and continues till the products are over. If the user can't enter the ID he can add the product name directly which will …

Member Avatar for Feenix45
0
159
Member Avatar for elsa87

hi everyone the program below is a function that should give the number of items greater than a number entered by a user.(unsorted list ADT) ex: input 3 unsorted list contains: 2 6 8 1 5 9 8 output should be 5 here is my try by there are alot …

Member Avatar for WaltP
0
209
Member Avatar for T4gal

Can anybody help me with learning php? I went to php's website and it's got a tutorial, but the first step is creating a file called "Hello.php" and I can't seem to do that. Is there a special program I need? Or which program should I use? And then it …

Member Avatar for Drosty
0
93
Member Avatar for freelancelote

Hi, the following code works fine, that is, strcpy effectively copies the whole string on temporal to word. [CODE=cpp] char word[20]; char temp[ ] = "hola"; cout << temporal << endl; strcpy(word, temporal); cout << word << endl; [/CODE] However, if I try to use the heap to store the …

Member Avatar for freelancelote
0
140
Member Avatar for ccube921

I only made an on and addition button with actual functions[ICODE] #!/usr/bin/python # gridsizer.py import wx app = wx.App() class GridSizer(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(300, 250)) def On(self, event): x=input("") def add(self,event): return x y=input("") print x + y menubar = wx.MenuBar() file = …

Member Avatar for ccube921
0
121
Member Avatar for 666kennedy

sorry if this a bit of a pain and there are other threads to read about this but can anyone explain how arrays work a bit, i need a quick refresher course. like how they work, are they like the equivalent of stacks in assembly language? and say you set …

Member Avatar for mrboolf
0
115
Member Avatar for tnvkrishna

OS: windows vista 32 bit. I was searching the web for a compiler which has lesser numbers of issues and with good written help available. I am thinking of vc++ or blood shed dev c++ Then I came across this term ANSI ..... Is it necessary for a compiler to …

Member Avatar for jbennet
0
219
Member Avatar for mgorecki

Hello, The file name I want to use is always different, though the directory path name is the same. How can I get the variable to see the same directory path without throwing in the extra quotes? For example, I enter DE000000 for the drawing number. ScriptFileName = Drawing_Number & …

Member Avatar for SCBWV
0
87
Member Avatar for xlx16

i have two questions,please dont tell me that i violate dani web ruls because of my long questions thank u. one: i wrote a program in c,and i compiled it(in borland c),it had no errors(so far so good) then i run it and errors such as: linker error:undifined symbole_line in …

Member Avatar for ArkM
0
96
Member Avatar for NEEDJAVA
Member Avatar for CantDoThis

well im doing a program that should output: A BB CCC DDD EEEE FFFFF using 2 loops. im on Dev-C++ 4.9.9.2 im all new 2 this an this is what i got so far, some help will b great to finish this =] [code=cplusplus] #include<iostream> #include<iomanip> using namespace std; int …

Member Avatar for mujash.techee
0
156
Member Avatar for brechtjah

Hello, I'm experiencing a little problem with what I'm trying to do: I've created a large number of buttons with Photoshop, these however, already look like buttons, and are rounded. However, when I put them on a BUTTON control the button looks ugly because it has another button on it. …

Member Avatar for William Hemsworth
0
131
Member Avatar for shankhs

I was trying to write a program that takes an input from a file which is located in Desktop not the default directory where the program is saved [code] #include <iostream> #include <fstream> #include <stdlib.h> using namespace std; int main() { ifstream fin; string str="C:\Documents and Settings\shankhs\Desktop\ccs\Assignment CCS.txt",temp=""; cout<<str<<endl; for(int …

Member Avatar for shankhs
0
145
Member Avatar for Antenka

Hello everyone, beforehand, sorry for my english... I have to do client - server application. They must interact, using classes URL, URLConnection. I understand, how to send data to server. But I can not realize server work. The common algorithm of server is: 1. Start. 2. Wait for connection. 3. …

Member Avatar for Antenka
0
203
Member Avatar for manzoor

Well see the above code [CODE] int a = 10; int* p1 = &a; int* p2 = p1; // Copies the address right?[/CODE] But what happens here? [CODE]char* str1 = "Hello"; char* str2 = str1; // What happens here[/CODE] I tried this code and when I modified str1, str2 remain …

Member Avatar for mujash.techee
0
131
Member Avatar for cutebab

hi In my windows server with XP OS i hav installed IISv6.1. My problem is when i put .asp file in desktop or in wwwroot of inetpub its gives a message windows cant open this file. generally all thats required for asp file to run is IIS .and its already …

Member Avatar for Drew
0
154
Member Avatar for cproud21

I am getting the following error... init: deps-jar: compile-single: run-single: Exception in thread "main" java.lang.IllegalArgumentException: adding a window to a container at java.awt.Container.addImpl(Container.java:1010) at java.awt.Container.add(Container.java:928) at javax.swing.JFrame.addImpl(JFrame.java:480) at java.awt.Container.add(Container.java:899) at BoardCreator.<init>(BoardCreator.java:40) at Board.main(Board.java:14) Java Result: 1 BUILD SUCCESSFUL (total time: 3 seconds) Here is my code which is a box …

Member Avatar for quuba
0
116
Member Avatar for mrjoli021

I have a file that is tab separated. i read it in as an arraylist<string> how can i print out only the second section of the file?

Member Avatar for Ezzaral
0
171
Member Avatar for afg_91320

i cant seem to find what is wrong with this piece of code: looks good to me-but my hw says it has an error in the code. [code] struct TwoVals { int a = 5; int b = 10; }; int main() { TwoVals varray[1]; varray.a[0] =1; return0; } [/code]

Member Avatar for Narue
0
174
Member Avatar for SOW

Hi, I have a vbscript which calls a batch file. Now I want my vbscript variables to be passed to batch file. Is this possible? Please assist Thanks, SOW

Member Avatar for mgorecki
0
863
Member Avatar for birdie612

I am an amateur when it comes to Advanced SQL but here is the situation. I have a Test Table with data such as below: Name(char) Qty(number) Date (char) Location (char) Test1 1 11/14/08 10000 20050 Test1 1 11/14/08 10000 20100 Test1 1 11/14/08 10000 20000 Test1 1 11/15/08 10000 …

Member Avatar for birdie612
0
109
Member Avatar for cpopham

I am trying to learn VB .NET again. Have not used in a long time. I have bound my controls to my datatable and then I put values into the controls, I then have a button that I am trying to get to add/update the rows to the database. It …

Member Avatar for WaterboyVB
0
204
Member Avatar for djdellux

Hello fourm members this is my first post. I am having a problem with a string in my code and cant figure it out... here is the code maybe someone here can assist me. thanks in advance -dellux *#*#*#*#*#*#*#*#*#*#*# [code=php]<html> <head> <title>Loggin DB</title> </head> <body> <body bgcolor="#82CAFA"> <form method="get" action="loggin1.php"> …

Member Avatar for Andrew Hucks
0
103
Member Avatar for nlblnx

Hi all, Could anyone help me out here.... I'm trying to work out how to write a very simple server and client that I can first send a string through and then send a file to. For example, I'd send the file name and then the actual file. Also, does …

Member Avatar for ddanbe
0
148
Member Avatar for Lokolo

[code] transactionInfo = date + " - " + _strtime( time ) + "New Customer - 1001 - Olly"; [/code] Ok so I've been trying to find it everywhere in C++ reference guides but it seems I can't do the above ^^ (says I cannot add 2 pointers). date is …

Member Avatar for Alex Edwards
0
190
Member Avatar for atish00

I have to make a project today itself on turbo c++ :- It should have OOP. Classes. and use of database i.e I/O on text files. Can anyone suggest a unique topic and I will be asking help related to the same here =)

Member Avatar for atish00
0
79
Member Avatar for quenestil

Hi guys im new to programing, i never programed before but with alot of work and dedication im doing in visual basic 2008 express edition a litle program for a family company that i work with. Is not a comercial program is just a program to have some management on …

Member Avatar for quenestil
0
104
Member Avatar for Elmismo

Hi, I have these errors: --------------------Configuration: IP_devllink_06 - Win32 Debug-------------------- Linking... IP_devlink_06.obj : error LNK2001: unresolved external symbol _DLClose@4 IP_devlink_06.obj : error LNK2001: unresolved external symbol _DLOpen@24 Debug/IP_devllink_06.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. IP_devllink_06.exe - 3 error(s), 0 warning(s) The probloem is that I am …

Member Avatar for ArkM
0
368
Member Avatar for Swarv

All, I have an issues form in a database (MS Daily log) and when you fill in the form it save the data into an issues table. Everytime you do this it gives each issue an ID number (auto number). Basically I want to fill in the form then before …

Member Avatar for Swarv
0
137
Member Avatar for AW08

I'm trying to write a questionnaire that gathers info of the user and then updates a database in Access. I've managed to write the program and everything works up to the point where it updates the database, at which point it displays the error message below: OleDbException was unhandled Syntax …

Member Avatar for dickersonka
0
167
Member Avatar for mapidea

How can we find the next highest value in the binary tree? We have a binary tree and an number is being input. We need to find the next highest number.

Member Avatar for mapidea
0
163
Member Avatar for cproud21

I am to create a menu application for a cell phone company. The user is to select their package, phone, and any additional add ons they would like, and it is to disply the prices. This is by far the most advanced programming I have done to this point and …

Member Avatar for Ezzaral
0
276
Member Avatar for Acidburn

Hey guys, my main thread seems to stop when i start 2 new threads and start them off. It sits and waits for the 2 threads to finish. The two threads are created off a factory class. Is this why? Its not created in the GUI class? Cheers.

Member Avatar for dickersonka
0
65
Member Avatar for DATA777

I am learning to create a database with python. I am using this line of code to populate my table T.insert(2, 'Jones', 'Jack', 15, False, 0.0) And the table is created as follow: T = SDBTable('id=ui', 'last', 'first', 'age=i', 'married=b', 'salary=f') I have a class SDBTable and in it there …

Member Avatar for jlm699
0
109
Member Avatar for mike.mclennan

Hey, I have created a searcher on my companies website that displays products that we sell. It displays the code, price, blah blah blah. basic stuff. but anyways i want to display some information for the product not on the page but on a tooltip like screen. I know a …

Member Avatar for araghuc
0
176
Member Avatar for jcafaro10

Hello, I'm using Java and Python together with Jython and I'm having trouble with some python syntax. I have a custom listener that I want to add to an object. Usually I'd do it like this: class ballCollisionListener(animation.CollisionListener): def collisionDetected(self,event): if event.getSource()==boundary: if ball.getX()<=0 or ball.getX()+ball.getWidth()>=boundary.getWidth(): ball.setXSpeed(-ball.getXSpeed()) elif ball.getY()<=0 or …

Member Avatar for jlm699
0
115
Member Avatar for chebude

I was trying to write the output of a loop on a file. The problem is the writing repeats for each loop. [ICODE]prev_line = "" while line: Total = 0 fields = line.split() N = len(fields) name = fields[0] #sum each 5 fields over the raw: for step in range …

Member Avatar for chebude
0
88
Member Avatar for 0sinner

Hello, This is my first post here. I appreciate any help you guys can give me. I'm having some issues with the technologies listed in the title. I've narrowed this down to a Apache/Tomcat configuration issue (I'm leaning towards tomcat issue). First of all, my setup: Apache 2.2.10 -- The …

Member Avatar for 0sinner
0
199
Member Avatar for les2008

I have designed a program in VB 6, and the problem I need help on is whenever I log off and log back on, all of the windows in my program are blank. How do I refresh them?

Member Avatar for les2008
0
131
Member Avatar for spikeglow

can u pass template class objects as parameters to friend functions of the same class?? i tried sumthin like... [code=cplusplus] template<class T> class array { T a[10]; int n; public: friend istream& operator>>(istream&,array&); friend ostream& operator<<(ostream&,array&);}; istream& operator >>(istream& din,array& b) { din>>b.n ; //size of array for(inti=0;i<b.n;i++) din>>b.a[i]; return(din); …

Member Avatar for vijayan121
0
417
Member Avatar for mgorecki

Hello, I'm tring to set a string variable to be a path and filename to a certain file. I need it to look like: (load "S:\Tools\Tools_Subfolder\MyStuff\\test.txt") But when I try this command: LoadCommand = "(load \"S:\Tools\Tools_Subfolder\MyStuff\test.txt \")" I get: Compile error, Expected End of Statement The cursor highlights the S …

Member Avatar for mgorecki
0
123
Member Avatar for r.anshul

There has been a lot of confusion for Binary to decimal conversion and vice versa. Today morning i came up with some simple self understandable code !!! Binary to Decimal [CODE] #include <stdio.h> #include <math.h> #include <graphics.h> main() { int dec; int total; int power; clrscr(); total=0; power=1; printf("Enter binary …

Member Avatar for r.anshul
0
246
Member Avatar for Fionageo

Hello I am quite new programming in Jython, I am working with DB. I a send SQL Statements, but I want to handle the zero rows in Resulset. rs = dataSource.performQuery(sqlstatement) rs.moveFirst() I dont know which condition has to be set when the Resulset doesnt has any row. When I …

Member Avatar for bvdet
0
152
Member Avatar for nectionplayer

Write a C program that accepts a string from the user.The program is to determine if entered string is a palindrome or not

Member Avatar for Nick Evan
0
109
Member Avatar for omaranwar

Hi every one. This is my first Post. I am an electronic engineer and currently enrolled in MS Embedded Systems Engineering. In my project, i have to interface an Altera DE3 board to a windows based PC and achieve a data transfer rate of 100+ Mbps usin USB port. The …

Member Avatar for Nick Evan
0
229
Member Avatar for Devlan

I've gotten a little bit furter in understanding the general workings of python, and currently I'm fidgeting with classes and objects. I was thinking of the possibilities of having a program with a whole bunch of user defined classes that the user can use (hey, almost a repetitive aliteration there...) …

Member Avatar for Devlan
0
101
Member Avatar for raul15791

Hi, I'm wondering is there any build-in function or component that I can use to create a multi-select dropdown combobox. I try to google for this but most of the solution I found is for web based software. I'm not asking for the whole program. At least something for me …

Member Avatar for dickersonka
0
200
Member Avatar for smnadig

Hi All, Can someone suggest me how to solve the following issue? I have an Excel(macro enabled) consisting a registration form. Based on selection of a certain field, some chosen fields have to be disabled. Example: I have 2 forms , employee and vendor maintainance forms. Based on choice of …

0
101

The End.