132,726 Archived Topics
Remove Filter ![]() | |
The code was written for fun, and it is by far the most complicated program I've written yet. It's also my first step from C into C++. I have some training in algorithms but almost none in coding. It is pretty long and I don't expect anyone to analyze the … | |
hi plz help me i am getting the above error here i am attaching the program #include<iostream.h> #include<stdio.h> #include<conio.h> #include<math.h> using namespace std; int main() { int a[10],t,n,pos; clrscr(); //Sorting the elements in the array. Sorting technique name is “Bubble Sort” cout<<"Enter Elements into the Array"; for(int i=0;i<10;i++) cin>>a; for( … Software Development c++ | |
Why use delegates? I understand HOW to use delegates, but in what situations would you actually use them? The examples I see in the literature are all in situations where the code could just be written without ever using them. Software Development | |
Is my understanding of code generation in WinForm apps correct? When you create a program that features a single Windows Form using Visual C#'s Windows Form Designer, three source files are created: 1. program.cs, which: .....a. does some preliminary configuration of the form and then launches it, and <-- couldn't … Software Development | |
Good day to you all, Here is what I am trying to do: I am using an XSL transformation to change my input.xml in output.xml. output.xml contains a set of rearranged tags from input.xml One of the tag in input.xml is <id>value</id> I would like the xsl to generate the … Software Development xml | |
Hi. I'm making a class in an include file. I ran into some touble...When i try to compile, this is what comes up: [CODE] c:\...\renew.h(25) : error C2660: 'localtime_s' : function does not take 1 arguments c:\...\renew.h(36) : error C2660: 'asctime_s' : function does not take 1 arguments [/CODE] Here … | |
Hey all, I have requirement, on the basis of indicator = 'TL' I have to pick CoverageName and Limit and add the amounts of similiar coverages. Is there any way I could do that. Here's xml: <Policy> <Vehicle id="v1"> <Coverage> <CoverageName>ABC</CoverageName> <CoverageLimit>Upto 50,000</CoverageLimit> <CoverageAmount>100</CoverageAmount> <Indicator>TL</Indicator> </Coverage> <Coverage> <CoverageName>EFG</CoverageName> <CoverageLimit>Upto 50,000</CoverageLimit> … Software Development xml | |
yea, this is long.. but how do i make this repeat? At the end it's suppose to ask "do you want to do this again, y for yes, n for no" where yes is repeat from the beginning and no is exit. I think i messed it up............................ someone help? … Software Development python | |
Hi, I found a code that displays multiple images but you have to supply its filename first before it can access it. Is there a way to display an image as soon as it is captured by the camera? The GUI that I am creating is going to be interfaced … | |
I am trying to create a system where it has a number of queued slots and it accepts X incoming services. Now each service arrives/departs at different times so i could have one arrive 10 seconds from now and departs 20 seconds after arrival while the one after that could … | |
Okay so I'm trying to do this programming assignment and my random function isn't working. It's exactly the same as in my other assignments, but it's not working, and I've spent hours searching it. Can someone help me? [code=syntax]import random repeat = 0 while repeat != "no": random = input("How … Software Development python | |
Hi all i am having some problem with the logic. can someone help me with it please. i am doing a vb.net project say for example a company has a lot of branches. I need to print the sales report for all the branches. so when printing it should print … | |
I installed the xml file comparer tool from this link : [url]http://msdn.microsoft.com/en-us/library/aa302294.aspx[/url] and add the dll to my project and created this application : Default.aspx: [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form … Software Development web-server xml | |
I have a quote program I have made and i'm looking for a way to lock the records once it has been approved. I have a form that is filled out and a calculation that is done based on the fields that are linked to an sql table. What method … Software Development | |
I have some code that checks a value in a combo box before it executes but it does not appear to be seeing the value selected in the combo box until I select the item in the combo box for a second time. Note the value in the combo box … Software Development | |
When I run my code i get this error Main.java:44: illegal escape character y = news.indexOf("<\description>"); It points to the \d part and I cant seem to use this in the indexof function but I need to search for that exact string is there anyway around this? Software Development java | |
hello, in the following question c=4; d= (++c)++; //It works in gcc compiler d= (c++)++; //it didn't work what i have read that ++c or c++ returns a value which can't be again incremented or decremented (like 5++). i want to know how the first statement works and second statement … Software Development c++ | |
I am constructing a class "dequeint" of integers and using circular queue storage. I get my code to compile but its output is garbage? Please HELP! .h [code] #include <iostream.h> #include <stdlib.h> const int MAXSIZE = 10; typedef int NodeType; class dequeint { private: NodeType NodeArray[MAXSIZE]; int headi; //head in … | |
Hi, I'm trying to pass parameters to an exe file using C++...i tried the following code: [code] system("FileName.exe"); [/code] but this command line just fire the .exe file without passing any arguments... Thanks, Mostafa Fouly Software Development c++ | |
[INDENT]Hey All, This is my first post, so I'll do my best... I'm writing a Python app (using wxPython for the GUI) to copy large amounts of files. Each file is about 8-15 MB and there could be as many as 150,000 files. I'm currently using shutil (either [icode].copy(), .copy2() … | |
I have a problem of interfacing 2 systems of different manufacturers.While one system sends data in 32-bit floating format,the other system understands data only in integer format(16 bit ,32 bit etc).my problem is to convert the 32 bit float data to integer format that can be recognized by 2nd system(its … Software Development c | |
I have this Instance of class A, which i first assign, then assign again, but the compiler calls the destructor AFTER they class has been constructed the second time, why? [code] class A{ public: int *Int; A(int b) { Int = new int(b); cout << "CONSTRUCTOR " <<endl; }; ~A() … Software Development c++ | |
I'm fairly new to C++ programming and I would like to ask you a (maybe strange) question... The code below compiles correctly with both: - the latest MinGW-compiler - Borland C++ Builder Compiler 5.5 (from the free Command Line tools) However if I run the program (after compiling with the … Software Development c++ | |
I made program take number from user then display the factorial of this number >>>> The program works well but if I enter 20 it crashes. I need help how to accept big number in my program ?????? This my program [CODE]#include<iostream> using namespace std ; long long Fact(long long … Software Development c++ | |
This is a part of my homework. I have completed part 1. Part 2 asks that I re-write my part 1: [CODE]"Write a modified version of part A, in which the function is to be called as though it had the following prototype: void sumPowers(int n, int *pSum);[/CODE] is this … Software Development assembly | |
This is program i made (basic mash); I want to make it so that the program will ask if you want to repeat it again. "n" = exit. and anything else makes it repeat.....can someone help me? I'm not sure how to do it ... [code=syntax] x = 0 import … Software Development python | |
Hey i have a code where i want to add/subtracrt 2 big integer. But i don't know how to do the carry thing. Does anybody has an idea? Here is my Code: [code=c] #include <iostream.h> #include <string.h> #define SIZE 40 class Huge { public: Huge(); void menu(); void rules(); void … Software Development c++ | |
Hey guys, I am trying figure out a way of updating my program. Since I am a newbie to programming I have no idea where to start. My first idea was to download a new jar, launch it, kill the old app, and then delete it with the new one … Software Development java | |
Please provide me a method or script for opening remote connection to remote windows systems from a windows system for doing admin tasks like assigning a local user admin rights to the remote windows system. Well Win32 Net:Admin can be I think, used for getting local user properties or group … Software Development perl session windows-server | |
I am trying to write a program that in it I have to search through some text and to find something and I dont know where to start I have some text in a String and for example I need to search through it and store everything between <title> and … Software Development java | |
Hello All, I need to trigger an event on application.exit on windows application (vb.net).... how could I handle the applicatoin.exit event Software Development vb.net | |
Hi, I am trying to debug my shell script by bashdb. My script take as argument "--gdb", so I wrote [quote]bashdb myscript.sh --gdb[/quote] However, this way it will produce error that bashdb: [quote]unrecognized option '--gdb'[/quote] If I quote --gdb as [quote] bashdb myscript.sh '--gdb'[/quote] then I will end up with … Software Development shell-scripting | |
I have a problem in these code as the error message show that the m1 and 2 is unassigned local variables [CODE]using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.WriteLine("Enter th number "); int x= int.Parse(Console.ReadLine()); RomNo(x); Console.ReadLine(); } static void … Software Development | |
I am using C# 2005 and SQL Server Express 2005. My table "PreRegistration" has a field named "FormNo" of data type smallint. In my dataentry form, i need to display the next available FormNo in the text box. The program should find the last alloted FormNo, add 1 to it … Software Development | |
Hey. I'm currently working on a project where I'm suppose to read album titles including song names from a file into a 2d array. When I input the cd number, only that record should show up in the console. E.g. Cd number: 1 Album title Song 1 Song 2 Song … Software Development c++ | |
hi, I am trying to declare a 2D array in a member function in C++ , where its size changes everytime i run the program. but it is giving error like " a constant expression is required " but i cannot make the size constant, as i need to change … Software Development c++ | |
I have some strings like '/home/dir/file1/file2' , '/export/home/file1' '/home/dir1/dir2/folder1/file' I want to only to print the values that come after first two occurences of '/' like for first string '/home/dir/file1/file2' I want to print 'dir/file1/file2' How to do this Thanks Software Development python | |
Hi, i wanted to link options selected from Comb box A (general) to specific options in combo box B (specific). I want to pick a word in Combo box A that has specific words/phrases in Combo Box B show. But not all the words to show in the combo box … | |
Hey everyone, My problem is that I have a program which is to be used for teachers. One of the functions I am implementing is a SearchStudent function. Basically it checks a multidimensional array I created called MyClass[MaxSize,MaxGrade], MaxSize being the amount of students that can input into the program … Software Development c++ | |
this code is used to insert one record....how do i insert multiple records?? [code] Set connect = CreateObject ("ADODB.Connection") connect.open "DSN=OPTUMETL;Driver= Oracle in OraHome92;Server=urnts1.uhc.com;UID=OPTUMETL;PWD=OPTUMETL" Reporter.ReportEvent 0, "Database connection", "Successfully connected to URNTS1" Set objRecordset = CreateObject("ADODB.Recordset") ' Stmt to execute the code query="INSERT INTO STG_CARE.ASSESSMENTANSWER(ANSWERID, ANSWERGROUPID, ANSWERTEXT, DISPLAYSEQUENCE, ISEXCLUSIVENO, ISEXCLUSIVEYES, … Software Development oracle visual-basic | |
Hi, Im trying to make a media player in Eclipse. Its just a simple thing not an advanced one but i cant get it to work. I have looked at some examples and tried to create a simular version. I could really use some hints on how to make it … Software Development java java-swing | |
Hi, I'm trying to print two arrays to a file, these are pretty large. However I want to print them as two lists. This is an example of what my output is now: [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. … Software Development python | |
Hi I'm new in this community. I am working on a GUI using wxPython and I would like to embed an Image-to-Video converter in my program by pressing a button. Is this possible? If yes, can someone please send me a code? I will really appreciate it. Thank you so … | |
Hi, I got this code from My trainner.He asked me to debug.I tried my level best to debug. but still it shows the K meanspoints class needed error. This alone i could not solve. I also tried with vector class, but it shows error. please help me. [code=java] /* Implements … | |
/* Problem statement... You go to a wedding reception, and there are a lot of people. All of these people 'know' the bride or the groom in some manner. Additionally, a lot of them may know each other in one or more manner. For example, let's take Ann and David, … Software Development data-structure java | |
Hello there, I have some codes with me to plot my graph that looks like [URL="http://www.vanth.org/vibes/images/normalECG2.PNG"]this[/URL], but I can't really understand what is going on in the codes below that is used to calculate the Y-coordinate in order to plot out the graph: [CODE]Function findY(ByVal index As Integer) As Long … Software Development visual-basic | |
I have a program that is supposed to draw circles every twentieth of a second every time a button is clicked. When the button is pressed, a function is called and a for-loop is executed 25 times. Within that for-loop, [ICODE]repaint ()[/ICODE] should be called. Within the [ICODE]paintComponent[/ICODE] function, random … Software Development java java-swing | |
I have a thesis project in Visual Basic 6 using Bar Code Reader. This project is a convenient store that reads the bar code from the items or products in store. The cashier will point the bar code reader to the bar code of the items, then the barcode number … Software Development visual-basic | |
I need to delete the row in access database through vb6.0... I am using the search button to search the records,and then i need to delete those from the database,using the delete button. In the same way i need to upadate/edit the info in vb form and update it to … Software Development visual-basic | |
What would be the most efficient way to check that a series of text boxes are completed prior to allowing the execution of code since executing the code without values being completed errors out the program. Software Development |
The End.