43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for neoraghav

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......

Software Development c++ display
Member Avatar for neoraghav
0
282
Member Avatar for shibin09

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
Member Avatar for Mitja Bonca
0
102
Member Avatar for pacers10

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
Member Avatar for Schol-R-LEA
0
95
Member Avatar for sasucker

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 …

Software Development c++ ios
Member Avatar for llk
0
2K
Member Avatar for burcin erek

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++
Member Avatar for burcin erek
0
289
Member Avatar for srikanth2321

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
Member Avatar for srikanth2321
0
134
Member Avatar for Protoroll

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
Member Avatar for ~s.o.s~
0
106
Member Avatar for ceyesuma

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
Member Avatar for ~s.o.s~
0
497
Member Avatar for NewOrder

[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
Member Avatar for ~s.o.s~
0
117
Member Avatar for thm

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
Member Avatar for thm
0
323
Member Avatar for corrwee

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
Member Avatar for griswolf
0
239
Member Avatar for Vv IVIatthew vV

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++
Member Avatar for gerard4143
0
268
Member Avatar for drake10k

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
Member Avatar for drake10k
0
782
Member Avatar for crossbow25

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
Member Avatar for crossbow25
0
263
Member Avatar for xc3ss1v3

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
Member Avatar for xc3ss1v3
0
667
Member Avatar for jtresue

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
Member Avatar for jtresue
0
138
Member Avatar for Blitze

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++
Member Avatar for Blitze
0
88
Member Avatar for Daaa

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++
Member Avatar for Daaa
0
195
Member Avatar for Derice

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
Member Avatar for rjohn18
0
113
Member Avatar for myk45

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
Member Avatar for myk45
0
94
Member Avatar for themaestro

[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<<" …

Software Development c++ ios
Member Avatar for themaestro
0
128
Member Avatar for emilyhedgecock

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++
Member Avatar for emilyhedgecock
0
252
Member Avatar for lukename

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++
Member Avatar for lukename
0
131
Member Avatar for zarifin99ska

i wanted to do like this. can anyone help? [ATTACH]17495[/ATTACH] [ATTACH]17496[/ATTACH]

Software Development vb.net
Member Avatar for zarifin99ska
0
93
Member Avatar for Steve_Jones

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
Member Avatar for Steve_Jones
0
103
Member Avatar for LianaN

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", …

Software Development java sql
Member Avatar for LianaN
0
180
Member Avatar for exception

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
Member Avatar for PoisonedHeart
0
177
Member Avatar for onlinessp

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
Member Avatar for ashu.innominds
1
147
Member Avatar for vincezed

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
Member Avatar for vincezed
0
115
Member Avatar for arjen

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
Member Avatar for arjen
0
105
Member Avatar for sree_ec

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
Member Avatar for itpungaraja
0
241
Member Avatar for bokr66

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
Member Avatar for bokr66
0
375
Member Avatar for Vllinator

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
Member Avatar for Vllinator
0
143
Member Avatar for swathys

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 …

Software Development listview vb.net
Member Avatar for Oxiegen
0
124
Member Avatar for lionaneesh

[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
Member Avatar for Ajinkya Naik
0
168
Member Avatar for neoraghav

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++
Member Avatar for neoraghav
0
4K
Member Avatar for purijatin

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 …

Software Development algorithm java
Member Avatar for purijatin
0
5K
Member Avatar for amrahim

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
Member Avatar for amrahim
0
2K
Member Avatar for frankel81

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
Member Avatar for frankel81
0
643
Member Avatar for MWE_QUE

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
Member Avatar for MWE_QUE
0
127
Member Avatar for dspjm

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++
Member Avatar for iamthwee
0
151
Member Avatar for samuel17

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
Member Avatar for samuel17
0
196
Member Avatar for nssltd

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
Member Avatar for nssltd
0
95
Member Avatar for maharjun

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++
Member Avatar for Narue
0
122
Member Avatar for novice20

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
Member Avatar for ptmcg
0
231
Member Avatar for ftl25

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
Member Avatar for ftl25
0
195
Member Avatar for Xufyan

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
Member Avatar for Xufyan
0
1K
Member Avatar for Xufyan

i've learned arrays, loops, Creating objects and classes, creating methods, Encapsulation, Polymorphism Overloading constructors, Stack what next should i learn ??

Software Development java
Member Avatar for Xufyan
0
108
Member Avatar for kekkaishi

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
Member Avatar for kekkaishi
0
108
Member Avatar for darkAngel

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++
Member Avatar for bbman
0
902

The End.