132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for iwanna mix-mix

it gets compiled but it crushes: "programm has stopped working" Please help me!!! this is the programm: #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { FILE *fp; int i=0, n; char allwords[100][40]; fp=fopen("fraoules.txt","r"); if ( (fp=fopen("fraoules.txt","r") )==NULL ){ printf("To arxeio den mporese na anoixtei\n"); } while(strcmp( allwords[i],"telos")!=0){ fscanf(fp, …

Software Development c
Member Avatar for TrustyTony
0
194
Member Avatar for smarty_t2

I wrote a program in C# for my discrete mathematics class and it worked absolutely fine. My teacher asked me to submit the code in c++ so she can run it on her mac and so I created a new project and typed the code in. After changing everything required …

Software Development c++ mathematics visual-basic visual-studio
Member Avatar for ravenous
0
2K
Member Avatar for infinitus

Hello guys im having problem displaying a math equation result in the textbox. It shows 0 and i dont really know where i got the error. Name of the textbox where result shall be displayed is **total1** Thx for help :) int textboxnumber1; int textboxnumber2; int textboxnumber3; int textboxnumber4; textboxnumber1 …

Software Development
Member Avatar for muze
0
201
Member Avatar for dinosaur123

Hello, I am having trouble with a program I am writing. The problem is that I need to take information from a text file, read it, and then output the information into another text file. I keep getting this output: > <ProductSummary>0015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A0 </ProductSummary> I need it to output something like …

Software Development c c# c++
Member Avatar for VernonDozier
0
427
Member Avatar for risen375

Hi I need help with this program. When I run this program, it will not print out the correct kilograms which always displays 0. Please help #include <iostream> #include <istream> #include <iomanip> #include <vector> using std::vector; using namespace std; using std::endl; using std::setw; struct PatientInfo { string name; double weight; …

Software Development c++ ios
Member Avatar for histrungalot
0
131
Member Avatar for weeraa

I’ve developed a VB application. Now I want to disabled resizing the form. I know there is a property “Border style”, which changes to fixed single, can do my work. But I want minimize button to my form. Minimize button is only in “Sizable” mode. I changed another property “MaxButton” …

Software Development visual-basic
Member Avatar for weeraa
0
466
Member Avatar for hwoarang69

trying to create fifo that can read and write. but some reason its not going below "O_RDONLY" line. any thoughts? char *fifo_name = "fifo"; #define 0666 int main() { int fd1; int fd2; //create fifo if(mkfifo(fifo_name,FIFO_MODE) == -1) { exit(1); } //open fifo for read if((fd1 = open(fifo_name, O_RDONLY)) == …

Software Development c
Member Avatar for hwoarang69
0
156
Member Avatar for Junior999

#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { FILE *file; char ch, str[500], a=0; char name[20], word[50], temp[50]; int i,lenght=0, b=0; if((file=fopen("sample.txt" , "r"))==NULL) { printf("Error while opening file\n"); system("pause"); exit(1); } while (!feof(file)) { fgets(str, 499, file); printf("%s\n",str); ch=fgetc(file); if(ch!=' ') { a++; word[b]=ch; if(a > lenght) lenght=a;f …

Software Development c file-system
Member Avatar for Ancient Dragon
0
180
Member Avatar for caltech

Here's my code. (Lines of interest: 49, 138, and 162; rest of the code works fine.) #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include <algorithm> #include <cstdlib> #include <conio.h> using namespace std; class Records { public: string name; int hours; double rate; int age; double pay; double tax; double …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
362
Member Avatar for theprofoundgeek

I need to create a dynamic HTML form using PHP. I am only considering the following fields : Text, Text box, Radio, Check Box, Drop down. I am thinking of the creating the following database design. Field ID | Field Type | --- Other Attributes, such as length and others …

Software Development html-css perl php
Member Avatar for theprofoundgeek
0
322
Member Avatar for debasishgang7

Hi All, I wanna generate all possible combination of certain list using python. For Example I have a list like list = ['A','B','C'] I wanna generate all possible combination of these list elements like using "itertools": AAA AAB AAC ABA ABB ABC ACA ACB ACC BAA BAB BAC BBA BBB …

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for lamba89

Hi everyone, I'm trying to parallelise a Gram-Schmidt algorithm. Here's the serial code: for( k = 0; k < m; k++ ) { for( i = 0; i < k; i++ ) { s = 0.0; for( j = 0; j < n; j++ ) { s += q[ i …

Software Development algorithm c
0
126
Member Avatar for vedro-compota

hi there) my brothers-programmers) please tell me - how to get double type character by character - i need make custom realization of fprintf - so it's necessary for me to show double type numder on the screen. (For integer type this problem could be solved by subtracting 32 - …

Software Development c++
Member Avatar for WaltP
0
169
Member Avatar for DAlexNagy

Hi all! I am looking for some advice on how to best design C++ programs that read, write, and update data in MySQL databases. I have completed a system that successfully does this but I'm not sure if I designed it the right way to take advantage of OOP principles …

Software Development c++ sql web-design
0
125
Member Avatar for bobanderson90

I want to push a value to a stack using the assignment operator, I need some help with this.. Thanks Stack s; float x = 5; s = x; class Stack { public: Stack(); float push(float value); float pop(); int Size(); float operator = (const float &right); private: float values[30]; …

Software Development c c# c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for NeoSyn

Recently i've been coding my own game, it was working fine up to a point but suddenly the backround is moving over the sprites drawn to the screen... I've loaded them unto the screen alright, and sometimes when i run they actually do come out on top. Here's my main: …

Software Development html-css python
Member Avatar for vegaseat
0
464
Member Avatar for newbie14

Dear All, I have a time ticker which updates the time say now for 5 seconds. Then it keep calling a function and in it via sql query based on the current time it shows the relevent sum data. I got few things to confirm am I doing the right …

Software Development
Member Avatar for skatamatic
0
1K
Member Avatar for infinitus

Hello guys im having a problem and i dont see where i made error. Im tryting to write something into XML file. Also how do you read textbox input and save it into XML ?? Cheers for help :) public class CourseName { string _name; public CourseName(string name) { this._name …

Software Development
Member Avatar for skatamatic
0
179
Member Avatar for esraa waqfi

i wanna ask how to read from a file and give a summery of letter count (separate small than capital letters),number of line ,number of paragraphs,number of quoted sentenses ? i know the number of lines by (wc -l) but the others i woundered about !! hope somebody teach me …

Software Development shell-scripting
Member Avatar for esraa waqfi
0
85
Member Avatar for AliAwwad

hi, i made a form that its pupose is chatting... very simple one, one user talks with another one. so there is two INSERT simultaiously. Sure, i put the mdb file on shared folder, EVERYONE have full control, the mdb file is NOT read-only. when only one chat form loads, …

Software Development vb.net
Member Avatar for Begginnerdev
0
118
Member Avatar for jonny93

Hello, I'm new to this site, and i really need help with something. I have been working on a checkerboard project for my second programming class, and now I'm stuck. I now how to set the icons, but now I am absolutely confounded as to how I move the icon …

Software Development java java-swing
Member Avatar for NormR1
0
2K
Member Avatar for shifat96

I need help for another one of my assignments for CS Class. On the rubric, one of the part said: > all characters are shifted right by two positions and the last two characters becomes the first two characters The condition is that the string has to be entered by …

Software Development java mathematics
Member Avatar for shifat96
0
2K
Member Avatar for mayank.dyl

what does fork() do in c.? Is it same as fork operation in OS ? What is the o/p of following program ? #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }

Software Development c multithreading
Member Avatar for mayank.dyl
0
193
Member Avatar for effBlam

Pretty much i have to read a txt file which contains a sample maze in it as so: 4 5 ~~~00 00S~0 E~0~~ 0~~~0 the first number is the number of rows and the second is number of columns. Im having trouble figuring out how to store just the "maze" …

Software Development file-stream java
Member Avatar for NormR1
0
508
Member Avatar for Diogo Martinho

Hey guys, I'm about to start a project in which I'll have to implement something simillar to an ordinary excel sheet, and one of the aspects that will be focused is related to the creation/implementation of Macros which allow me to record a number of actions and then perform those …

Software Development java
Member Avatar for JamesCherrill
0
164
Member Avatar for javaprog200

Hello, The following program displays two images (ImageIcon type) inside the JTextArea. Is there a way I can make both of these images transparent sothat what I type on them is visible? Thanks in advance! import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; import java.io.IOException; public …

Software Development image java java-swing
Member Avatar for JamesCherrill
0
204
Member Avatar for fo2sh

Any body can help me with this error I am getting this error: C:\Documents and Settings\Fuad Damra\Desktop\TCPDayTimeServer.java:33: variable out might not have been initialized out.println("Server Sent Average: "+Avg); ^ 1 error When I am trying to execute this program: [CODE]import java.io.*; import java.net.*; import java.util.Date; public class TCPDayTimeServer { public …

Software Development java
Member Avatar for NormR1
0
911
Member Avatar for Sahil89

Hello Daniweb, Can anybody please tell me that, can we configure remoting for the LAN? I studied it halfway but I realised that its for web, but i think i can be possible for LAN too. Please do reply with something :)

Software Development vb.net
Member Avatar for Sahil89
0
93
Member Avatar for jimjones371

Need help from daniweb community. I suck at programming. It doesn't make sense to me. I'm not going to be programming in my career but it's part of my major. I'm desperately trying to get an c- just to pass. Would love some help. I would appreciate some explanation but …

Member Avatar for gusano79
0
286
Member Avatar for zuzzles

So i came across this issue that I can run my applet fine and it creates my file (exe) until i attempt to do so in a browser (firefox, IE, etc). Its signed and asks for permission and gives no erros but it doesnt write to the file I want …

Software Development apache api file-system java queue session
Member Avatar for JamesCherrill
0
313
Member Avatar for moroshko

Hi, Say MyClass inherits from BaseClass, and I write the following constructor for MyClass: [code] public MyClass() { DoSomething(); } [/code] When MyClass constructor is called, does it call automatically the BaseClass constructor (even though I didn't explicitly wrote this) ? Thanks !

Software Development c#
Member Avatar for Beata7
0
179
Member Avatar for sweets

Hello folks,I have implemented steganography for Least Significant Bit(LSB) 2 bit which works for any kind of carrier files i.e,basically i can hide image/text/video in any of these files. 1)Now i need to do some improvement for the project i.e, implementing steganography using any other method which is more efficient …

Software Development java
Member Avatar for sweets
0
135
Member Avatar for sweets

import java.io.*; import java.nio.ByteBuffer; import java.util.zip.*; import javax.crypto.*; import javax.crypto.spec.*; import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; public class Steganograph { public static final byte[] VERSION_BYTE= {'2','0','0'}; public static final int OFFSET_JPG= 3; public static final int OFFSET_PNG= 42; public static final int OFFSET_GIF_BMP_TIF= 32; public static final short …

Software Development algorithm java java-swing
0
127
Member Avatar for blackmagic01021

Hello, I have a observer pattern based JTable. With time it is poulated with new data packets. I use addRow functionalities to add my rows. But I want to put always the last coming datapackets at the top. How to do it??

Software Development java
0
129
Member Avatar for seek

can anyony helpme to to search a database for records

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
165
Member Avatar for Dewey1040

I'm trying to use the system call to append an arbitrary number of files to one specific file... when I attempt to run the program i get the error: sh: addints.o: not found sh: main.o: not found sh: rbyswt.o: not found sh: readint.o: not found sh: writeint.o: not found sh: …

Software Development c
Member Avatar for kings_mitra
0
102
Member Avatar for murnesty

Hi, I'm facing few problem on textbox : 1. I got plenty of textbox which roughly 500+ and my design haven't done so it might grow. Each of the textbox is represent data received from serial port. To update textbox then i need to write the code line by line …

Software Development
Member Avatar for Momerath
0
149
Member Avatar for bigzos

Hey guys,I have an excel sheet with one of the columns as name .There are many rows with same name and I wish to mail all the rows with same person name to that person(given there is a column specifying email address).I will be thankful for your suggestions. The following …

Software Development vb.net
Member Avatar for bigzos
0
102
Member Avatar for chinee

i am doing a project with a group i have to deal with orders by kind then linked to the driver who will be taking the first customer. the driver can be free or back in 10 min. i have started with the order list with the customer, i have …

Software Development java linked-list queue
Member Avatar for NormR1
0
791
Member Avatar for dshiells

Hi all, I'm sure this is a n00b question, but I can't seem to get my head around it! I have a 4 BYTE array which I want to display as a decimal value. For example, in the array it contains the hex values: 00 05 7d a4, and I …

Software Development c++
Member Avatar for dshiells
0
2K
Member Avatar for laura23

I have two files Persons.txt and Hobby.txt.In the third file i want to put all the persons names and add each name some hobbies.This is how my files look like Persons.txt ID;NUME;PRENUME;DATA_NASTERII;PROFESIA 1;Stan;Ilie;22-01-1977;profesor; 2;Becali;GG;01-07-1965;patron; 3;Tanase;Cristian;07-12-1988;fotbalist; 4;Pop;Ion;21-03-1984;pictor; 5;Popescu;Rodica;17-04-1986;sculptor; Hobby.txt ID;NUME;DESCRIERE;NUMAR_MINIM_PERSOANE;ELEMENT_NECESAR 1;baschet;sport in care se arunca mingea la cos;6;minge 2;fotbal;sport in care …

Software Development file-system java
Member Avatar for NormR1
0
215
Member Avatar for vedro-compota

Hi) Guys , please tell me - which java graphic (which make you able to work with winforms) library should be studied at first? I started with SWT , but that i heared that it isn't "standart"...... thanks in advance for help.

Software Development java
Member Avatar for vedro-compota
0
207
Member Avatar for native99

i'm building a simple code in wdk in "native subsystem" i have a library that overload new and delete operator here is the code: header file #include<ntddk.h> #define HEAP_ZERO_MEMORY 0x00000008 #define HEAP_GROWABLE 0x00000002 typedef NTSTATUS (NTAPI * PRTL_HEAP_COMMIT_ROUTINE)( IN PVOID Base, IN OUT PVOID *CommitAddress, IN OUT PSIZE_T CommitSize ); …

Software Development c++
Member Avatar for Banfa
0
243
Member Avatar for infinitus

hello guys im having a little problem here. I have few text boxes and few labels. User enters values into textboxex. Values in lables are from XML file, so the program reads for egz **<price>30</price>** and this price is set as a label **label1 => 30** And now im wondering …

Software Development visual-studio
Member Avatar for ChrisHunter
0
207
Member Avatar for fonzi

Hello I am currently working on this code and the code can be runned well from 100-10,000 random elements after that the heap sort says stack over flow, im thinking the recursive calls are the cause of this, so please healp public static void MAX_HEAPIFY(int [] A, int i, int …

Software Development java programming-construct
Member Avatar for JamesCherrill
0
310
Member Avatar for lostlibearlarts

Hi All, I am working on a project for school. Notice that I am a liberal arts major. My project is to develop a multiple choice test. I decided it would be a cool time to teach myself how to program so people could take the test on the computer. …

Software Development python
Member Avatar for TrustyTony
0
177
Member Avatar for KickAssElmo

I have two arrays: n = [30, 47.2, 70.2, 77.4, 36.3, 20.6, 18.1, 21.4, 22, 25.4, 27.1, 40.3, 57, 76.6, 52.3, 19.5, 11.2, 7.6, 14.6, 16.2, 24.7] p = [4, 6.1, 9.8, 35.2, 59.4, 41.7, 19, 13, 8.3, 9.1, 7.4, 8, 12.3, 19.5, 45.7, 51.1, 29.7, 15.8, 9.7, 10.1, 8.6] …

Software Development python
Member Avatar for TrustyTony
0
101
Member Avatar for androidz

HI Is it possible for vb6 to add the sql database as a back end for my program?and i would like it to add it during the deployment of my program as a prerequisite of it. Please let me know thank you

Software Development sql visual-basic
Member Avatar for QVeen72
0
79
Member Avatar for triumphost

I have an application that will be minimized and running in the background. I want this application to have it's own moveable mouse so that it does not use my current mouse. How can I accomplish this? I'm not exactly sure where to start to create a mouse for it.

Software Development c c# c++
Member Avatar for triumphost
0
416
Member Avatar for mayank.dyl

Without using /,% and * operators. write a function to divide a number by 3, itoa() function is available.

Software Development c++ mathematics
Member Avatar for mayank.dyl
0
309

The End.