132,726 Archived Topics
Remove Filter ![]() | |
i just wanted to make a program which reads 5 numbers then writes this 5 number. that's it but i couldn't. something's wrong and i couldnt find what is it. #include <stdio.h> void fun1(void) { int a=0,b=5,c=0; int d[5]; for(a=0;a<b;a++) { printf("%d\n",d[a]); } } int main() { printf("enter 5 numbers"); … Software Development c++ | |
Hello! I need a help. I've got to make a program with insert and search function and I have to use to following. To create a database in which I will implement insert and search The part of code is given: [code] #ifndef CONTAINER_H #define CONTAINER_H #include <iostream> #include <string> … Software Development c++ | |
please help to with this program by mainly using arrays and pointers ,... i need this program to check 2 matrix files "if they contain any character and if they contain cout<<"invalid"; " and to open them from .txt file Help with Code Tags cplusplus Syntax (Toggle Plain Text) [code] … Software Development c++ ios matrix-multiplication | |
Hello, Attached are two codes. Please compile them and check the output. The question I have is that I am unable to understand why is it that the memory location allocated to tempmemcheck are 8bytes + the last memory location and not 4 bytes plus the last memory location. Similarly, … Software Development c++ | |
Hi folks, I'm just learning C++ (using Borland C++ Builder) and I am having difficulty reading data from a text file created in Excel. I am trying to read the data into vectors which I can then use in a model that I am building. The problem is that I … Software Development c++ | |
Hello, I have a function which calculates time for a specific operation and prints the time... However i want to call the time in another function and display its value... The code is as follows:- [code=c++]int encrypt() { double encryptTime,Add,sub,sft,mix; // add + sub + sft + mix calculations encryptTime … Software Development c++ | |
Hi all, Please somebody tell me the code. I have : a textbox name txtfname a table named Customer (located in Database.mdb) the customer table has only 1 field fname. How do i create a connection such that whenever i click on add button, whatever is in the txtfname textbox … Software Development open-source visual-basic | |
Hello, I have a statically linked library, which I'd like to convert to dynamically linked one. For that I'd have to export symbols. My question is what symbols should I export in case of the interfaces. Here is an example [CODE=C++] // ----- IA.h // Interface class class IA{ static … Software Development c++ | |
Hi, Plz help me... My project is Sales system using DAO I need the code for: Password code System (to generate the Item code) Item Entry code, Item Inquiry by description, Item Inquiry by quantity on hand Item Inquiry by unit of measure Item Inquiry by unit price Custumer Entry … Software Development visual-basic | |
I'm having some trouble with dynamic memory allocation of a struct. The struct looks like this: [CODE]struct J { int w; int s; };[/CODE] During the execution of the program, the following line of code results in a crash, which when debugging was because of std::bad_alloc, which does not make … Software Development c++ | |
Just a quick question, I am working with classes and I was trying to rename one as an array, ie: [code] addressType addresses[n];[/code] But I have decided not to make it an array. So is this a legal statement? [code] addressType addresses;[/code] Or does that only work for arrays? Thanks | |
Hey, i was just messing around and made a calculator and was just wondering if there was a way i could make it shorter? I'm not really bothered i just want to know? [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { system("TITLE My Calculator Program."); system("COLOR 4"); double … Software Development c++ | |
Hello, I created an ArrayList with lists and arrays (randomly chosen) of queues and now need to get access to these lists and arrays to add, remove and display elements in them. How could I do this? I tried ArrayList methods like get(int index) and iterator(), but it just shows … | |
My goal is to write a problem that will read in a length in feet and inches and output the equivalent length in meters and centimeters. As noted, There are 0.3048 meters in a foot, 100 centimeters in a meter, and 12 inches in a foot. I am only having … Software Development c++ | |
Just editing my calculator and looking at what functions math.h had and i came across pow, My program compiles and things like that so no error but if I'm not mistaken the answer is wrong. 6 ^ 1 = 6X6? = 36 (IS THAT CORRECT??) JUST IN MY PROGRAM IF … Software Development c++ | |
my problem is when want to include the matlab build library dll file in c# project there will be an error! anyone have experience with this problem and solution for it? thanks! problem description this is my simple matlab code [code] function y = getMatlabMagic(x) y = magic(x); [/code] Then … Software Development c# | |
Hi all, I am trying to install MySQL++ on Windows XP and use it. I was able to install it in Linux because the website: [url]http://tangentsoft.net/mysql++/[/url] provided an RPM that built the libraries for you. As far as I can tell, no such thing is supplied for Windows. Supposedly, MySQL++ … | |
Hi, I am working on a project wherein one program writes to a file, but allows a different program to read from that file BEFORE the first program is finished writing to it. In this project, the first program is a game. When someone scores in the game, that activity … Software Development c++ file-system | |
Hello, here goes. I am receiving the following three errors when compiling my new template matching plug-in in imagej C:\Program Files\ImageJ\plugins\Template_Test.java:61: '}' expected. } ^ C:\Program Files\ImageJ\plugins\Template_Test.java:63: Statement expected. public double match(String addr) ^ C:\Program Files\ImageJ\plugins\Template_Test.java:93: Class or interface declaration expected. } ^ 3 errors, 1 warning I'm pretty sure … Software Development java | |
Can anyone tell me how I can read the resistance between pins 4 and 6 of the serial port using VB or c++? Software Development c++ | |
I wrote a program to calculate a loan, the program compiles and works fine, but I get an answer I do not understand. The answer comes out "$1.#J". I am pasting the code here I am using, I am not worried about the code it is a pretty simple set-up … | |
I have a two part assignment. Part one is to create a menu driven program using variables to do certain tasks. Part two is to convert the variables being used into 2 arrays. The code for part one is post below and works perfectly for everything that is required. My … Software Development c++ | |
Hi everybody :) I have a big problem with embedded Python. I develop a plugin for a C++ application and want to "teach" this app Python Scripting, that users are able to script their own functions. the App = The C++ Application plugin = my plugin I develop for the … | |
[B]Game I am about to make:[/B] Coins are randomly drawn from a set of possible coins and arranged in a line. Two players alternately remove and collect a coin from either end of the line. The game ends when all the coins are removed and collected by the two players. … | |
Hey all, got a syntax and run prob with a program I'm working with that takes in rainfall amounts and then shows the total rainfall amount and then gives an average of. I then end up displaying those figures for the user. as you can see below in the CalcTotalAndAverage … Software Development vb.net | |
The program as it is generates: [ICODE]>Parent1 >Parent2 >In Child >Parent3 Successfull...[/ICODE] If I remove the comment from line 31 - just below "//THE PROBLEM:" so the "gets(buff);" is executed it gives: [ICODE]>Parent1 >Parent2[/ICODE] and... waits (both parent and child processes running - both waiting). I would like to be … Software Development c++ file-stream | |
[B]Hi, How to connect to sql server...on a remote system using the IP address of the machine. I actually want to start the MSSQLSERVER on a remote machine using the sql service manager. how can this be done. thanks.[/B] Software Development | |
Hi all Ive writing a simple j2me program to read from a file. Im running the midlet on a pda but im having trouble accessing the file. Im using J9 JVM on a Dell Axim, ive also installed the JSR-75 (which is need to access files), however im still having … Software Development file-system java | |
Please help i'm trying to click on the screen just inside the box coordinates of (x,y) but it clicks everywhere on the screen!! [code=cplusplus] void cursorpoint() { #include "cursor.h" int x ; int y ; //x will have the x position and y will have the y position of mouse … | |
Hey, Say if i made a program where people could register a account, but if they closed the window, the program would close and not remember passwords yeah? Well if i used the open file etc could i save the password's to a file so it remembered them? Many Thanks. … Software Development c++ | |
![]() | Hey pls suggest a suitable topic for a final year project for the BSc. has to be feasible to do.. i have an average knowledge of Java. Thanks. Software Development java |
I'm trying to parse through a large file (544,000+ rows). I'm pulling information from each row and creating a SQL statement with that information, and trying to remove duplicates. Here is my current code: [code=Python] try: fdata = open(vhdat).readlines() except IOError, detail: print "Error opening file. ", detail # Define … Software Development python | |
Hello: I'm using VC# 2008 , I created a simple project, I want to make my project is executed, it must run even if there is not VC# installed on the computer???Any idea please.... Thanks in advance... Software Development | |
Hi everybody, I have following code: [ICODE]Public Class Form1 Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click Dim dayChange As Date = dtp2.Value Dim answer As Date answer = dayChange.AddDays(1) dtp2.Value = answer End Sub End Class[/ICODE] Working : each time I click btn1 datetimepicker changes … Software Development visual-basic | |
hi, is it possible to make any control (like button/textfield) transparant, just like the "alpha" method in flash? tnx | |
Hey guys, I'm working on a basic search engine and am really close to completion. I currently have a function that takes a string and compares each word and its synonyms to a webpage. My output at the moment is [("closeness" percentage of terms to webpage, webpage contents,(x,y),(x,y)...(x,y)] I am … Software Development python | |
Hello All, I am trying to write a program that gets input from a USB Tv Tuner and records/captures images for further analysis. Could someone point me in the right direction and tell me what I need to do to enable my program to read in from a USB port … Software Development c++ | |
Hi, scheduler.py has a function weekdaytask. It needs five parameters as stated in the scheduler.py. weekdays and timeonday I figured out. You tell me what is name and action, args=None, kw=None ? BRgds, kNish ===================================================== class WeekdayTask(DayTaskRescheduler, Task): """A task that is called at specific days in a week (1-7), … Software Development python | |
Hi all Does anyone know about any software which will help me in making a question bank for my students? Also I want the software to help me in making a question paper for the students from the question bank that I create. Thanks in advance any help will be … Software Development visual-basic | |
i got until here.. [code=java] public class ButtonListener implements ActionListener { public void actionPerformed(ActionEvent buttonEvent) { int delay = 1000; //milliseconds ActionListener taskPerformer = new ActionListener(){ public void actionPerformed(ActionEvent evt) { JFrame myFrame1 = new JFrame(); MySadFace sad = new MySadFace(); myFrame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); myFrame1.getContentPane().add(sad); myFrame1.setSize(400, 200); myFrame1.setVisible(true); } }; Timer test … Software Development java | |
Hi, first time poster here and I am trying to run the Twofish implementation that I found online. I have a very basic knowledge of C++ and I am only trying to get these files to run so that I can analyze encryption times and decryption times for a class … Software Development c++ encryption visual-basic visual-studio | |
You will read in a file supplied from the commandline (filename.ext,) and write/overwrite out a file which will be called (filename.ext.mng.) This file will be essentially the same as the original file, but will have all characters on all lines the reverse of the original. For example: The original file … Software Development c | |
I'm writing a program that opens another console application with redirected input and output handles. I don't get any errors when I run this, but the console closes immediately, despite the system("pause") at the end. With the current solution, I have it redirecting to files, but another solution using pipes … Software Development c++ | |
Hey, I've made a nice class Tween, and any control on the form can call it like this: Tween tw = new Tween(btn_generate, "height", 40, 0.4, "easeOut"); BUT, would it be possible to call the tween function like this: btn_generate.Tween("height", 40, 0.4, "easeOut"); That would be a huge improvement tnx Software Development | |
[code] #include <stdio.h> #include <dos.h> #include <conio.h> int main() { int i; printf("CMOS Dump (format [address=value])"); for(i=0;i<128;i++) { outp(0x70,i); if(i%8==0)printf("\n"); printf(" [%2x=%2x] ",i,inp(0x71)); } } [/code] This program compile but not run ,it give runtime error. How to solve it?? Software Development c++ | |
does anyone know the code to output "Wrong password final try" on a 2nd unsuccessful password input? and then make the program go back to the default start position for the program below? [code] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; static const int password=1705898; int main() { … Software Development c++ | |
Hi everyone, Please bear with me this is my first post here at daniweb. I usually develop in C or assembly for embedded systems, but occasionally I have need to develop a PC application using C/C++ and have relied on Visual Studio C++ 6.0. Unfortunately I recently purchased a laptop … Software Development assembly c++ visual-studio | |
Hi, I'm getting seg fault in this [code] #include <iostream> int main() { char *p; *p='w'; std::cout<<p; return 0; }[/code] I'm sure it is due to the line [code] *p='w';[/code] I interpret this line as [QUOTE]Value at address p = 'w'[/QUOTE]. I would like to hear an explanation on why … Software Development c++ | |
hi,, can anyone tell me how to use constraints in VB.net,,, like i mean to say if i have value 10 to 20cm,, or it can b some other also,, n i wana put some constraint to that if the user wana put value above or below this value , … Software Development vb.net | |
Hi! I'm new to python and having some troubles comming off java's very strict and formal OO approach. why does the following code snippet below throw this error, when I'm trying to call GenerateMoves() on an object? NameError: global name 'CheckIfRegularMove' is not defined i am trying to call the … Software Development python |
The End.