132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sikeufoo

[CODE]while (y==1) { float discount,addcost; pricetopay=calpricetopay(ty,pricetopay,addcost,discount); cout<<endl; cout<<endl; cout<<"\t\t\tTOY TOY Shoppie"<<endl; cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; cout<<endl; cout<<"Name of item:"<<ty.name<<endl; cout<<"Price of item:"<<ty.price<<endl; cout<<"Made in:"<<ty.madein<<endl; cout<<"Manufactured Date:"<<ty.date.d<<"/"<<ty.date.m<<"/"<<ty.date.y<<endl; cout<<"Price to be paid: "<<pricetopay<<endl; cout<<"Do you want to proceed with another transaction?"<<endl; cout<<"If yes, Please type '1'. If no, please press 2 to quit."<<endl; cin>>y; }[/CODE] …

Software Development c++
Member Avatar for Fbody
0
135
Member Avatar for clibbon

Hi I am relatively new to Python so forgive me if I have missed an elephant in the room so to speak. My code has worked for the whole day, but this afternoon I have begun receiving the error [CODE]Traceback (most recent call last): File "C:\Documents and Settings\King Alex\My Documents\Summer …

Software Development python tkinter
Member Avatar for Maxim13
0
1K
Member Avatar for Dragonator

Hello. First of all I'd like to say HI to everyone. I've recently joined this community and this is my first post. I have a class called Numerical Calculus where the assignments often require the input and representation in a GUI of various matrices. So I've been looking for ways …

Software Development display gui matrix-multiplication
Member Avatar for Dragonator
0
1K
Member Avatar for amol14007

I have been trying searching the net, for source code for converting RTF file to text file in c/c++. The source that i get is in RTF file format which conatins is specific tag but i need to convert it to simple text file and upload it.. Any source link …

Software Development c++ file-system
Member Avatar for amol14007
0
222
Member Avatar for donazri

Hello guys. I'm trying to create a program, that reads a file, and create an output. Here's the questions: Write a program to compute numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the …

Software Development c++
Member Avatar for LevyDee
0
187
Member Avatar for jeffery12109

I'm not sure what this means... TypeError: 'NoneType' object is not iterable here's the code [CODE]day, season, help4, myGame = karidInn(day, season, help4, myGame)[/CODE] that's where are call the def function [CODE]def karidInn(day, season, help4, localGame): if chooseLocation == "13": print chooseLocation while help4 == 2: print 'Welcome back to …

Software Development python
Member Avatar for jeffery12109
0
4K
Member Avatar for blainegeneral

I have been trying to figure out where this is comming from: [CODE]1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall StudentList::getStream(class std::basic_ifstream<char,struct std::char_traits<char> > *)" (?getStream@StudentList@@QAEXPAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@@Z) referenced in function _main 1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall StudentData::StudentData(void)" (??0StudentData@@QAE@XZ) referenced in function "public: __thiscall StudentList::StudentList(void)" (??0StudentList@@QAE@XZ) …

Software Development c++
Member Avatar for Salem
0
208
Member Avatar for bigt666

I've been working on this program and can't seem to understand how to print an output file of the calendar of July. Is there any help I can get? This is the code: [CODE]//---------------------------------------------------------------------- // // This lab exercise is to practice rand(), srand() and // output formating with help …

Software Development c++ file-system
Member Avatar for WaltP
0
227
Member Avatar for Voltron160

This program sorts in descending order. Hey guys, I am wondering if I could get some help with making this bubble sort program sort recursively. Any help would be appreciated, thanks. [code] #include <stdio.h> #include <conio.h> #include <iostream> #include <stdlib> #define TRUE 1 #define FALSE 0 void bubble (int[], int); …

Software Development c++
Member Avatar for LevyDee
0
1K
Member Avatar for LevyDee

[code] for(.........) { for(.........) { swap } } [/code] Is there really a better way to sort a one dimensional array then to just use a simple bubble sort? Ive heard arguments against bubble sort before, but what do you guys think?

Software Development c++
Member Avatar for LevyDee
0
88
Member Avatar for antball06

Ok. So I have been researching and compiling info for the past 15 hrs about this. Hope someone can have some helpful input. What I am trying to do is create a program to use for my construction business to help with estimates of a job to make things easier, …

Software Development c++
Member Avatar for LevyDee
0
185
Member Avatar for JonEvans

I'm trying to figure out how to use the max_element algorithm on a vector of structs, rather than POD's like int etc. This is my struct: [code=cpp]struct NameComponents { std::string sValue; std::string sDescriptor; int nOrder; int nStatus; // Construtor. NameComponents( std::string inValue, std::string inDescriptor, int inOrder ) : sValue( inValue …

Software Development algorithm c++
Member Avatar for Banfa
0
142
Member Avatar for kxh29

Hello All: I want to create an array of structures like so: [CODE] #define MAX 10 struct hash_tbl { int key; int data; }; struct hash_tbl hash_array[MAX], *ptr; [/CODE] Now, I am having some issues in attempting to "loop" through my array of structures and just generate the some data …

Software Development c
Member Avatar for kxh29
0
250
Member Avatar for toko

Okay, i have an 8X8 grid, i want to use control arrays to create labels instead of creating each manually so that it is less repetitive code and easier to control when i try to switch the colors of each label on the gird. [CODE=c#]namespace app1 { partial class Form1 …

Software Development
Member Avatar for toko
0
102
Member Avatar for lrolsto1

Alright, this is for a project designed to make us use inheritance. This is Creature, which is a subclass of Thing. Creature is supposed to be able to eat, move and tell what it ate. Here are my issues: 1. How do I use a constructor from Thing in Creature? …

Software Development java
Member Avatar for LReynolds
0
74
Member Avatar for aianne

Hi! I need help to my c++ program. I created a program that is much like the "Who wants to be a Millionaire" television show. It has questions and the right answers and three lifelines. How can I possibly do eliminate a lifeline after being used.? this is the program …

Software Development algorithm c c# c++ printer
Member Avatar for WaltP
0
223
Member Avatar for vbcielle

how will i round off the return value to decimal place with tis function? [code] unsigned int CalculatePercentage(int TotalComponent, int PartialComponent){ return int((PartialComponent/TotalComponent)100); }[/code]

Software Development c
Member Avatar for WaltP
0
212
Member Avatar for jxmst32

I am currently writing a program in Netbeans which will perform binary to decimal, decimal to binary, hexadecimal to decimal, decimal to hexadecimal conversions, 1's compliment, 2's compliment, and show the list of boolean algebra rules. I have created the GUI however, I cannot figure out how to make the …

Software Development gui java java-netbeans java-swing
Member Avatar for phoenix911
0
366
Member Avatar for rumi

hi.im facing an error that says 'syntax error in FROM clause'.i dont know where i went wrong because it used to run smoothly.from my research about this error,it seems each solution is unique,it doesnt relate to what im doing.can anyone please help?here are my codes: [code] Private Sub Cmd_Login_Click() Adodc1.RecordSource …

Software Development visual-basic
Member Avatar for Logica
0
482
Member Avatar for sanju_sql

I have a select statement as below. select * from candidate where resume REGEXP 'JAVA'; i am developing an application for searching resumes. I have a tex box where I can give keywords like Java in about example. The applciation is in MSQL as a back end. I am taking …

Software Development sql vb.net
Member Avatar for sanju_sql
0
82
Member Avatar for endframe

Hello everybody :icon_neutral: I'm having an error in finding the biggest/smallest numbers in an array; the debug result gives me wrong numbers. Here's the code that I have been working on: [CODE]#include<iostream.h> int linearsearch(char b[],char searchkey, int size); void main(void) { const int arraysize=7; char a[arraysize],key; int result,i; int s; …

Software Development c++
Member Avatar for WaltP
0
110
Member Avatar for jackieoh
Member Avatar for BestJewSinceJC
0
107
Member Avatar for DrewS

Hello I need pthread.h library in my program in C and i am using Visual Studio. how can i use threading in C? i visited this [URL="http://sources.redhat.com/pthreads-win32/"]site.[/URL] but i dont know what to download and where to put it. I mean what am i supposed to download- header file or …

Software Development c redhat visual-studio
Member Avatar for jephthah
0
131
Member Avatar for wondering_ed

[CODE]import javax.swing.*; import java.sql.*; public class BankAccountDatabase{ public static void main(String[]args){ Connection conn=null; Statement stmt=null; ResultSet rs=null,rs1=null; String url="jdbc:mysql://localhost/bankaccount"; String username="roo"; String password=""; String query="",query1=""; String accname,accnum,accpin; int PIN,key,menu,AccountNumber; String a,b,c,d,f,g,h,i,j,x,y,z; double dep,withdraw; double balance=0.0; try{ Class.forName("com.mysql.jdbc.Driver"); }catch(java.lang.ClassNotFoundException e){ System.err.print("ClassNotFoundException: "); System.err.println(e.getMessage()); } do{ a=JOptionPane.showInputDialog("MENU\n\n\n1 - Create Account\n2 - Delete …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
159
Member Avatar for keithodulaigh

Hi, I was looking at this tutorial: [URL="http://linuxgazette.net/77/krishnakumar.html"]http://linuxgazette.net/77/krishnakumar.html[/URL] There's an instruction there that says "seg es", my question is whats this instruction in AT&T style? I'm trying to rewrite the code in AT&T syntax and use it with gcc/ld but it gives me an error: "kernel.s:6: Error: no such instruction: …

Software Development assembly
Member Avatar for keithodulaigh
0
144
Member Avatar for Miss Confused

Hi! I'm trying to delete an entry from my database, i have the code written to display the details in a listbox but now i need to write the code do the user can select the item they want to delete and then click the delete button to delete it!????? …

Software Development vb.net
Member Avatar for Oxiegen
0
113
Member Avatar for firebugg

Hi, I am working on an assignment that does the following... When the program starts, it should look to see whether a file is present that contains a serialized array of vehicles. If so, it redisplays them. Otherwise, it generates random vehicles, writes them to a file, and displays them. …

Software Development java java-swing
Member Avatar for javaAddict
0
143
Member Avatar for danturn

Hi Guys, Is it possible to add a string to a list using a static method or am i really misunderstanding this? This is what i'm trying... [CODE]using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace LDAPNOCISCO { class STOREUDPs { private …

Software Development
Member Avatar for danturn
0
885
Member Avatar for donelliewhyte

I am scanning the contents of file and then performing some simple operations. First i want to scan the file for a particular doctor name that works. I have two records in the file but its not incrementing the counter to check patients which belong to that doctor and add …

Software Development c
Member Avatar for Ancient Dragon
0
132
Member Avatar for cp123

Hello all, I just bought a book on Python, and started to go through it (bought it for my children and myself). I'm having a problem importing 'easygui'. I am new to programming. I am trying to program on my Mac. I downloaded easygui to the following:/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ When I go …

Software Development python
Member Avatar for sofiH
0
3K
Member Avatar for mrblippy

Hi eveyone :) I am having trouble understanding some big o notation that i have been given in homework. I have tried reading my text books but nothing makes sense to me well. Below is one of the problems i have been given [CODE=C] #include <stdio.h> int main() { int …

Software Development c
Member Avatar for Narue
0
136
Member Avatar for hkBattousai

[B]MyClass.h[/B][CODE]class MyClass { //... public: template <class T> static void Swap(T& Var1, T& Var2); //... }[/CODE] [B]MyClass.cpp[/B][CODE]template <class T> void MyClass::Swap( T& Var1, T& Var2 ) { Var1 ^= Var2; Var2 ^= Var1; Var1 ^= Var2; }[/CODE] In another file[CODE]#include "MyClass.h" //... int n = 40; int m = 60; …

Software Development c++
Member Avatar for hkBattousai
0
2K
Member Avatar for kd1987

Hello I must implement overloaded + (binary) operator. I have to use method like that: const Text & operator+(const Text &) const . Anyone knows how it may be done ? I know that I can't make new object in function and return it. Ps: Class Text have pointer to …

Software Development c++
Member Avatar for Fbody
0
96
Member Avatar for neosonic

Hi All, I have got the multiline textbox in the picturebox. I want to save the whole picture into a bmp file (including the multiline textbox). Is there any easy way to do it? what I have done at the moment is: pic.currentx = textbox.left pic.currenty = textbox.top pic.print textbox.text …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
657
Member Avatar for gerard4143

Hi, I have a simple question about the Linux Shebang '#!'. Well more of a clarification of how Linux handles #!. My understanding.... When the operating system 'Linux' encounters an executable file with the first characters #! it will extract the absolute path for the executable from this line..i.e. #! …

Software Development c operating-system
Member Avatar for gerard4143
0
330
Member Avatar for jakewebb

Hi I am attempting to write a playlist for my media player which is already built. I have found a way to build a playlist for it but it would be helpful if I could save the contents of TextBox1 to a text file without using the save as. I …

Software Development file-system vb.net
Member Avatar for jakewebb
0
1K
Member Avatar for tajendra

Code portability basically refers to making source code able to compile on different platform without making any changes in source code. While coding its very important to keep portability in mind.The best way to introduce code portability is while coding.Keeping certain things into account we can achieve code portability with …

Software Development c++ visual-basic visual-studio
Member Avatar for tajendra
0
472
Member Avatar for pepsy11

Hello.. I am making a program where i use an sql database to storage user information, but i cant figure out how to add a new record that actually stays in the database, i have found some different codes but they only add the record "locally", so when i close …

Software Development c# sql storage
Member Avatar for amitshrivas
0
562
Member Avatar for w0rk4holic

how do i generate all the topological ordering of (directed acyclic graph), i have written a program that can find 1 topological ordering, the problem is once i am finished i am left with a empty linked list as my algorithm involves deleting the traversed nodes which is crucial for …

Software Development algorithm java linked-list
Member Avatar for ericklesterbran
0
820
Member Avatar for mmgoicochea

Hello everyone so this is the piece of code i'm wokingon.. the program ask to input an integer. If the integer is even the program will divide it by two and if the integer is odd the number will be multiplied by three and then after it is multiplied it …

Software Development c++
Member Avatar for mmgoicochea
0
1K
Member Avatar for Tiny_trixer

Hi everybody! I'm currently working on an assignment for school. I'm creating a linked list (a line at the liqure store to be exact) and I'm a little stuck. Part of the code: [CODE] public void ekspederKunde() { System.out.println("Velkommen til polet! Vennligst vis gyldig legitimasjon.\n"); if (fremst == null) { …

Software Development java linked-list
Member Avatar for Tiny_trixer
0
121
Member Avatar for danturn

Hey guys, I'm a bit stuck with this issue... I have a list of comma separated strings. some of them have a duplicate field in them. what I want at the end of this process is a List of strings (comma seperated again) with any of the duplicates being marked …

Software Development
Member Avatar for danturn
0
167
Member Avatar for nidhi.knit09

Hi, pls let me know how you created a setup project for 2007 addin which files needs to be added to my add-in project. In 2003 add-in project by default you get a setup project but in 2007 you did not get...... Please help me on this......

Software Development
Member Avatar for emilio
0
308
Member Avatar for nirvana74v

Hi I am getting weird error with oracle connectivity. Immediately after the open() call, the connection shows as closed. I am not able to figure out whats going wrong. The same code works if executed differently. Line: This piece of code throws error [CODE=syntax] bool objState = false; if (Program.orConn …

Software Development c# open-source oracle visual-studio
Member Avatar for nirvana74v
0
428
Member Avatar for ubi_ct83

Hi all, My problem is regarding to my last post about argument. that is solved but it create a new problem. The last data in debug_file is not written in output file. I think its because of looping in the argument.How to solve this? [code] int main(int argc, char* argv[]) …

Software Development c file-system operating-system
Member Avatar for ubi_ct83
0
117
Member Avatar for help_please

Hi i need to change the random numbers in my output to random 'b''s that take up 2/3 of the array and random 'x''s to take up 1/3. Ive been at it for a few days and still have no clue on what to do. Heres my coding and output: …

Software Development java
Member Avatar for javaAddict
0
111
Member Avatar for y_alhasa

We are asked to write a NASM program that will read a list of 10 2-digit integers, and output them in a column. At the base of the column, give the average value of the set of integers.

Software Development assembly
Member Avatar for MosaicFuneral
0
105
Member Avatar for simplyflawless

hey guys, i have to do this program and i'm having trouble with this certain part: Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, …

Software Development java java-swing
Member Avatar for phoenix911
0
164
Member Avatar for may781

Hey:) I am creating a project in java,but have been sick for the passed 3 weeks, so I am a bit stuck on how some of the code should look,and where it should be the details are that I am required to develope an application that will allow the user …

Software Development java java-swing
Member Avatar for jwenting
0
108
Member Avatar for mebob

for my own satisfaction, im trying to make a program that does AES encryption, but ive run into a problem: i cant find an efficient way to us the s-box, and i would rather not have a switch statement with 256 cases. what could i do to do this effieciently.

Software Development c++ encryption
Member Avatar for robertl2
0
160

The End.