199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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, … | |
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) … | |
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 | |
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%, … | |
Plz tell me the advantages of using "while" and "do-while" loop in C++ | |
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 … | |
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: … | |
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 … | |
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#. | |
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 … | |
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 … | |
hi......i m doing kmeans clustering program for my final year college project. I need the source code in C. please helpme......its urgent. | |
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 … | |
![]() | 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 … |
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 … ![]() | |
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 | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 [;] … | |
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 … | |
[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++){ … | |
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 { … | |
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 … | |
![]() | 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, … |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … ![]() | |
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 | |
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 … | |
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 * … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 :) | |
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 … | |
[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? | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … |
The End.