132,726 Archived Topics
Remove Filter ![]() | |
Hi there!) Guys please tell me - where can I see the realization (or custom realization) of fprintf in C++ ? I'm especially interesed in working with no fixed number of passed parameters. I need to made somethings like fpintf() by myself but i don't know how.... big thanks in … Software Development c++ | |
Instead of using User input , how can I take an parameter input and convert it to a string, where I can than check for for input values. char values[17] = "0123456789ABCDEF" ; char numIn[15]; int num[15]; int ob, nb, i; Software Development c++ | |
I have two tables containing different fields bar one. I want to merge the two subject to comparing one field using sql - is it possible? Table1 has fields: conkey reg when where 1 ABCDE 251011 EGLL 2 BCDEF 261011 EGLL 3 DEFGH 271110 EGKK Table2 has fields: conkey type … Software Development visual-basic | |
As the beginner I want to know Is it necessary to add MDI parent for Library management System? Can this be done without MDI Parent too? And also is it necessary to add the below code for mdi parent of every project? Private Sub ShowNewForm(ByVal sender As Object, ByVal e … Software Development vb.net | |
A while ago I created a PHP application that looks at xml files. I have now been tasked with converting this to Python or Django or Turbo gears(anything as long as it's Python something). I am new at Python and while I have played with Django a bit I have … Software Development php python python-django | |
Hello, I have two problems. First, I am trying to have a set background image that displays with two jbuttons on the bottom. My error is that when the back ground image is displayed it hides the buttons (until you mouse over them). Second, I want the buttons on the … Software Development display java java-swing | |
Hello Im making a application which needs some administrator priviliges. The thing is that this besides 7 will also run on XP. Ive been told that changing in the app.manifest the requestedExecutionLevel is one step as this basically will require a admin <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <!-- UAC Manifest Options If you … Software Development virtualization | |
Hi i want to join two tables,'Employee' and 'Dispatch'. Dispatch has column 'DispatcherID' and 'TechnicianID' which are both foregn keys to EmployeeID in Employee table.I want to join these two tables using EmployeeID so that i can obtain the matching name to each id.but it only works when i make … Software Development vb.net | |
[QUOTE=mb01a;1655781]Let me think about that .. How about - [code] dim sql as string sql = "select tablename.* from tablename limit 5" ' other things you'll need are defined elsewhere in your program [/code] Now, you'll need to add the code that connects to mysql, then open the recordset and … Software Development display listview visual-basic | |
hey everyone.i have a project that requires the use of a barcode scanner then apply it to a vb6 application i dont know how to do this. the barcode scanner will read the barcode from the id of an employee. then after reading it, all the details of that employee … Software Development visual-basic | |
This is a minor issue that I'm having in a larger program. The program is for factoring a second degree polynomial. The function below is supposed to find the factors, which is does, but let's say a=6, b=1, c=-12 so a*c=-72 and I want the two numbers that will add … Software Development c++ | |
i want to show a message msgbox " you have done" if web browser contains "you have login" if WebBrowser1.Document ????????????? then masgbox "done" Software Development visual-basic web-browser | |
Hey guys, I'm trying to make my first iphone application and have encountered some errors as expected. I am trying to uitlize UIAlertView to check if the setter for a password and email instance has been filled. If they are nil, then the alert should be invoked and display the … Software Development ios iphone objective-c | |
Can anybody please help me with these questions. I have an upcoming exam, and I'm sure this question will appear. Thank You. (a) What is exception handling? (b) Write a C# code segment that demonstrates how to catch an exception when a String variable cannot be converted to an Integer … Software Development | |
I am having some problems working with the tell method when working with a file. Basically what I am trying to do is use the tell method to find where I currently am within a paragraph and to only display the characters up to a certain tell count. For example: … Software Development python | |
This is my first time to try using STL maps. The code looks correct as far as I can tell, but when I try to compile a test file that does nothing but include the header for the class and declare a variable of that class, I am getting compiler … Software Development c++ | |
This code is supposed to find the nth prime number (n being input by the user). I have the code to calculate whether a number is prime or not, but I don't know how to get the code to display the nth prime number. #include <iostream> using namespace std; void … Software Development c++ | |
Can anyone help me make a code or advice I need a code that takes 2 parameters eg. integer 123 and base number from 2 to 16. Using argv[1] and argv[2] any help greatly aprreicated Software Development c++ | |
I need to fill an array according to the order of number in a string of text a user provides(a telephone number). For example if the number 555-5142 is dialed, the first 3 numbers are five, so char firstLetter, secondLetter, and thirdLetter would be filled with 'J','K,'L'. I've looked at … Software Development | |
Need to add a JCombobox to select the user’s State of birth, and a JRadio buttons to indicate their gender. Also, add a JTextArea to the form. Once the user clicks on the JButton the application will display all of the user’s information in the JTextearea. All the classes work … Software Development display java java-swing | |
Hi, I am quite new to C++, Currently, I'm learning how to do a problem which will take a text file of thousand most common words in the english dicatonary with another text file. After finding how many words are in said text file show the percentage of which are … Software Development c++ | |
hello, I have a camera that will be connected to a DVR. I want to save the recordings to a database inorder to use this recordings in a program that i will develop later. do any one know how to connect the DVR to the database or make it save … Software Development | |
I have searched for and read through over 50 examples of linked lists. I can barely make heads or tails out of them. Some are in C, some are in Java, some use templates, most only discuss theory and display flowcharts but have few explained examples. I need serious help! … Software Development c++ linked-list | |
![]() | Hi all. I am a newcomer to python and I am teaching myself from books, videos and on-line tutorials. I currently have a basic script I am working on (can't post the code right now as I'm away from my laptop), and I cannot figure out how to do what … Software Development python ![]() |
![]() | I have pretty much failed my class (4 weeks behind in an 8 week class that is currenlty at the beginning of week 8), but I am wanting to learn C++ for myself anyhow. I have visited http://www.cplusplus.com/doc/tutorial/ and gone through the tutorial, but cannot understand this assignment. I have … Software Development c++ linked-list |
Is it possible to add a button to the worksheet then write code for that button? Thanks for reading. Software Development visual-basic | |
*i am trying to copy the value of ar2[10] //in main. has the value 1,2,3,4,5 in ar[10] //(in struct node). empty array so to copy the value iam not sure if i could use a strcpy for ex, strcpy(head->ar, ar2); //here is my code struct node { int ar[10]; //empty … Software Development c linked-list | |
Okay, I know there is a prior article about this, but I used { } with my if statements, and it's still not working... is it because I have multiple if statements consecutively after another? #include <stdio.h> #include <stdlib.h> #include <time.h> int i, n,t, s[51],p=1,a,b,c; int main() { srand(1); for(i=0;i<=51;i++) … Software Development c | |
I am in the process of creating a jackpot game. At the moment I am stuck trying to cycle through the different pictures and stop on a random picture for 5 different slots. So far I have this for animating: private void animatePictures() { Thread timer = new Thread() { … Software Development java | |
I am trying to implement ROCK algorithm in JAVA. It is used to cluster categorical data. I have like N statements that are to be clustered. This is a good example of this algorithm: faculty.ksu.edu.sa/ykhlef/mscThesis/clustering-P1.ppt I have coded till number of links for each cluster. But I cannot understand how … | |
I'm trying to print the selection of my picturebox as the background of the image. I can get the image to show, but it's not the height and width of the background. Any help would be appreciated. Thank you. ' Fig. 15.24: CheckWriter.vb ' Printing a paycheck. Imports System.Drawing.Printing Imports … | |
![]() | How can I turn radio button in another class which I cannot change but I need to turn it on from another class? How can I pass action event to it? Thanks Software Development java ![]() |
Hi guys, I'm programming a firewall and so far I have complete the driver coding, but I don't know **How to send IRPs from user applicatio to the dirver?** I have used `IoCreateSymbolicLink` to establish the connection between the usermode and kernelmode but I don't know how to send information … Software Development c++ | |
Hello Friends, I m Developing an windows form application. i have a winform on which i have datagridview and i am saving the data to Sql Server database from datagridview directly . i m using the following code for connecting & saving data of datagridview to database using button click … Software Development open-source sql vb.net | |
Hello, I have been reading an article on comparing data, and have been given this code: for(i = 0; i < matrix1W; i++) { for(j = 0; j < matrix2H; j++) { diffSum += abs(matrix2->pData[(row+j)*backW+(col+i)] - marix1->pData[j*matrix2+i]); } } Now it works when using arrays, but, I'm using vectors, is … Software Development c++ | |
Hi there, I need to call a dll file that was written in VB.Net, in my java application using the jacob [com.jacob.com] , after successfully registering the dll file, I am trying to instantiate an ActiveXComponent object using my dll, : [QUOTE]ActiveXComponent myComp = new ActiveXComponent("Myfile.dllfile");[/QUOTE] where Myfile.dllfile is currently … | |
Per the title, I'm trying to make my GUI change with the RadioButton selection. Specifically, I want to control which JLabels and JTextFields are displayed based on the RadioButton selection. Right now, my GUI displays the Employee ID, Last Name, First Name, Credit Rate, and Credit # Labels, and their … Software Development gui java java-swing | |
Hello! I want to ask you guys if anyone can help me correct my current program to read graph from a file instead of adding manual matrix in program. Example graph: graph.txt 8 1 2 3 1 3 6 1 8 1 2 3 2 2 8 2 3 4 … | |
hi i write this code in perl i dont know why that not work... sub Again { $dirtoget= $_[0]; if(opendir(DH, $dirtoget)) { @thefiles = readdir(DH); closedir(DH); if(@thefiles) { foreach $f (@thefiles) { next if ($f eq "." or $f eq ".."); print "$f\n"; if(-d "$dirtoget/$f") { Again("$_[0]/$f"); } } } … Software Development perl | |
Is there any standard function in gcc that is equivalent to getch() so that I can read the input without hitting enter key? ![]() | |
import java.sql.*; import java.util.ArrayList; import java.util.Iterator; /** * * @author Animesh Pandey */ public class dbConnect{ jaccardIndex ji; public float calcJaccard(String s1, String s2) throws Exception { ji = new jaccardIndex(); float sim = ji.Jaccard(s1, s2); System.out.println("calcJaccard"); return sim; } @SuppressWarnings("static-access") public int getLength(String s) throws Exception { ji = … Software Development java | |
I wrote this program... Just gave a try!! i got a problem with searching a string in file.. the **"checkp"** used in the login function, returns a value **"1"**, whereas it must return a value **"0"** Hence my program fails... what i felt is, the file i'm opening, **"web_reg.txt"**, in … Software Development c | |
![]() | Hi All, I have to split a text into words using both spaces and punctuation as delimiters. Punctuation includes characters like .,!?:;'"- I am using the split function as it follows: [CODE]wordsArray = strLine.split("[.,!?:;'\"-]+\\s*");[/CODE] However, this only splits my text by spaces and ignores other characters I've set as delimiters. … Software Development java |
![]() | I have problem with this part of the code private char encryptChar(char c, int shift) { if (Character.isLetter(c)) return (char) ('A' + (c - 'A' + shift) % 26); else return c; } private String encryptMessage(String msg, int shift) { String result = ""; for (int i = 0; i … Software Development client-server encryption java ![]() |
a class of 20 students. The information of each student contains ID, Name, Sex,exam Scores (3 quizzes per semester), mid-term score, final score, and total score #include<stdio.h> #include<conio.h> void main() { struct student { int id; char name[20]; char sex; int mid; int final; int total=mid+final }; int i struct … Software Development c | |
#include<stdio.h> #include<conio.h> void main() { struct student { int id; char name[20]; char sex; int mid; int final; int total=mid+final }; int i struct student b [19]; for(i=0;i<20;i++); { printf("student %d enter your details\n\n",i+1); printf("enter your id"); scanf("%d",&b.id); printf("enter your name\n"); fflush(stdin); scanf("%s",&b.name); printf("enter your sex\n"); fflush(stdin); scanf("%c",&b.sex"); printf("enter mid … Software Development c | |
Hi, I'm looking for a way to write a recursive method which convert a decimal to value to its binary equivalent. I can write a method which returns the result as a String, but I can't figure out to write a method which makes calculation with integer values and returns … Software Development java | |
hi i am trying to change an input from upper case to lowercase.I am not getting it right.When i key in say Liverpool or TIGERS it only show l and t respectively. Need assistance #include <iostream> #include <cctype> #include<iostream> using namespace std; int main() { char s; cout<<"Name your favourite … Software Development c++ | |
iam trying to store all the data in to a struct so i can change it later. //this data is in file abc 1 11 22 def 2 33 ghi 0 22 11 33 asd 2 i was planing on making a array of structs. so 1st line will have … Software Development c linked-list |
The End.