43,549 Solved Topics
Remove Filter ![]() | |
Just need help with regards to this part, i'm meant to use scanf() to read a string from keyboard and return number of characters read, so i'm supposed to read a character string. The scan must then terminate at whitespace. A null character is stored at the end of the … Software Development c | |
#include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #define size 400 using namespace std; char infix[size],postfix[size],Stack[size]; int top; int precedence(char ch) { switch(ch) { case '^':return 5; case '/':return 4; case '*':return 4; case '+':return 3; case '-':return 3; default:return 0; } } char Pop() { char ret; if(top!=-1) { … Software Development c++ | |
//arr is the array int length;//for recive the array size length=sizeof(arr);//recive the array size cout <<length; length=length/sizeof(typeid(arr));//calculate the number of elements cout << sizeof(typeid(arr)); i'm using these code for calculate the number of elements in array. sizeof(typeid(arr)) these line is for give the type size, but isn't correct can anyone … Software Development c++ | |
Hello. Nearly finish this project, but can't sort the last code. I have faculty, staff, & partime employees, and they have ID, and what I want to do is sort by ascending order them based on their #ID. Everything else works before that. Here is my two codes, the Tester, … Software Development engineering java | |
Please help, it keeps on showing the exception msg "Failed" the message send never work Imports System.Net.Mail Imports System.Net.CredentialCache Public Class Sendmail Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = "" … Software Development vb.net | |
For my beginner Java class I am writing a program that will read data from inData.txt and write output to the file outData.txt. I have 5 errors that all say a symbol cannot be found but I'm not sure what exactly it's talking about or what is wrong. The error: … Software Development java | |
I have a pictude box which i want to load with a map,i know now how toget picture box coordinates and would like to conver it into latitude and longitude. thank you ps: i seached the net but could'nt understand it ,so please be simple as i am a new … Software Development | |
I have data grid and I have two radio buttons in the datagrid i.e approve or reject and also one button in datagrid i.e submit what i want to do is when approved button is selected and submit button in the datagrid is clicked for one row I want the … Software Development | |
Hi All, I have completed learning core Java and I want to move to next level in Java Study. I am really confused on what topic to cover next in JAVA . And I also don't know what are all the major topics in JAVA to study after Core Java. … Software Development java | |
This code is supposed to determine for a number of random numbers whether its odd, even , prime. At the end all random numbers should be displayed and the prime ones together with the number of odd and even numbers and their %. The part of the code to determine … Software Development java java-swing | |
I had to write a fraction calculator program and my only problem (I think) is when I input the two fractions it gives me garbage - for instance if I put 1/2 + 1/2 it gives me 1374389536/687194768 - can anyone help me correct this please? Thanks! divisionByZero.h [CODE] #include … | |
how i could import my txt file into access database 2010 using vb.net . the txt file as follow : 08-14-13 08:09:26 001 07 0000020016 0100000000 08-14-13 13:12:06 001 07 0000020014 0300000000 i should take into consideration the space between columns becauase this txt file is exported from a certain … Software Development vb.net | |
![]() | CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on … Software Development c++ |
Hi group, I'm looking through the book "Mastering Microsoft Visual Basic 2010" by Evangelos Petroutsos. I'm trying to work through a chapter on designing windows controls. In the first step the directions read: "Start a new project, and in the New Project dialog box, select the template Windows Forms Control … Software Development vb.net visual-basic | |
I am working on a form which uses an Access (oledb) database, I have a button to update, and other to insert a new client, when I insert a new client it successfully adds it to the database, but I have to open and close the form to update it, … Software Development vb.net | |
i am a beginner in python and still got a whole lot to learn.i have this exercise that seem too difficult to crack. check it out and see if you can help. here is a simple data set1=["01","34","29","16"] set2=["45","88","19","17"] set3=["56","21","57","20"] set4=["29","42","89","08"] set5=["19","45","56","20"] set6=["85","56","33","78"] using the data above, write this program … Software Development python | |
Well I initialize an array of 5000, along with using srand & rand numbers with a range. I want to Prompt the user to enter an integer to search (from the front of the array) & output the index location of the element found(-1 if not found). I attempted it, … | |
I am an amateur programmer that helps build some solutions for my company. I have an application that I did not originally create, but I have done a lot of modification. I think it was originally built VB 2005 and converted to VB 2010 where I have done most of … Software Development vb.net | |
Hello, I want to move a panel smoothly like a form. anybody can help me please? thanks ^_^ Software Development vb.net | |
i am using the following code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace GIS_assignment { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void pictureBox1_Click(object sender, EventArgs … Software Development | |
[CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim speech speech = CreateObject("sapi.spvoice") speech.speak(TextBox1.Text) End Sub End Class [/CODE] Software Development vb.net | |
Hello! i need to filter the searched data in the database sql and display it on the table. But i keep on getting tis error: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(Unknown Source) at app.SearchByKey.SearchStudentNumber.SearchStudentRecordReader(SearchStudentNumber.java:38) at app.ui.ListOfStudents.updateSearchTable(ListOfStudents.java:159) at app.ui.ListOfStudents$3.keyReleased(ListOfStudents.java:105) at java.awt.Component.processKeyEvent(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) … Software Development java java-swing | |
hi every one , i need to know how to get a file path to textbox using browse button or common dialog , any body can help me ?? Software Development visual-basic | |
Hi, Having some issues connecting to MS Access Database. I think its ot connecting to the database. Below are the source codes: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DB extends DBDriver implements ActionListener { JFrame f; JLabel Fname = new JLabel("First Name: "); JLabel Lname = new JLabel("Last … Software Development java java-swing | |
Suppose you save $100 each month into a savings account with the annual interes rate5%.So, the monthly interest rate is after the first month,the value in the account becomes 100*(1+0.00417)=100.4417 After the second month, the value in the account becomes (100+100.417)*(1+0.00417)=201.252 After the third month ,the valiue in the account … | |
Hey guys, noob programmer here. Over the last week or so we've been learning about classes and inheritance in my latest progamming class. I've recieved a variation of the ever so popular poker program and am having some problems putting it all together. I haven't had the opportunity to test … | |
# /*Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except arr[i]. My code is printing garbage value.Pls someone suggest me what is wrong and how can I correct it..Thank … Software Development c | |
#include<iostream> #include<fstream> #include<ctime> #include<cmath> using namespace std; clock_t start, end; double cpu_time_used; int main() { int m,i,j,n,k; double P[150][150], tou1, cx[8],cy[8], U[150][150],V[150][150]; double u,x[150],y[150],dt=1.0, T[150][150],S[150][150],t=0.0; cout<<"enter the units in X x Y"<<endl; cin>>m>>n; class pdf { public: float feq[150][150], f[150][150]; }; pdf f0, f1,f2,f3,f4,f5,f6,f7,f8; // For X for (i=0;i<=m;i++) { … | |
Hey guys what I'm about to ask isn't for what I really need it for but learning how to use the rand() function in this manner will help me apply it to what I need it for. Lets say I wanted to ask the user for a random integer such … Software Development c | |
I'm experiencing a few issues trying to install rpy2-2.3.7 under Cygwin64 on Windows7 using R 3.0.1 and python 2.7 $ python setup.py install finds R version to be 3.0.1 at the beginning of the install, but on line 158 it bombs out for failing to discover the R version. I … | |
I'm bit new to C#. I just want to change the start up form in my project. (This is a windows form application). There is a field named with STARTUP OBJECT and a dropdownlist in Project properties. But my problem is I have created few forms in my project and … Software Development | |
I want to bind database value to combo box in C# windows form. I know this is a common problem for begginers. I search in the internet about this. Acoording to that I modified my code. But my problem is, it is not raised any error message and data not … Software Development dataset | |
I want to change form1 textbox1 text from from2 variable. This is the flow. 1. Show form1 2. click button in form1 3. then show form2 (form1 do not hide. It is still visible) 4. click button in form2 (form2 has variable and it set to form1 text box and … Software Development | |
sorry i am very very new in programming. My question is at switch statemnt if user type different of 1,2 or 3 i dont want to break but i want to start from beginning asking user again to type 1, 2 or 3, i know how to do with goto … Software Development | |
Simply by interchanging the numbers in printf I.e, 8. printf("before swap:First Var.=%d\tSecond Var.=%d\n" ,i,j); 9.printf("After Swap: First Var.d\n" ,j,i); Software Development c | |
A GPA, or Grade point Average, is calculated by summing the grade points earned in a student’s courses and then dividing by the total units. The grade points for an individual course are calculated by multiplying the units for that course by the appropriate factor depending upon the grade received: … Software Development python | |
hi again :) i have problem with finding cyrilic words in my txt file...words in txt file are arranged like this: one један two два three три etc... before word "one" and after word "један" there is blank space... so problem starts in button3_click... what ever i type in texbox3 … | |
![]() | CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on … Software Development c++ open-source |
Hi, Imagine a vector of structures with each structure containing various variables. struct Data { double x double y double z } vector<Data> Dataset vector<Data>::iterator it //input some data from a file into DataSet How can I iterate over this vector, comparing say, x at the nth row to the … Software Development c++ data-structure dataset | |
I'm making a class dataset. In it, I'm trying to set the minimum max and the mean. In my given test, I am asking the user to input as many grades as they would like so what I did, for example in minimum is this.. class Dataset(object): def __init__(self, grade): … | |
combo box: how to get values associated with it..please help in minutes please.....:-| Software Development | |
Hello, having a hard time using my Faculty class, where I have to initialize/createObject from my Education class to Faculty. I would like to use the constructors from the Education class, to be implemented to my Faculty class. Here is my attempt Here's my two codes. public class Education { … Software Development java | |
HI I am trying to make a dll file that performs its tasks using CUDA library. Here is a simple version of my code: CUDADll.cu ` #include <iostream> #include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" __global__ void test(int a, int b, int* c) { *c = a+b; } extern "C" __declspec(dllexport) … | |
I have a tab control with three tabs and I have added a datagridview to each of the first two tabs at design time. Programatically, when the second tab is selected, I am attempting to create columns and add them to the datagridview on the second tab. However, they show … Software Development | |
Hi, i'm working on a system rate analysis.I just worte the code using oop. i worte a code that inserts a record into the database.when i try to insert a data nothing happens.Please fix my code. //this code is defined in a class Public Function AddWorkItem(ByVal workitemNumber As String, ByVal … | |
I have created a method that changes individual rows back color based on certain criteria within the grid. I have noticed that when clicking the column headers that the grid resets the formatted rows. I would like to know what the best solution would be without impacting performance. Software Development | |
con = Connect.ConnectDB(); String sql = "insert into table1 (" +"StudentID," +"FirstName," +"LastName," +"Contact Number," +"E-mail address," +"CarNumber)" + "values("+txtid.getText()+ ",'"+txtname.getText()+"','"+txtlast.getText()+"','"+txtnumber.getText()+"','"+txtemail.getText()+"','"+txtcarno.getText()+"')" ; try{ pst = con.prepareStatement(sql); pst.execute(); JOptionPane.showMessageDialog(null, "Saved"); } catch(Exception e){ JOptionPane.showMessageDialog(null, e); } can any one help me with this? im getting syntax error in insert into statement … Software Development java | |
I bought a book to help me learning WCF. Lots of people complained that the book was written for VS 2005 at first then there was a reprinting for VS 2008. What it seems is that the code for VS 2005 would not work in VS 2008. I'm wondering why? … Software Development visual-studio | |
> I want to create a program that will calculate the day easter will be on. The user will type in a year and then the program should calculate the day easter will be on. I'm having trouble understanding the if/else and how i can use that with the code … |
The End.