132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gahhon

how to reverse it? i had tried [CODE]#include <stdio.h> void main() { int i = 30; int x; char reverse[31]; char title[31] = "programming concepts and design"; for(x = 0; x >= 0; x++) { reverse[x] = title[i]; i--; } printf("The reverse order is %s\n", reverse[x]); } [/CODE] the result …

Software Development c
Member Avatar for gerard4143
0
235
Member Avatar for KirkK

In this scenario, I have two issues; 1) Why is selection 4 not taking me to exit the program variable? 2) Why is selection 2 telling me I went backward? Thank you in advance! #start and display menu def main(): #fuel fuelUsed = 0 fuel = int(200) feet = int(0) …

Software Development python
Member Avatar for TrustyTony
0
91
Member Avatar for Xufyan

See the code below, [CODE]import java.io.*; class Test1 { public static void main (String arge[]) throws IOException { InputStreamReader values = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (values); String value,store; char ch; System.out.print ("Input String: "); value = br.readLine(); store = ''; int ln = value.length(); for (int …

Software Development java
Member Avatar for Xufyan
0
260
Member Avatar for AdventGamer

I've been working with linked list and i'm currently trying to make my copyList template function work. It should return the head of the new list. Could someone give me some advice on how to fix it, currently i get no output when i try to print the copied list. …

Software Development c++ linked-list
Member Avatar for mrnutty
0
1K
Member Avatar for JDuch

I would like to save the output of the python help() function to a file eg the output of >>> help("modules") [CODE] amongst others i used modfile = open("env:.P_ModList","w") mods = help("modules") print >>modfile , mods modfile.close() [/CODE] to no avail. Is there a solution?

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for mrkaran

if i have two strings say: string str1,str2; then how can i compare them by using strcmp function?

Software Development c++
Member Avatar for NathanOliver
0
102
Member Avatar for TheWolverine

Hi all, I have an issue with a piece of code that I am writing. The problem I'm facing is that I have a base class and a derived class, and the base class contains a pure virtual function. I then want to overload the pure virtual function with a …

Software Development c++
Member Avatar for mrnutty
0
2K
Member Avatar for dss1331

Hi, I've got an assignment regarding the use of gotoxy in for loop,the result i'm supposed to get is this **** **** **** **** **** **** **** **** Please help me out..

Software Development c++
Member Avatar for daviddoria
0
43
Member Avatar for jk_bscomp

Hello everybody!!! Can someone help me on how to create an executable file on java? I made some applications in java but my problem is, I need to compile my program everytime I want them to run ... What I want is to compile my program once and then just …

Software Development java
Member Avatar for nickguletskii
0
167
Member Avatar for anushri

i create a java prog for simple banking purpose.. but its not working properly... when we create account through 2nd option,it work as it coded but if go through 1st option it doesnot access created object but create new one....and unable to perform deposit and withdraw function in created account. …

Software Development java perl
Member Avatar for nickguletskii
0
171
Member Avatar for raj26061990

The two numbers are accepted as Commamnd line arguements and GCD of those numbers are found using a recursive method.

Software Development java
Member Avatar for raj26061990
0
2K
Member Avatar for Beat_Slayer

Aproach to the implementation of K-Nearest Neighbor (KNN) using the Euclidean algorithm. Sample Usage: [CODE]mywork = Words_Works() lit = 'literature.txt' mywork.add_category(lit, 'Literature') # adding files as category comp = 'computers.txt' mywork.add_category(comp, 'Computers') phy = 'physics.txt' mywork.add_category(phy, 'Physics') # saving categories dictionary to file mywork.save_categories() # can be loaded calling load_categories() …

Software Development algorithm python
Member Avatar for Beat_Slayer
0
795
Member Avatar for Your_mum

Hello DaniWeb, I'm relatively new to DaniWeb, and recently decided to come back to an attempt at learning to C++. I just finished reading a particular section on OOP etc. and i have some questions about pointers to objects: like: [CODE] MyClass *Object; [/CODE] Can someone please: 1) Explain why …

Software Development c++ oop
Member Avatar for Your_mum
0
217
Member Avatar for PixelExchange

Hello everyone. I know how to create a .exe file, but I do not know how to "install" my .exe on another persons' computer. I realize that I could just make all images, sounds, etc, into resources, and simply have someone execute my .exe file, but I want to "install" …

Software Development c++
Member Avatar for group256
0
165
Member Avatar for Xufyan

I got to assignment first one was to print the data of two students using different classes and constructors and count the total numbers of records and i've done this. here is the program. [CODE]public class Student { int RollNo; String name; static int stdcount=0; public void print(){ System.out.println ("Roll …

Software Development java oop
Member Avatar for NormR1
0
837
Member Avatar for Hektzu

I have if statement which doesn't return true even though it should. [CODE] std::vector<__int64> numbers; for( __int64 i = 2; i < input; i++ ) { numbers.push_back(i); } __int64 tmp = 4; for (unsigned int i = 0; i < numbers.size(); i++) { [U][B]if ( numbers[i] == tmp )[/B][/U] { …

Software Development c c# c++
Member Avatar for Hektzu
0
107
Member Avatar for trippinz

I have embedded a font SUCCESSFULLY into my program. It works on my computer and on the majority of other computers (all of different versions of Windows OS) HOWEVER For some reason, on some computers, the unicode characters (which normally show up just fine) show up as blanks... Instead of …

Software Development c c# c++
Member Avatar for trippinz
0
125
Member Avatar for AndrewDBrown

Hi, I am trying to read the subject line on all of my emails within: Personal Folders|Inbox\TEST I need to do this on the fly (using late binding) and once read delete the email. I am using VBA within MS Access and to say that I have got stuck is …

Software Development visual-basic
0
89
Member Avatar for enkidu75

I am making a program for my class where I handle equation problems such as: 2a-3b+5c=10 3a-2b-3c=-5 where the answer would be: 5a-5b+2c=5 This is what I have so far. It still isn't perfect cause I still haven't figured out the "=" part. I do have it performing the math …

Software Development c++
Member Avatar for enkidu75
0
99
Member Avatar for skyzer

[url]http://www.gasuinfo.org/planetarysystem/index.html[/url] [CODE]<html> <head> <title>Planetary system</title> </head> <body> <p> Applet</p> <p align=center> <applet code="applet.class" archive="planetary.jar" width="900" height="600" > </applet> </p> </body> </html>[/CODE] if i run my applet from eclipse, then it works fine. in command line i wrote [I]jar cvf0 planetary.jar *[/I], jar file was created and i uploaded it and …

Software Development java
Member Avatar for NormR1
0
130
Member Avatar for raghujosh

I am trying to connect to a SQL server 2008 database from within Eclipse. My SQL server uses integrated authentication for login. Eclipse prompts for integrated authentication , but it is unable to login. I get an error message as "This driver is not configured for Integrated authentication". The sqljdbc_auth.dll …

Software Development java sql
Member Avatar for raghujosh
0
434
Member Avatar for plasticfood

[CODE]import wx class bucky(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,'Frame aka window', size=(400,300)) panel=wx.Panel(self) status=self.CreateStatusBar() menubar=wx.MenuBar() first=wx.Menu() second=wx.Menu() first.Append(wx.NewId(),"new window") first.Append(wx.NewId(),"Open...") menubar.Append(first,"File") menubar.Append(second,"edit") self.SetMenuBar(menubar) if __name__=='__main__': app=wx.PySimpleApp() Frame=bucky(parent=None, id=-1) Frame.Show() app.MainLoop() [/CODE] when i run this program, i get a "self is not defined in status=self.CreateStatusBar()". so i erased that part, and it …

Software Development python
Member Avatar for plasticfood
0
153
Member Avatar for student_

I am trying to make a program which so i can put in orders and have shopping and handling calculated the problem is, each time i run the program there will be a different number of people placing an order, how would i set up a loop that on each …

Software Development python
Member Avatar for vegaseat
0
291
Member Avatar for shahanakazi

Hi.. Can anyone please help me to write the following program: Write a program that will calculate the price to be paid for the development of photographs. The program must use two overloaded functions, each named calcTotal. If the client wants jumbo photographs, and the film is a 36 exposure …

Software Development c c# c++
Member Avatar for shahanakazi
0
93
Member Avatar for Melow

i would need same help, i don't understand why this is not working what i'm trying to do is to make a small slideshow. i searched the web and i saw that this it should be done... my problem is that the JLabel that should contain an ImageIcon doesn't load …

Software Development java wordpress
Member Avatar for tong1
0
164
Member Avatar for johndoe444

If class A has a virtual method and then class B which is subclasses A, overrides that method. Then class C subclasses B. So now C is supposed to inherit B's overriden method, and not A's virtual method. Then if C wants to override B's one it can't because B's …

Software Development
Member Avatar for Zinderin
0
168
Member Avatar for alex9292

I im trying to make a simple program that would create book objects and assign them a price title author and number of pages and the price cant be more than 10 cents per page. the program has to throw an exception if the price is more than that and …

Software Development
Member Avatar for alex9292
0
159
Member Avatar for algoexpert

i am using window 7 .in window 7 tubo c++ does not support full screen mode .i want to use the graphics functions of turbo c.i am unable to use graphics in turbo cin window 7.so please anyone tell me the solution.

Software Development c++
Member Avatar for Kakashi Hatake
0
139
Member Avatar for mahdir24

I'm working on a project from school - airline reservation system. I have a slight problem. I created a class time and another class aircraft. In the class aircraft i have created two private data members of the type time - atime, dtime. Now why does the compiler flag an …

Software Development c++
Member Avatar for mahdir24
0
137
Member Avatar for kiryoku

I need to delete duplicating input.. for example. in a list box I input a a a b b then I want to delete all 'a' the listbox must show: b b i hope there is someone who can help me..thanks!! Public Class Form1 Private Sub btnadd_Click(ByVal sender As System.Object, …

Software Development vb.net
Member Avatar for kiryoku
0
127
Member Avatar for indr

the following is the code... #include<iostream> #include<iomanip> using namespace std; int main() { float start_temp,stop_temp; float step,F,C; cout<<"start temperature:"; cin>>start_temp; cout<<"stop temperature:"; cin>>stop_temp; cout<<"step temperature:"; cin>>step; float i=0; cout<<setw(10)<<"celsius"<<setw(15)<<"fahrenheit"<<endl; cout<<setw(25)<<"celsius"<<setw(15)<<"fahrenheit"<<endl; for(i=start_temp;i<=stop_temp;i=i+step) { C=(5.0/9.0)*(i-32); F=32+(9.0/5.0)*i; cout<<setprecision(2); cout.setf(ios::fixed); cout<<setw(10)<<C<<setw(10)<<i<<setw(10)<<F<<endl; } } and the output for the above code is: start temperature: 0 …

Software Development c++ ios
Member Avatar for Luther von Wulf
0
119
Member Avatar for muniba

plz tell me where i am stuck.how could i solve this package drawing; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.File; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.*; import javax.swing.event.*; /** * * @author */ …

Software Development java java-swing
Member Avatar for nickguletskii
0
122
Member Avatar for mehak gupta

Hey Guys, my code is having some technical error at run time. It shows following error An unhandled exception of type 'System.NullReferenceException' occurred in parserFunction.exe Additional information: Object reference not set to an instance of an object. Can you please suggest me the way to correct it?[code]using System; using System.IO; …

Software Development visual-studio
Member Avatar for mehak gupta
0
102
Member Avatar for Dazaa

Hi, I want to know if I can use the structure pointer -> to access a structure that is in an array. currently I am using this: [CODE] while (inFile.good()){ inFile.getline(cstring,80); [B] (*points[size]).x = strtod(cstring,&pEnd); (*points[size]).y = strtod(pEnd, NULL);[/B] size++; } [/CODE] points is a pointer to an array of …

Software Development c++
Member Avatar for mike_2000_17
0
144
Member Avatar for pallavigupta117

Ive made this calculator using java swing.I want to add new buttons to my frame if user selects 'Scientific' from file menu and remove buttons frome the frame if user selects 'Standard' from the menu. By default it is selected to standard. Write now a new window pops up above …

Software Development java java-swing
Member Avatar for JamesCherrill
0
166
Member Avatar for JDuch

""" Hi i intended to list the built-in function using this function. It seems however to give me the results corresponding with a dictionary. Why is that ? """" [CODE] def showbuiltins(): """ saves the list of built in functions to a file you chose """ blist = dir(__builtins__) print …

Software Development file-system python
Member Avatar for JDuch
0
188
Member Avatar for watery87

Hi guys, im experimenting with vector functions, but are unable to come up with anythin constructive. basically i have this file that contains information. sorta like a friends list. I need to store in an array, and i decided to use vectors for this. Any help please? data.txt [code] <div …

Software Development c++
Member Avatar for watery87
0
79
Member Avatar for mhelal

Hi I have Fedora Core 5 2.6.17-1.2174_FC5 with gcc version: gcc (GCC) 4.1.1 200 60525 (Red Hat 4.1.1-1) everything compiles well, and run smoothly on my machine. But the actual production machine is Linux 2.4.20-46.9.legacysmp with gcc version gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) on the production machine, …

Software Development c++
Member Avatar for swatithakur
0
214
Member Avatar for Dhilip.S

Plsssssssssss help me. i want to retrieve duration of audio file like .wav .dss .mp3 using vb.net code... i m in midst of project .... unable to complete coz of this.. so anyone pls help me

Software Development audio vb.net
Member Avatar for Dhilip.S
0
205
Member Avatar for King_Alucard

I have this code and I am having trouble figuring how to make it run without any errors, can anybody give me some pointers on how to fix it [CODE]#include <iostream> #include <string> #include <iomanip> using namespace std; class TicTacToe { private: char theBoard [3][3]; public: TicTacToe(void); void playOneGame(void); void …

Software Development c++ visual-studio
Member Avatar for VernonDozier
0
463
Member Avatar for hari.sarvothama

The aim of the program is to read contents from 2 files and store it in struct variables.(This is actually a part of another program which stimulates pass2 of two pass assembler) [B]This code works fine.[/B] [code=c] #include<stdio.h> #include<stdlib.h> #include<string.h> struct optbl { char opco[10]; int value; }o_tbl[100]; struct symtbl …

Software Development c file-system
Member Avatar for hari.sarvothama
0
2K
Member Avatar for SVR

I have a parser that builds a list of variables and a list of expressions. I put those into a block expression and compile ... [CODE] var blk = Expression.Convert(Expression.Block(Parser.m_Vars, Parser.m_Expr),typeof(CVar)); var expr = Expression.Lambda<Func<CVar>>(blk); var result = ""; try { var actionX = expr.Compile(); result = actionX(); } [/CODE] …

Software Development
Member Avatar for SVR
0
174
Member Avatar for 3d0army

I am making a new program (obviously). And I need some help. In this program, I have up to 23 text boxes. They are meant to edit a file. Not any type of file, just a file, with no extensions. There is text inside the file though. I have tried …

Software Development visual-basic
Member Avatar for 3d0army
0
207
Member Avatar for pallavigupta117

Ive made this calculator using java swing.I want to add new buttons to my frame if user selects 'Scientific' from file menu and remove buttons frome the frame if user selects 'Standard' from the menu. By default it is selected to standard. Write now a new window pops up above …

Software Development java java-swing
Member Avatar for mikeNIkesT
0
124
Member Avatar for Sismetic

Hi all, Im new to this website, and mostly to any type of programming. Recently Im trying to learn C++(Game Programming), and my father wants me to make him a web-based application, that flashes the window wether there is any sound playing(I believe it's called an audio visualization), I talked …

Software Development audio c++ gui qt
Member Avatar for PixelExchange
0
245
Member Avatar for captainSheepdog

Hi, everybody! I'm currently building a C++ Forms application for my supervisor to track employee sick/vacation time. The program reads each employee's information from a file, and I want to be able to display each employees information in a label. (The binary files have been created successfully and the file …

Software Development c++
Member Avatar for captainSheepdog
0
103
Member Avatar for dflatt

hi, i've writen a function to get a sub array from another array [code] subarray(int* Array, int start,int end) { typedef int* ptr; ptr sub; sub = new int[end]; for(int i=start; i<end; i++) { int j = 0; Array[i]=sub[j]; j++; } for(int l=0; l<end; l++)//added as an after thought cout<<sub[l] …

Software Development c++
Member Avatar for dflatt
0
90
Member Avatar for kiranpvsr

Hi, I get the following output : I dont understand why after the decimal point, the values start changing from 0.13223. The line in the code is temp = temp - 0.001; For the file0 the value of temp is 0.14623 For the file0 the value of temp is 0.14523 …

Software Development java
Member Avatar for NormR1
0
135
Member Avatar for gretty

Hello [B]Would anyone like to share their tips & tricks for debugging functions & whole programs in C++. [/B] I find I suck at debugging :P & really dont look forward to having to go through my functions again to see if there are any loopholes etc so if anyone …

Software Development c++
Member Avatar for Dingbats
0
157
Member Avatar for nekogda

Here's a simple question. Need: => to use scipy special package function in my python prog (python2.6). 1. Downloaded & intalled numpy for python2.6 2. Downloaded & intalled scipy (scipy-0.8.0-win32-superpack-python2.6.exe) tested: import numpy import scipy - everything's ok According to scipy docs, a package needs to be loaded before a …

Software Development mathematics python
Member Avatar for nekogda
0
211

The End.