132,726 Archived Topics
Remove Filter ![]() | |
I don't what's wrong with this simple piece of code I wrote. It keeps crashing. Output Screenshots: http://i.imgur.com/8xwet8m.png http://i.imgur.com/FXBa8YM.png #include <iostream> #include <stdlib.h> #include <conio.h> using namespace std; int main() { char *strg; cin>>strg; cout << "Hello world!"<< strg<<endl; getch(); return 0; } Software Development c++ | |
Hello, I'm having an issue with set and get method. When i clicked on a button, i set index as 1 however when i use the get method to get the index, the index is returned as 0. I want to call a method if the index is 1. here … Software Development java java-swing | |
i have a problem regarding classes . i have been given two files vector.h and set.h the vector.h file is : #ifndef VECTOR_H #define VECTOR_H class vector{ private: int *array; int max_size; //max size of vector int elements; //total element in vector public: //initializes everything to zero/null DefaultVector(); //initializes the … Software Development c++ | |
This code creates XML File Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim connetionString As String Dim connection As SqlConnection Dim adapter As SqlDataAdapter Dim ds As New DataSet Dim sql As String connetionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Danial\documents\visual studio 2010\Projects\ESI_PF_Payroll_V1\ESI_PF_Payroll_V1\Pay.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" connection = New … Software Development dataset file-system open-source pay-per-click vb.net visual-studio xml | |
Ok, it's a pretty dumb title but represents well what I need to know. I'm pretty much a noob in programming and I found a problem about finding the first 3 perfect numbers. I got it solved, but I wanted to see how far I could go. My computer can … Software Development c | |
i have to create a queue where the dequeue operations will be random. that is , a random location will be chosen, and deleted after returning the data stored at that location. i was going through the two underlying datastructures that im allowed to use **:** linked list , and … Software Development api data-structure java linked-list queue | |
Hi, I was trying to browse through the contents of an SD card containing the FAT16 filesystems using a HEX editor. I was looking up a person's program to navigate through the filesystem i.e. reading the master boot record, boot sector etc and he has used a "long" for fields … Software Development c | |
hey guys does any one has idea how to write a program which calculates all the characters in a sentence Software Development c++ | |
Hi, I've been trying to send a `BufferedImage` through a socket. I can get it to work once, but when I try to get another screenshot, it fails. The server usually gives me a `java.lang.IndexOutOfBoundsException` at `ImageIO.write(capture, "png", client.getOutputStream());` Server Code: //already told server i'm expecting an image try { … Software Development java | |
![]() | i added libmysql.dll as resource to my project ID_LIBMYSQL RT_RCDATA "LIBMYSQL.DLL" Image view :: http://s18.postimage.org/bcpf2s9jt/Untitled.png now when i try to find it using findresource function , i get error code : 1812 mean resource not found HMODULE hMod = GetModuleHandle(_T("libmysql.dll")); HRSRC hRes = FindResource (NULL, "ID_LIBMYSQL", RT_RCDATA); // RT_RCDATA application … Software Development c++ ![]() |
Hi I have a scenario that i need to implement. the scenario is below. I have a class handler and a class Healthmonitor. every 10 seconds i have to send a msg to HealthMonitor to update a variable. in one point if it didnt send a msg in a multiple … | |
![]() | Assuming that my DB looks similar to the following: User UserId ... PhoneNumber PhoneNumberId ... UserPhoneNumber UserId PhoneNumberId When I use EF and insert a record into User (that also has PhoneNumbers attached to it), it auto inserts into PhoneNumber and UserPhoneNumber. I can also update User and update PhoneNumber. … Software Development ![]() |
I'm learning about threads and Producer-Consumer model . I haved copy-paste the code from a book and i have a issue. When I run the program sometimes the Consumer gets the next number from the buffer even if the producer hasn't put nothing in the buffer. Example : Producatorul a … Software Development java | |
I am making an ABACUS MODEL program which adds counters to pegs. The program compiles fine but when i use the test that was issued to me (as pictured) it appears as though my program does not work as intended. I don't know if anyone will be able to help … Software Development java java-swing | |
Hello there, i know there is alot questions about this and source but i could not manage to get it working since im trying to make it using only one letter example F1 or F5 as hotkey to work on non focused form, but im also in need to get … Software Development vb.net | |
Hello! I have a problem about creating a menu, the switch statement doesn't break. Could somebody please help? The code is: do { /* ...get input... */ switch(choice) { case 1: submenu(); break; case 2: submenu2(); break; case 3: printf("\nThe program quits.\n"); exit(0); default: printf("\nNo such menu item!\n\n"); break; } … Software Development c | |
Group, I may have messed up bad. I need help. I was having trouble loading a database I had created with data. So I downloaded SQL Server 2008 Express that included the management tools. I tried to find and open the created database and never could find it using the … Software Development sql vb.net visual-studio | |
The above code computes the value of a mathematical expression supplied at command line by using the concept of converting infix to postfix,then evaluating the postfix expression. Any comments are appreciated. Software Development java | |
I need to multiply 2 matrices together using threads to computer each element. Ive been working on it myself but Im stuck at this point and Im getting an error. Here is the code I have. Can someone help in explaining what is wrong here or how to correct it? … Software Development c c# c++ matrix-multiplication | |
a. Write a C program to open and close a file given its name. Your program must check whether or not the file exists. b. Add a function for reading an opened file into an array of characters. You may assume the array is large enough to hold an entire … | |
Hi I have declared BYTE myKey[10]; and on executing the value stored in myKey is 0x9100 i need to do string compare this value with user defined value (9100) how can i do the comparison? i converted to int int tempkey = (int)myKey[i]; //(have put it in loop based on … Software Development c++ | |
hello i want to stop the music after pressing other song i tryed much different ways of doing it but no results please anyone help me i have this code ... package passwordsaver1; import java.awt.Dimension; import java.awt.Toolkit; import java.net.URL; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.swing.JOptionPane; /** * * … Software Development java java-swing | |
Hi, i would like to calculate the execution time of my program. is there any function available to enable it?? Software Development c | |
I am trying to make a vb program that reads a text file and manipulated the data within. For instance, my text file contains the following information: 27 rt 3 + 5 * 2 / 4 - 2 ^ 3 This is all the information my text file contains. I … Software Development vb.net | |
![]() | I need help with the code below. I coded using the For..Next statement, now I have to place the For..Next statement with a Do..Loop statement. Can anyone help down the right path? Thank you in advance. ` Dim strGrades() As String = {"A", "B", "C", "A", "B", "A", "F", "A", … Software Development vb.net |
Hello, I am trying to divide my dataset(iris dataset) into training and test sets randomly. My dataset contains 150 patterns. And I need to divide 90 patterns to test set, and the rest to training set. How can I do this? Help me with the C code. Thank you | |
Hello generous java coders!I am really in a desperate situation now. I have a working gui code here: import java.awt.event.*; import java.awt.*; import javax.swing.*; public class CountdownTimer extends JFrame { JLabel promptLabel, timerLabel; int counter; JTextField tf; JButton button; Timer timer; public CountdownTimer() { setLayout(new GridLayout(2, 2, 5, 5)); promptLabel … Software Development gui java java-netbeans | |
| |
basically i am working on a project for uni, which is to create a form of an abacus model. - peg_array[] stores the number of counters/beads present in each of the pegs(lines) of the abacus. i am trying to use 2 boolean methods: "boolean removeCounter(int thisPeg)" "boolean removeCounter(int thisPeg)" thisPeg … Software Development java java-swing programming-construct | |
Hi I am trying to write a binary search function to search for a specific character in a character array sorted in ascending order. Whenever I run the code though nothing happens, there are no errors or anything, just nothing happpens until I terminate the program myself. Below is my … Software Development java | |
Why do I need a static class member? What are the advantages and disadvantages of it? Is there any way that I can have non-static member fuction without doing anything outside of the class (such as passing an instance)? class Control { private: HMENU ID; HWND Handle, Parent; std::string Class, … Software Development c++ | |
I'm trying to populate a dataset from an excel sheet but I keep getting a "could not find installable ISAM" error. (In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.) on the adapter.Fill line. Already tried changing … Software Development assembly dataset open-source vb.net visual-studio | |
So currently I have been working with a program that is working with 2 threads, one is used to scan a webpage, download it's data, parse it, and then update a form. The other thread is responsible for running an elapsed time, that gets the elapsed running time, and then … Software Development | |
I have to perform the encryption and decryption of the file based on des algorithm. The encryption performed well but the decryption having the error as *`Bad Data`* when perform the readtoend function. The coding is given below: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; … Software Development algorithm encryption file-stream | |
![]() | Hello everyone, I'm making programs from quite a while now, and they don't work on most computers, people keep asking me: What are the system requements for this and that program? My answer is: I don't know ! Basically **I need a program that tells me what .NET Framework version … |
This might be (in fact I can probably say it is) a really dumb question but it's been doing my head in since I've been looking at it. First off, I've been looking at C++ for a short time and it's confusing to me more than what Java ever was. … Software Development c++ | |
Hello, well this suddenly surprised me .. dunno why ... i was trying to solve the binary-tree implementation ... where i noticed using root.left = new node bla bla My question insert(Node root,int value) root.left = new node(null null value) Etc ... The function doesnt create a copy of the … Software Development java | |
I need to modify an object in a QVector. I'm the `[]` operator to point to the object, which is overloaded with a constant and a non-constant version. The problem I'm having is that I don't know how to specify the non-const version, so I get compile errors telling me … Software Development c++ | |
I've been looking around for an answer to this but have had no luck. I need to take two files and print the top most frequent words they have in common as well as their combined(sum) frequencies. This might be simple but I'm pretty new to programming. Any help? def … Software Development python | |
class BTNode(object): """A node in a binary tree.""" def __init__(self, item, left=None, right=None): """(BTNode, object, BTNode, BTNode) -> NoneType Initialize this node to store item and have children left and right, as well as depth 0. """ self.item = item self.left = left self.right = right self.depth = 0 # … Software Development data-structure python | |
Need a little help on this since it seems to be vastly different than VB6. I have multiple forms and would like to set the Startup Position of secondary forms (form2 & form3) slightly lower, and to the right of the primary form (form1); similar to the 'cascade' effect in … Software Development vb.net | |
![]() | I got this snippet of code from a larger program I've been writing and I'm stuck. All I'm trying to do is read from a file line by line but I keep picking up the new line character, at least that's what I think it is. #include <stdlib.h> #include <stdio.h> … Software Development c file-system ![]() |
i'm having a problem with my project where i should read the inputs from the status port of a DB-25... Input = Inp(&H379S).... whenever i trigger one of the sensor the value of INPUT will be 135 regardless of which sensor i trigger or even if i simultaneously trigger multiple … Software Development vb.net | |
Good morning Guys, I've got this code currently running: private void button1_Click(object sender, EventArgs e) { SqlDataSourceEnumerator sdse = SqlDataSourceEnumerator.Instance; DataTable table = sdse.GetDataSources(); foreach (DataRow row in table.Rows) { instanceCombobox.Items.Add(row["ServerName"].ToString() + "\\" + row["InstanceName"].ToString()); } Which gives me the Instance and Name of the SQL Server over the Network. … Software Development sql | |
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Burger extends JFrame implements ActionListener { JLabel lblForAll, lblBelow, pic, pic1, pic2, pic3, pic4, pic5, pic6, pic7; JRadioButton rBtn, rBtn1, rBtn2, rBtn3; JCheckBox cBtn, cBtn1, cBtn2, cBtn3; JTextField txt, txt1, txt2, txt3, txt4, txt5; JButton btn1, btn2; ButtonGroup btnG; int ham=25, egg=15, … Software Development java java-swing | |
I am developing a VB6 application which connects with an Access 2010 database. I want the application to execute queries stored in the database. Some of the queries include Access functions in field names. For example- FieldName: IIf(Nz([AnotherFieldName],0)=0,3,[AnotherFieldName])" Is there a way in VB6 to execute the queries natively in … Software Development microsoft-access sql visual-basic | |
Is there a way to remove blank worksheets from an excel report that is generated in SSRS? I've done some research and i could find solutions such as removing blank rows and even entire sheets but only via marcor's in excel, which won't work in my case as the report … Software Development microsoft-office | |
Hi I try to Search for xp_cmdshell string in log.txt file but i got error? my $file = "c:/logdata.txt"; open (IN,$file) or die "Can't read $file: $!"; my $tag = "xp_cmdshell"; open(IN,"<",$file) || die "could not open $file: $!\n"; while (<IN>) { if (grep(/$tag/,$_)) { #Do something } } Close(file); Software Development file-system perl | |
Our assignment is to create a BankAccount class and a Windows Form Application GUI that can be used to track deposits and withdrawals. The user enters an amount to deposit into a textbox and clicks calculate. The amount is parsed and added to the account balance. Unfortunately, the account balance … Software Development gui | |
Hi how can i sort using Month i have January, February.... December i want to sort it out so the user will see it from January - December my column name is "Months" and it is in subitems(0) Thank you in a advanced |
The End.