199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for golden3159

Hey, guys im stuck on this problem. I'm supposed to make a base pyramid in the format: --------* ------*** ----***** Basically, it takes user input and subtracts two on the next line. (e.g. 5, 3, 1) Right now I can only make it go down one by one, I know …

Member Avatar for Lerner
0
96
Member Avatar for MoOou

I have a question I did not understand if anyone of you understood it please explain to me [B]suppose that m and n are integers and m is nonzero. Recall that m is called a divisor of n if n=mt for some integer t; that is, when m divides n, …

Member Avatar for Lerner
0
292
Member Avatar for jagsrocknfl

I am currently at Kutztown University enrolled in Computer Science II. I am struggling to finish writing the actual cpp for the program, the implementation and header files are finished. Here are the instructions of the program: Recall that a polynomial is a sum of terms in the form, f(x) …

Member Avatar for Lerner
0
2K
Member Avatar for NirmalRS

Hi! I am final year student doing my project on visual C++. As a part of my project i need to merge number of .avi files in to single .avi file. Could some 1 please advice me on a library that i could use to do that. Thanking you, Nirmal

Member Avatar for NirmalRS
0
103
Member Avatar for daviddoria

I have used boost's progress bar (it outputs ***** from 0 to 100% complete) to track the progress of long loops. It would also be nice to be able to see a counter along with that, like if I run 1000 tests, the *'s will go from 0 to 100%, …

Member Avatar for daviddoria
0
115
Member Avatar for danishamman
Member Avatar for BlueNN

I've just started in Python and I'm still feeling my way around, I tried to create a quick program to display "Welcome to Python!" without the quotes. The entirety of the code is this: [code]print('Welcome to Python!')[/code] However, when I double-click on the .py file Python opens up for less …

Member Avatar for BlueNN
0
145
Member Avatar for redhotspike

Working on a simulation which closely resembles waiting in a line at a bank. Program runs the simulation based on the user's inputs of # of servers, simulation time, average time between arrival, and transaction time. Here's what I have so far: [code] /*~~~prog3.cpp~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | Author: …

Member Avatar for redhotspike
0
240
Member Avatar for Anuj Dave

i have installed iis on my desktop which is having windows xp.... however i am unable to run any .asp pages from "C:\Inetpub\wwwroot" even simple "http://localhost/" or any other .asp page shows "Server Application Error The server has encountered an error while loading an application during the processing of your …

Member Avatar for negocioyweb
0
370
Member Avatar for BobLewiston

I've tried, but I haven''t been able to find the namespace containing the dgDetails class for the DataGridView control. Can anybody tell me where it is? BTW, this is for C#.

Member Avatar for JerryShaw
0
112
Member Avatar for rEhSi_123

Hello everybody, Ran into a bit of trouble! During compilation I get the following error: [code] fatal error C1083: Cannot open include file: 'login.h': No such file or directory [/code] The login.h does exist in my directory folder. Please let me know where I have gone wrong. I am attaching …

Member Avatar for rEhSi_123
0
151
Member Avatar for henryxxll

Hey guys: I'm trying to write a python script to execute a Linux program, with several arguments set by the user, like so: [CODE=python] import os variable_input=int(input("Input Number Argument: ")) os.system("/path/to/program"," -argument1 ",variable_input) [/CODE] However, the os.system() command doesn't allow more than one input, so I tried this: [CODE=python] import …

Member Avatar for henryxxll
0
3K
Member Avatar for amit_ciem

hi......i m doing kmeans clustering program for my final year college project. I need the source code in C. please helpme......its urgent.

Member Avatar for Ancient Dragon
0
85
Member Avatar for FallenGenesis77

I was wondering how I would go about saving data within an executable, I'm not exactly sure If I happen to be wording this right so I will elaborate. For example lets say I had an application that would ftp upload specified files, but I did not want to use …

Member Avatar for MosaicFuneral
0
244
Member Avatar for Borderline

I'm trying to develop a web gallery, but have been struggling with laying out the thumbnails, and paginating the results. I found a tutorial, but have been experiencing problems with it. Can anyone point me in the right direction? Current result: [url]http://www.equinefocus.co.uk//photos/2009-03-21/gallery.php[/url] Current code: [CODE] <?php // Connects to your …

Member Avatar for Will Gresham
0
196
Member Avatar for vsha041

Hi, I am trying to write a program, in which it will ask the user to enter a string of length exactly 9. I have got a dictionary file with me which contains over two hundred thousand words. My job is to output all the possible words between lengths 4 …

Member Avatar for iamthwee
0
115
Member Avatar for sommanatt

How do I get the memory usage of my c++ program? Which instruction that i can put in my program and it can tell the size of memory that my program used? Thank you

Member Avatar for myle
0
3K
Member Avatar for lauren316

Here's my code: [code] #include <iostream> #include <string> #include <stack> using namespace std; int main() { string input; cout << "Enter text for palindrome checker. No spaces or punctuation please." << endl; getline(cin, input); stack<char> stackOne; for(char i = 0; i < input.length(); i++) stackOne.push(input[i]); stack<char> stackTwo; for(char j = …

Member Avatar for lauren316
0
156
Member Avatar for brechtjah

I can handle errors just fine on MySQL, but what about warnings? If I use the following code I still get to see the warning, while that is not what I want: [code=php] if(mysql_connect($host, $user, $pass)) { $conn_server = true; } else { $msg = "Fout bij verbinden naar de …

Member Avatar for brechtjah
0
153
Member Avatar for ganmo

Hi, I have some problem to implement the constructors from set.h. There was no problem to implement the empty constructor. But as for: Set(int a[], int n); I have some problem. It is supposed to use insert() function from node.cpp. And since the class Set is friend a friend to …

Member Avatar for Lerner
0
133
Member Avatar for jacline

a GUI application that presents a game based on a 4 by 4 matrix of buttons.One of the buttons (selected at random) "hides" the prize. A status bar at the top of the window shows the number of guesses. When the prize button is pressed, the status bar shows "You …

Member Avatar for jacline
0
807
Member Avatar for avishekgc_22

Ok, so heres the thing. Firstly I use windows operating system and the Borland C++ software. My program has to do the following:- 1> Open a source code, which is in .cpp format. 2> Monitor the flow of execution and print a message for every occurrence of a semicolon [;] …

Member Avatar for tux4life
0
177
Member Avatar for power_computer

I have to do this user defined function return type: double parameters: one (1) type: ifstream (by reference); variable used to read the file description assume the file has already been opened successfully in main() read through the file, average the numbers and return the average to main() to be …

Member Avatar for power_computer
0
116
Member Avatar for ivatanako

[code]import java.io.*; public class getLowestValue { public static void main(String[]args) throws Exception { DataInputStream input=new DataInputStream(System.in); System.out.println("Get lowest value "); int a[]=new int[10]; int x =0, i=0, j=0, tmp=0; // display and get inputs [5] for (x=0;x<5;x++){ System.out.print(x+" Enter a number: "); a[x] = Integer.parseInt(input.readLine()); } // sorting for (x=0;x<5;x++){ …

Member Avatar for jasimp
0
213
Member Avatar for edb500

Hi there I have the following problem! Please help! [code=cplusplus]class Base { //private methods void printMyType() { cout << "this is base type" << endl; } //public methods void printAllInfo() { cout << "this An accout" << endl; printMyType(); } }; //end base class class derived : public Base { …

Member Avatar for edb500
0
89
Member Avatar for senaddor

This is not a homework problem. I am studying binary search trees and trying to understand how the code works. I have the code, it works, but I want to understand it completely. I have made comments of what I think code does and in the lines that I don't …

Member Avatar for tux4life
0
138
Member Avatar for mhalls

Hi I am trying to read a txt file into a 15x30 multi dimensional array. I am having a few problems with the code. This class is embedded within a class and the cout << seat[i][j] seems to work within the loops when I'm reading in the file. When testing, …

Member Avatar for StuXYZ
0
108
Member Avatar for MyRedz

help.why can't my coding loop properly.,..i notice it can't show the loop of ptrpers[j] ? what did i do wrong.? it didn't show back the input i put on earlier. [CODE] #include<iostream> using namespace std; class person { protected: char name[40]; public: void setname() { cout<<"Enter Name:"; cin>>name; } void …

Member Avatar for MyRedz
0
130
Member Avatar for syuk

DEAR JAVA EXPERTS. can u help me? i dont know how to do the next move.... i want to write code that can make each object of the class Book can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies …

Member Avatar for BestJewSinceJC
0
218
Member Avatar for ahmedlibrian

Hi all, Well I am new here in Daniweb. First of all hi to all. I have a small problem but it takes me so long to find out its solution but still no use. Actually I am writing an update query in my vb.net page for my website. Here …

Member Avatar for ahmedlibrian
0
210
Member Avatar for saramv

Hi Guyz, There is two questions please help out in making program. Q)write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not. Q)write a program to print out all Armstrong numbers between 1 and 500.if sum af cubes of …

Member Avatar for ddanbe
0
132
Member Avatar for aashishn86

i have a file uploaded to my server the path is shown as E:\abc\def\upload\contents.doc to download it the path should be [url]http://3.212/232/abc/def/upload/contents.doc[/url] how do i go about it ? i am saving the file by using[code] o.FileFullPath = Server.MapPath(".") & "\upload\" & sFile [/code] from a script i downloaded

Member Avatar for punitdam
0
74
Member Avatar for Zcool31

I'm trying to implement a linked list class in a manner similar to STL. Everyithing seems to work fine, but when I try to implement an output operator to let me see what is inside the collection quickly, it starts acting wierd. Note that I use the iterator inside the …

Member Avatar for Zcool31
0
247
Member Avatar for thebunk

I am trying to output a table which lists a customer's payments whilst keeping a running total. A section of my XML is as follows: [CODE]<Accounts> <Payment> <CustomerID>1</CustomerID> <Date>2009-03-16</Date> <Amount>22</Amount> </Payment> <Payment> <CustomerID>4</CustomerID> <Date>2009-02-12</Date> <Amount>35</Amount> </Payment> <Payment> <CustomerID>2</CustomerID> <Date>2009-05-17</Date> <Amount>41</Amount> </Payment>[/CODE] I have included the following code to sort the …

Member Avatar for xml_looser
0
138
Member Avatar for ARYT

Hi everyone This should be one of our last assignments. Well, not sure, but most probably. As the title implies, we're supposed to write a program using multi-dimensional arrays for a 6x6 matrix multiplication. Here's what I've done. It's almost OK; except the most important part which is the final …

Member Avatar for GreenDay2001
0
525
Member Avatar for tharsrini

how to implement the secure file encryption and decryption using jsp for web application? can i use RSA or DES encryption algorithm? plz somebody post me? it's urgent

Member Avatar for amarender1201
0
139
Member Avatar for MohitManocha

hello every one. i would like to tell you that i am real biggener so please reply accordingly. any kind of help would be appriciated. i was trying to clean a specific registry key's value through my application. i have added a button now i want that on click event …

Member Avatar for pratik30.ei
0
1K
Member Avatar for tomtetlaw

my inheritence isnt working, it says saveAttributes isnt defined: [code=python]#!/usr/bin/env python #==========================================# # Copyright Tom Tetlaw & Shadwick (c) 2009 # #==========================================# import pickle as pk from formatting import * from locations import * from gclasses import * from gfuncs import * from items import * from objs import * …

Member Avatar for tomtetlaw
0
81
Member Avatar for tomtetlaw

i made a file reader but it always returns corrupted: [code=python] def load(charactor): fout = open(charactor + '.actor', 'r') fout.seek(0) actor_type = None attrs = [] for index, line in enumerate(fout.readlines()): if index == 0: actor_type = line.replace('{', "").strip() if index == 1: if line == 'attributes': if not line …

Member Avatar for tomtetlaw
0
86
Member Avatar for nassim87

i need the solution to this 3 programs i c++ : 1. Write a program that inputes frome the keyboard an integer x and calculates the sum of all numbers from 1 to x. 2. Write a program that uses a for-loop to output the power of 2 from 2 …

Member Avatar for ithelp
0
83
Member Avatar for raul15791

This may sounds stupid. I'm new to VB.net. My problem is that all the size of my picture box kept running. 1. I'm not sure is it because i set the form's backbgroundimagelayout to "Stretch" and all Picturebox's sizemode to "Stretch Image". 2. When i start my app on another …

Member Avatar for densman
0
209
Member Avatar for adling11

hi every body i need your help please in a program in assembly i've to make a program that contains a listof names of students and theirs points (like: jack 15) and we order the list once by alphabetical order and the second time by descendent point please i need …

Member Avatar for rahul8590
0
75
Member Avatar for tomtetlaw

can someone give me a tut on how to read files like this: [code]charactor { name = "name" race = "human" ## ect.. }[/code] any and all help will be appreciated :)

Member Avatar for lllllIllIlllI
0
71
Member Avatar for jacline

Design and implement a simple GUI application (or applet) that displays the graph of a quadratic function, Ax2 + Bx. Below the plot should be two sliders which allow the user to interactively set the values of A & B, the display being updated continuously in response to any changes …

Member Avatar for jacline
0
130
Member Avatar for timb89

[code] int log2(int n) { int count = 1; while(!n >= 1) { if (n%2 == 0) { count++; n=n/2; } else { count++; n=n/2; floor(n); } } return count; } [/code] not sure why it isnt working?

Member Avatar for timb89
0
123
Member Avatar for midimatt

Hi everyone, got a slight problem. trying to make a program that takes the users input and puts it into a string untill it detects a CR character then outputs the string, i've made a start but i'm at a dead end on what to do. [code=ASM] BITS 16 ;Set …

Member Avatar for rahul8590
0
117
Member Avatar for doha786

i am very new in java. in GUI class i have code like this : [CODE] public void actionPerformed(ActionEvent e) { if(e.getSource()==listButton){ ArrayList<String> list = new ArrayList<String>(); list.add("Orange"); list.add("Apple"); list.add("Pineapple"); list.add("Lemon"); list.add("Pear"); for(int i=0; i < list.size(); i++) { String s = list.get(i); { textArea.setText(s+"\n"); } }[/CODE] but its showing …

Member Avatar for javaAddict
0
110
Member Avatar for happyns

Hello everyone Im doing a dummy project in asp.net. I have a table named trains with following fields: 1. Sno(Primary key, Identity Increment, integer) 2. Train_no(varchar(100)) 3. Train_name(varchar(200)) 4. Route(varchar(1000)) 5. Start(varchar(100)) 6. End(varchar(100)) For this i have created a stored Procedure in this way: [code]Create Proc [dbo].[sptrainselect] @select int, …

Member Avatar for vizy
0
121
Member Avatar for ddanbe

I want to make a square with a [B]0[/B] in it and when I click on it would change into a [B]1[/B]. (e.g. For use in a memory register in which I can set the bits manually.) Piece of cake I thought, derive from the Checkbox class and override the …

Member Avatar for ddanbe
0
124
Member Avatar for ippomarley

hi guys, I am having trouble with this code, cause i get an infinite loop. I made nexTxtFile the variable name of the txt file i am creating and writing text to. i want to be able to get user input untill the user does not want to enter anymore …

Member Avatar for verruckt24
0
112

The End.