43,549 Solved Topics
Remove Filter ![]() | |
I am trying to manipulate user input strings using the ord() funtion. This effectively allows me to identify the decimal value of each character in the string. I have been able to return the value of the characters, but what I need to understand is how to store each value … Software Development python | |
I have two header file Fibonaci.h, Fibonaci_Iterator.h, u can look below [U][B]Fibonaci.h[/B][/U] [code=c++] #ifndef __fibonaci__ #define __fibonaci__ #include "stdafx.h" #include "Fibonaci_Iterator.h" using namespace std; class Fibonaci { public: //typedef Fibonaci_Iterator iterator; Fibonaci_Iterator begin(); --> [B]syntax error missing ; before begin[/B] Fibonaci_Iterator end(); Fibonaci( const int& ); Fibonaci( const int&, const … Software Development c++ | |
Hey guys, sorry for this, what im sure is simple, but i just cant get it! i have a dictionary for restaurants.. then i have nested dictionaries holding information like when these restaurants open and close. [CODE] Restaurants = { 'Italian' : {"OpenTime" : "11:30", "CloseTime" : "20:30"}, 'Mexican' : … Software Development python | |
I want to fill a matrix randomly with True and False. The code below does produce a matrix where the proportion of True is roughly p, but all the Trues are at the beginning, and all the False at the end (so it looks like it generates the same random … Software Development pascal | |
hi guys, Im in the process of writing a unix mointoring program that will monitor differenet servers all runnning solaris . I am creating a main screen with summary warnings for high cpu usage, low disk space, meta device faults, high network collisions etc. All has gone well but now … Software Development display shell-scripting unix | |
I'm working on an implementation of Conway's Game of Life as a way to learn Scheme, and I'm having trouble with the updater. I keep getting the message "The object () is not applicable" when I try to use the following. I could be missing something simple, and any advice … Software Development | |
i have a problem making the code for this logic i have 5textbox ,1 label and a command button on a form and need to do this: [QUOTE]if the value of the 1st textbox is greater than the 2nd,3rd,4th,5th then label1.caption = to the value of the 1st text box … Software Development visual-basic | |
Hey there everyone! I found this site because I was looking for some help with my c++ course. I am trying to figure out how to make a program that can read in data from a .txt and then replace every 7th word with an underscore. It must print out … Software Development c++ | |
Keep getting an error 'syntax before struct_acc' but cant see where can YOU?! (it's like finding woldo to me) [CODE] void print_customer_statement(char customer[]) { int choice; struct_acc Acc[SIZE]; FILE *file_ptr; int i=0; file_ptr = fopen(customer, "rb"); if (file_ptr == NULL) { printf("Error in Opening files... Program End\n"); exit(1); } while(!feof(file_ptr)) … Software Development c | |
Hi, I've got about 10 functions that all share a bit of code. They all look something like this: [code=python] def func(arg): statement1 statement2 statement3 unique code statement4 statement5 [/code] Each function does similar statements at the beginning and end, but has unique stuff in the middle. Is there a … Software Development python | |
Hello, for some reason the code I am trying to write throws an exception about using a priviledged instruction. Problem is it is just comparing two values and throwing this out there at me. Maybe I am completely missing something. Oh and I know its pretty ugly code, you don't … Software Development c++ | |
Hi, My problem is that I have a large function with hundreds of lines. I want to break it apart into smaller functions. The issue is that if I make a module level function, the scope changes and I have to pass the necessary variables to it. This can be … Software Development python | |
Hi I'm new in python and i'm do not understand why my code is not working. I want to generated random figures with this code: import random import division a1 = '' a2 = '' def zufallsZahl(a1,a2): a1 = random.randint(1,10) a2 = random.randint(1,10) print a1, a2 s1 = [a1, a2] … Software Development python | |
I am supposed to write a program to show all possible color combinations, but I am having problems. It will give me all 256 colors, but not in all possible combinations. Here is me code. [ICODE] include irvine32.inc .data colors byte 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 .code main PROC mov ecx, 16 mov esi, … Software Development assembly | |
Hi,I wish to make a configuration file for db connection parameters. I read about properties file.I have made a properties file that contains the following info--- String jdbcDriver="oracle.jdbc.driver.OracleDriver"; String connectionURLThin="jdbc:oracle:thin:@ hostname:AIPUAT1"; String DbUserId="abc"; String DbUserpassword="abc"; and saved it as DbConnection.properties. i have also made a java file that uses these … Software Development file-system java java-jsp oracle | |
there are a way to clean all file with vb? Best regards. Software Development visual-basic | |
what is the best language-related python library, with support for spell checking (aspell?)? Software Development python | |
I need some assistance in getting this program to perform correctly. It's suppose to take a sentence, break it up and return each word in pig latin. Right now, the program takes a sentence such as Jump start your morning and it returns Jumpay startay youray morningay. It should return … Software Development c++ | |
I have 2 strings, Text1 and Text2 below. What I am trying to do is to put these to a new string(Text1and2) so that string will contain this: "One,Two" I have began on some code and wonder if I am on the right track here. Later I will push_back it … Software Development c++ | |
My VB code needs to copy a file from one location to another, and I can do this with FILECOPY just fine. What I'd like to do though, is invoke the Windows copy function, so that the user gets the whole 'transfers in progress' experience. Is there a way to … Software Development visual-basic | |
I have to do a birthday project for by c++ class that allows the user to enter a birthay and dislay information about that birhday including the birhstone, astrological sign and the season which the birthday occurs. The main menu of the program should allow you to enter a persons … | |
I have tried debugging and optimizing this code, yet I cannot find the source of this error to save my life. I am getting a 'floating point exception' when I run the code pasted below. I am running with 'use strict' and 'use warnings'. My program takes a sequence and … Software Development open-source perl | |
I am having a problem with nested loops. When I run the program it gives me the first 16 results want then it prints out more values than I require. I want it to print out 16 values then stop. I also do not know how to change the foreground … Software Development assembly | |
Hello DaniWeb users, I hope one of you can assist me. I did search and found nothing to help me. So below is my code and I am hoping that someone can please tell me what on earth I am forgetting. I have been playing with this for quite some … | |
I have a homework assignment to create a program to calculate the full date of Easter Sunday between the years 1900 and 2600. The following is the error I receive: error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'std::basic_istream<_Elem,_Traits>' My … Software Development c++ | |
I have just started using python and am stuck on a particular project. I have been stuck staring at my computer not knowing what to do. I will post details below. What I am trying to do is use a CSV file named country.csv in which information about countries is … Software Development file-system python | |
I have been trying to work on this calculator for a while and I need help. I'm getting "12" errors. I'm very new at this and I really need the help of someone that can please take the time to explain what I'm doing wrong. I would really appreciated. [CODE]/* … Software Development java java-swing user-interface | |
I have a JSP which inserts date into a MS Access database. But I keep receiving the error: 24: statement.executeUpdate("INSERT INTO Questions WHERE ID ='"+ID+"'(\"Question\", \"Answer\", \"Timestamp\", \"Author\", \"Customer_Useful\", \"Customer_NotUseful\") VALUES ('"+Question+"','"+Answer+"','this has been updated','"+Author+"','0','0')"); I have checked and checked all the values are there and correct and that the … Software Development java | |
Getting an Unhandled Exception: Here's a screen shot: [IMG]http://i25.tinypic.com/344d28l.jpg[/IMG] [code=c#] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Chapter2Program3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { while (Visible) … Software Development | |
this would be my first time with arrays so i still have no idea how to use it i'm thinking on using it on this program [code=c++]#include <iostream> #include <conio.h> #include <string.h> using namespace std; int main() { char main_menu; char parts; char items[]; //here's the part i don't know … Software Development c++ | |
I am trying to use an overloaded + operator to find the total balance for two values. I am messing up with the way to set them up, or forgetting something. I am getting values such as -9.543e2433 The code I am using for the operator is [code] Account operator+(Account … Software Development c++ | |
Hello. I've been doing some programming recently that is supposed to delete files from a specified pathway [code=cpp] #include <iostream> #include <cstdlib> #include <windows.h> using namespace std; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow); int main() { cout <<"Deleting file..."; // ??? What to do here? MessageBox(NULL, … Software Development c++ | |
I am developing an application in which i want to set up ServerSocket's port on requirement. I have given an interface which accepts port number and this port number i want to assign my previously running serverSocket but serverSocket.accept() method blocks and I am unable to execute the code after … Software Development java | |
How to correct it , at line 84. Error executing cl.exe. error C2447: missing function header (old-style formal list?) [code=C++] /*--------------------------- Filename : ConflictMatrix.cpp ---------------------------*/ #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <vector> using namespace std; struct student { string studentid; vector <int> examcode; }; int main() { … Software Development c++ | |
I have 2 Forms in my Windows Form application. Form1 creates .txtfiles. I open Form2 from Form1 and can see the .textfiles that is created in a comboBox3. If I open the application from the beginning and go to Form2 I will see all .txt files that exists in a … Software Development c++ | |
Hello - I'm a brand new student of programming and I'm needing help. I'm stonewalled. I've got an assignment that requires me to create a class named Dice that another program will use to roll dice. The instructions are: - The class must be named Dice - A method named … Software Development java | |
Hi guys. First post. I have to write a program that allows the user to input his or her name. If the user type all lowercases the program should be able to convert to first letter of the name to uppercase. Also, if the user press "enter" without entering the … Software Development java | |
my question is how can i make my program not to display any unique combination more that ones? //*****f04.cpp***** //Name: //Date: 02 - 17 - 08 #include <iostream> using namespace std; int main () { // #1 int a, b, c; for (c = 1; c *c <= 100; c++) … | |
Hi! I need help on writing a program that puts 10 "char" values into an array, the program have to sort the values of the array into ascending order. Sample output: Array before sorting: Array[10] = [ E, F, Y, R, Q, A, T, O, W, X ] Array after … Software Development c++ | |
Can you help me with this?? The total will be displayed only when the user type -1. And it will continue looping if you will not type -1. And it will also continue to add the total(that will be displayed only if you type -1). import javax.swing.JOptionPane; import java.text.DecimalFormat; public … Software Development java java-swing | |
I am having all kinds of problems with my assignment. I have worked on it for hours and cannot get it to work properly. I am new to programming and it gets frustrating very fast for me. Here is the code I am currently working and i have attached my … Software Development c++ | |
Hi I want to know is it possible to connect C with VBA . And can you please give me the link of some explain or you can by your self . So my question is how to connect C and VB 6 . Thank you for your effort of … Software Development visual-basic | |
I'm trying to use the switch function to compute the resistance of resistors. Basically, a person types in 3 letters, each representing a color; each color has a different value. Then v throws back the resistance by going through the equation. This is what I have so far. [code=c++] #include … Software Development c++ | |
I am to make a program that finds the value of a resistor after inputting 3 letters those letters of are of the color on the resistor. i have written a program to do so but the value does not follow the equation. I am not sure if the program … Software Development c++ | |
Hi guys, I need a little help in my assignment. Got it down to the last part but I don't really get recursive functions. [code=language] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void swapArray (int [], int); int printArray (int [], int); const int MAX … Software Development c++ | |
Hello, I'm using a askdialog box from tkinter with a form. My problem is when I use "print" or "return" to get the selected directory it prints it to the terminal (if open) and I would like it to print to an Entry textbox. For example: [code=Python] from Tkinter import … | |
Hi guys, I need some help with arrays. [ICODE] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void printArray (int [], int); const int MAX = 30; int sizeArray = rand() % MAX; int main() { srand(time(NULL)); int makeArray [sizeArray]; constructArray [makeArray, sizeArray]; printArray [makeArray, sizeArray]; … Software Development c++ | |
Hi, I am working on a project where I need to save data which the user inputs for future reference and manipulation. I know one can use a database or a binary file. I would like to use a database but I don't know where to begin. I know one … |
The End.