43,549 Solved Topics
Remove Filter ![]() | |
Hi, Need help to know, how to diaplay a count down timer in the dialog box using MFC. and when the timer ends the dialog should colse........ Please provide suggestion...... | |
i created a program in c# with database sql server 2005.it worked in windows xp.but i don't know how to install my software in windows 7 .i coudn't install sql server2005 or sql servr 2005 64 bit in windows 7. help me plz ..very urgent Software Development sql | |
I think i have the function for mean but i also need to figure out below mean. This what i have so far.[CODE]import math def mean(alist): belowMean = alist mean = sum(alist) / len(alist) if mean <= alist: belowMean = item return belowMean [/CODE] Software Development python | |
For my assignment this week, I was supposed to create a program that would read in names from a file, sort them, then output the names sorted. I attempted to do it as a insertion sort, and seemed to have failed miserably... if anybody could point me in the right … | |
the program is running well but concept is wrong. you should find number 0-100 until 10 trials. if failed, and want to play again unfortunately program is terminated why ? [CODE]#include <cstdlib> #include <iostream> #include <windows.h> using namespace std; int sayiturev (int aralik) // generating number 1-100 { srand(GetTickCount()); int … Software Development c++ | |
Hi all, I'm trying to implement K-means on a database.I have a table like this: The main task is to group id's and return them based on similarity in intensities depending on the number of clusters that the user want to see them. [CODE]id I1 I2 I3 I4 I5 1 … Software Development dataset | |
I have two constructors that are pretty much exactly the same except that one also takes in a boolean value. I want the constructor with four parameters to the call the other one in order to get the the first three. Here is what I have so far. [CODE] public … Software Development java | |
I have a java app that used to use a property and I am not sure with the changes I've made to the class path how to find the driver. I thought I was using the exact same installation but I can't find the driver. Can someone please tell my … Software Development apache java microsoft-windows | |
[CODE]import java.io.*; public class EnumEx3 { /** * @param args */ public static void main(String[] args) { Fishs fishs=Fishs.AMNON; System.out.println(fishs.getX()); } } enum Fishs { BURI(20), AMNON(50); private int x; private Fishs(int x) { this.x=x; } public int getX() { return x; } } [/CODE] i have that code and … Software Development java | |
I'm trying to write a matrix multiplication program that takes in an int N on command line, creates two NxN matrices A & B, randomly populates them with ints, and then computes the result of multiplying A and B. I wanted to avoid malloc, but the first version started segfaulting … Software Development c first-post matrix-multiplication | |
Hi, guys I'm having trouble writing this word count program in python3. I've been able to find alot of help for past versions but nothing for 3. It is just a simple word count program, with a user input sentence. So far I have [CODE] def main(): print ("This program … Software Development python | |
Hello daniweb! i have recently started to learn c++ and have made a few programs, (a hello world and a multiplication program) following some tutorials. So i decided to try and make my own, but it did not go well. After debugging in microsoft visual c++ 2010 i got loads … Software Development c++ | |
Hello, When I open my app an XML doc is created with several elements giving to each of them the value 0. After the XML is created I want that several labels on the form to change their text to spcific elements' values (in this case 0). Is there any … Software Development xml | |
SinglyList.h [CODE] #ifndef SINGLYLIST_H #define SINGLYLIST_H #include <iostream> #include <string> using namespace std; class Exception { private: string errMsg; public: Exception(const string& err) { errMsg = err; } }; class InvalidPositionException : public Exception { public: InvalidPositionException(const string& err) : Exception(err){} }; class EmptyException : public Exception { public: EmptyException(const … Software Development c++ linked-list queue | |
Good morning all. I'm having some difficulty in reading from a sequential file. I think I have my code set up properly, but when ran, it throws an exception which show me the error statement I specified. When I ran a debug, it does seem to be pulling the information … Software Development gui java java-swing | |
I have written this program but for some reason it isn't appending to the file? import java.io.*; public class numbers { public static void main(String[] args) throws IOException { FileWriter grades = new FileWriter(new File("grades.txt")); String temp = ""; for (int i=0; i<=100; i+=2) { temp = String.valueOf(i); grades.write(temp); grades.write(","); … Software Development file-system java | |
I am attempting to make a class called Profile and have numerous profiles in an array (70 to be exact). [CODE]//profile.h Class Profile { int _age; string _fname; string _lname; int _height; char _gender; Profile(int val, char gender) : _age(val), _gender(gender) { } int getHeight(); int getAge(); }; [/CODE] [CODE]//profile.cpp … Software Development c++ | |
I have looked around and it seems that there are no comprehensive tutorials on integrating LUA into a C++ application. What exact files must i have/include/link etc? Most tutorials don't describe this in any detail and i am left wondering what i need where. Software Development c++ | |
Any1 know how 2 update data in a DataEnvironment? I tried to search throught the net but unable to get solution to my problem. Please guide me with some simply code. Thx in advance. Software Development visual-basic | |
Can anyone please explain why a self reference on a structure is allowed, but not a variable of that type? This is what i mean: [CODE] struct node{ int a; struct node *n1; }; /* This is allowed */[/CODE] [CODE]struct node { int a; struct node n1; }; /* But … Software Development c | |
[CODE]#include <iostream> #include <fstream> #include <cstdlib> #include <conio.h> #include <iomanip> #include <ctype.h> #include <windows.h> #include <cstring> #include <ctime> using namespace std; int main() { ofstream outputparticulars("particulars.txt",ios::out); int d,a,b,c; char ic[100],password[100],confirmpassword[100]; char info[6][101]; cin>>d; if(d==1) {cout<<"1"<<endl; } else if(d==3) { cout<<" Key in your......\n"; cout<<" First Name : "; cin.getline(info[0],100); outputparticulars<<" … | |
Hi I have an array which contains a number and string in each element - itemClass.itemID and itemClass.itemName. the two combined making up an inventory I am trying to build a function which uses a for loop to take each itemID and concatenate them all together to produce a string … Software Development c++ | |
Hi. I have one silly problem. I'm trying to read from file with [iCODE]ReadFile.read(ReadBuff, 1);[/iCODE] char by char and i need to convert them to ascii code. With normal ascii symbols it's all right. But them i'm trying to convert extended ascii symobl to ascii code it gives me negative … Software Development c++ | |
i wanted to do like this. can anyone help? [ATTACH]17495[/ATTACH] [ATTACH]17496[/ATTACH] Software Development vb.net | |
I have a program that displays a website using system.windows.forms.webbrowser. It runs off files located on the computer, just html files that are not on the web. All i would need to do is link to the index page and then you can access everything. The purpose of it is … Software Development file-system | |
Hi guys! I have a JTable updated from MySQL. I can successfully insert a row in JTable using SQL statement "insert into...". However, when I execute a delete statement, then JTable is not updated. Please, help me to find an error. [CODE] public void actionPerformed(java.awt.event.ActionEvent evt) { SystClasses.FilterClass.tableModel.initDB("85.254.219.164", "employee_record", "liana", … | |
i already post this topic in the programmingforums.org..a sister site of daniwebs. i think that this site is more populated.. i exploring deep programming, and i would like to have good start.. i want to determine the parts of this code, and how it works.. i think this is very … Software Development visual-basic | |
Hi i am currently working on a project i got a problem from few days. Problem is that it is giving System.NullReferenceException in output.Can any one able to remove it by editing the code. The source code is [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; … Software Development open-source | |
Hi to all I'm developing an application using C#.net .My problem is I have two forms Form1 and Form2... I have a combo box in Form1 with values Admin , student and others....Form1 is used as login form . If login by student i want to hide certain buttons and … Software Development | |
hello guys, I have a problem with my code first is i have two combobox named facname.text(facility name) and facno.text(facility no.) and when I choose in facility name(facname.text), in the facility no.(facno.text) should display the number of facility in that particular facility name..For Example you 2 facility for bowling and … Software Development vb.net | |
Any suggestions on the best online tutorial/ebook/printed book regarding C libraries and latest c std? I would like to get more coverage on FILE I/O s Thanks in advance Software Development c | |
Hi, I have a problem with an VB aplication programmed in Visual studio 2005. Recently i was upgraded my computer with windows XP to Windows 7 Ultimate (fresh instalation). After that I made reinstallation Visual studio 2005 and service pack 1 for Vista/win7. My problem now is when I run … Software Development microsoft vb.net visual-studio | |
Hi i'm writing a program that reads records from a file, then sorts these records by the person's firstname, and stores the sorted data in a new file. Heres the code: Everything works fine, except it stores garbage at the end of the last record. If i set the array … Software Development c++ data-structure ios | |
hi, Below is my code for DELETE button. What i want is if the user select the transaction from the listview and press the DELETE button it must be able to delete the transaction from listview and text file(temporary log file) which i keep all the transaction record. At the … | |
[CODE] #include<stdio.h> int main() { FILE *point; char others[35]; int indexer,count; strcpy(others,"Additional lines."); point = fopen("tenlines.txt","a"); /* open for appending */ for (count = 1;count <= 10;count++) { for (indexer = 0;others[indexer];indexer++) { putc(others[indexer],point); /* output a single character */ putc('\n',point); /* output a linefeed */ } } fclose(point); getchar(); … Software Development c | |
The following code swaps values between 2 variables without using a temp variable..... i want to know the logic behind this [CODE] //#include "stdafx.h" #include<stdio.h> int main(){ int a =3, b=5; a^=b^=a^=b; printf("%d" "\n" "%d",a,b); return 0; }[/CODE] [CODE]Output 5 3 [/CODE] Software Development c++ | |
Hello! Can someone please suggest a way to effectively copy the bytes from one array to another. In my program a user will call the method setDate(byte[] buf) which will set data continuously ie inside the method there is an array say buf2. for example if the method is called … | |
Hi, just try to create application using VB6 for my kids, but facing problem with image on how to save & retrieve it from MS access database. could you guys please share the code. TQ in advance. Software Development image visual-basic | |
hey guys, thanks for looking at this. I'm new to java and need help with this one problem. What i need to do is, 3) Write a program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person with a … Software Development java java-swing | |
This is for an assignment. The child process never prints it's output, or calls the fibonacci functions. I've got other sample programs where the printf command works. Any help would be appreciated. Thanks in advance. [CODE] #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <errno.h> #include <unistd.h> #define MAX_SEQUENCE 10 typedef … Software Development c | |
I am a beginner in c++, I taught myself c++ through the book "c++ primer plus", it really took me a lot of will to finish the book. Now i just want to use the thing i learned to do some pratical things in my life, can anybody tell me … Software Development c++ ![]() | |
Hi all, Having issues with my guessing game I made. For once its not a compiling error. For some reason my loop only executes once, and it wont re-execute when the wrong number is entered. Hoping someone can help me. Here is my code: [CODE]import javax.swing.*; public class Guessing Game … Software Development java java-swing | |
![]() | Hello! I have been working on a `Advanced log in` project. And i was going to store pass words on a text file. i have found some code on the web but their is one problem. I don't know what to convert it to! [CODE] public void Getpasswd() { if … Software Development ![]() |
i have just observed this wierd thing with visual c++ the following is my code.[please forgive my poor C++ standard. im using it only because im doing it 4 a school project and the examiner wont be bright enough to understand what iss not in the syllabus. this is sad … Software Development c++ | |
hi.... I am doing an snmpwalk on MIB variables and dumping the output to a text file. I dont need all the info and need to read only a part of it. How can this be done efficiently in python? Software Development python | |
Hi, I have the task of creating an export tool - where a list of files are gathered and zipped up and placed into a folder of the user's choosing. So far I have gathered a list of files and put them in a list box for the user to … Software Development visual-basic | |
In this program how can i overload the pop() method to use two pop() methods (int and float) in a program as i used two push() methods ? [CODE] class Stack{ int StackArrayI[] = new int[3]; float StackArrayF[] = new float[3]; int tos=-1; public void push(int value){ if (tos==2) System.out.print … Software Development java | |
i've learned arrays, loops, Creating objects and classes, creating methods, Encapsulation, Polymorphism Overloading constructors, Stack what next should i learn ?? Software Development java | |
hi, i've been trying, without success, to maintain the style of the text in a jTextPane when it is copied into the clipboard. what I want is to copy the text in a jTextPane with styles (eg: bold, italic) and to be able to paste it into MS WORD with … Software Development java | |
as above. [code] string s; cin >> s; [/code] for example, if the user enters Orange, i want it to convert to orange. please advise what i should do. thanks in advance Software Development c++ |
The End.