132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Start4me

How to give user the ability to set the decimal format rounding to whichever s/he prefers. I know that the users input can be gained by the code double decimalRoundTo; Scanner input = new Scanner(System.in); out.print(" Enter the number of decimal places you want to round to "); decimalRoundTo = …

Software Development java
Member Avatar for Start4me
0
3K
Member Avatar for Jojola

This is a theoretical question but any specific technical knowledge that could help will also be appreciated. I am an IT Assistant with not much knowledge in programming (apart from EasyPattern and super-simple batch files) but have been given an opportunity to start getting into it by having been given …

Software Development email microsoft-access
Member Avatar for Reverend Jim
0
226
Member Avatar for visya

hi friends....... i am doing a project in c#....... i need a urgent help...... i want to store all kinds of file(.doc,excel,bmp) in sql server 2008 in a single button click......the number of files to save depends upon the user...so i dont know how to create taable fr this and …

Software Development sql
Member Avatar for JOSheaIV
0
236
Member Avatar for Chinney

Hi all, So i was just wondering what would be the best software to use to program in C++ and then compile the program. So could you please name any software packages that you know of which can help you to program in C++ and if you could also state …

Software Development c++
Member Avatar for Chinney
0
318
Member Avatar for amani_1

Q.1) Write a program that prompts the user to enter five words (using one cin statement), and store them in five variables, and then sort the words alphabetically

Software Development c++
Member Avatar for rubberman
0
93
Member Avatar for alina.nazchowdhury

After build and debug my program, i want to publish it, and after is installed in my compiuter, i want the program will have the icon that i want to use, not by default. Like any other program, i want my program will have to an icon. Please help me …

Software Development vb.net visual-basic
Member Avatar for ACE--
0
154
Member Avatar for aVar++

Hello, This if statement is always returning true and I cannot see why. Could you guys tell me why? menu = input("Choose what you would like to do:\n\n1. Work out how far you will travel with a set time and speed\n2. Work out the speed you will need to travel …

Software Development programming-construct python
Member Avatar for Gribouillis
0
249
Member Avatar for Epn5014

Write a C++ program that will display the following menu and work accordingly. A menu which contains functionionality that will allow the following choices: 1. Enter the name of the file that contains students enrolled in the computer course. 2. Calculate and display the average and the letter grade for …

Software Development c++
Member Avatar for Ancient Dragon
0
160
Member Avatar for newbie14

I have a char all[1500]; which will store each network packet. I will convert the hex value into humand readable. Finally I need to extract the url. For e.g. I have this GET /mail/ HTTP/1.1\r\n. I know I can use first to decide if the word GET and HTTP/1.1. exist …

Software Development c
Member Avatar for newbie14
0
143
Member Avatar for greatman05

Hello. I need to set up some pipes for a homework assignment as part of a bigger project. The issue I'm having is that the array (args) I'm using to populate the pipe arguments keeps segfaulting and I don't know why. Everything has been malloced beforehand and the faults only …

Software Development c multithreading
Member Avatar for greatman05
0
260
Member Avatar for murali2489

Hi Team, I have written a Sample Code in which I cast SubClass reference to point to SuperClass Object. It behaves like a SuperClass reference ( I mean when i try to use Methods which are not in SuperClass,it throws error so it means it is an instance of superclass) …

Software Development java
Member Avatar for murali2489
0
176
Member Avatar for vaishali.k

Write a C++ program that can take either two integers or two floating point numbers and outputs the smallest number using class, friend functions and function overloading.

Software Development c c# c++
Member Avatar for yazan.quraan.39
0
157
Member Avatar for Carlos_9

I NEED HELP PLEAS #include <stdio.h> #include <stdlib.h> #include <string> #include <ctype.h> #include <iostream> using namespace std; struct Player { int yearsPlaying; float playerPay; string playerLastname; string playerAge; string playerName; char playerNumber[100]; }; const char fileName [] = "Players.txt"; void createFile(void); void printPlayer(struct Player*pi); void writePlayer(FILE *fp, struct Player *pi); …

Software Development c c# c++ display file-system
Member Avatar for deceptikon
0
231
Member Avatar for sushilsth

Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click Dim sqlquery As String = "INSERT INTO firstfloor_house_rent (datee,amt) VALUES ('" & DateTimePicker8.Text & "', " & TextBox24.Text & ")" Dim sqlcommand As New OleDbCommand With sqlcommand .CommandText = sqlquery .Connection = conn End With ans = sqlcommand.ExecuteNonQuery() If (ans …

Software Development vb.net
Member Avatar for Reverend Jim
0
284
Member Avatar for Alonso_1

So I'm trying to count the number of occurrences of each digit within an array. My code I've got so far looks like the following: #include <stdio.h> #include <string.h> int main() { int numbers [10]= {1, 4, 5, 5, 5, 6, 6, 3, 2, 1}; int count = 0; for(int …

Software Development c
Member Avatar for deceptikon
0
3K
Member Avatar for Learner010

i want to display all possible colors on a form (i am using timer with 500 interval). what logic should be there to display all possible color (i want to display colors which are more closer to each other like red to pink not just red to black). color should …

Software Development vb.net
Member Avatar for Reverend Jim
0
192
Member Avatar for dany12

Hy I would like to know what python gui framework, I can use that will be compatible cross platform and will help me create my snippet saver, that will be relational database, with categories for each language. I thought I can use kivy to create my graphical interface than use …

Software Development gui html-css java-swing python
Member Avatar for dany12
0
348
Member Avatar for ObSys

Ok so I'm writing a program that outputs text to a file. Currently, I am writing it to a .TXT file for ease and convenience. Ideally, I would like to output some of the information so that it is formatted with Italics. I'm thinking that using a RTF file would …

Software Development java
Member Avatar for JamesCherrill
0
278
Member Avatar for rovastola

I'm trying to code an array that will make user print in 125 digits and then add the sum of it, this works but im trying to make the message like: Please enter digit : 1 please enter digit : 2 Please enter digit : 3 ... Do i have …

Software Development java
Member Avatar for Heanre
0
168
Member Avatar for Krefie

Hi boys and girls, I use at-commands through the comport. The problem is if I send "get everything" to the comport the output is about 30 lines of text in under a second. The c# comport listener is only able to capture about 2 of these lines due to the …

Software Development
Member Avatar for Ketsuekiame
0
111
Member Avatar for dbalas

I have a problem with deploying the 3 tier lightswitch web application on the server. On the local server IIS7 everything works perfect but when i deploy it to the vps which also runs IIS7 it gives me this error when i try to navigate to the page: HTTP Error …

Software Development open-source web-server
Member Avatar for Ketsuekiame
0
219
Member Avatar for aditya.bhoi.35

I am making a personal assistant console application by using C# my problem is when after selecting the condition in the loop in main method in 165th line after executing the below code the the scope of the exection should return to the 165th line until it exists.i have used …

Software Development
Member Avatar for Ketsuekiame
0
364
Member Avatar for D33wakar

This is a simple echo server that I've written while learning sockets programming. Compile the server and run it. You can connect to it using telnet like this: telnet localhost 1337 Disconnect the client by typing "/quit" without quotes.

Software Development c client-server socket-programming unix
0
390
Member Avatar for tyler.dahle

package hw3.categories; import java.util.ArrayList; import hw3.DiceGroup; import hw3.api.IScoreCategory; /** * Scoring category for a yahtzee. A DiceGroup * with N dice satisfies this category only if all N * values are the same. For a dice group that satisfies * this category, the score is a fixed value specified in …

Software Development api java oop
Member Avatar for JamesCherrill
0
228
Member Avatar for CheerfulBiscuit

Hey everyone, I really need help in solving a problem that I have to use recursion for. I have a list of paper objects. Each paper object has its own author(s) objects. Each author object knows which paper(s) objects they belong to. I have to build a scholarly neighborhood for …

Software Development data-structure java
Member Avatar for JamesCherrill
0
253
Member Avatar for reiferdinan.picar

We need it tomorrow, the code for the assignment #3 and #4 question. There was no continuation. Date Class Project (part #3) Add the following data items to your Date class 05 points 1. int dayOfYear 2. String monthName 3. String dayOfWeek Add the following methods to your Date class …

Software Development java
Member Avatar for stultuske
0
326
Member Avatar for RAYNISH

yes. my coding as follows Public Function connectDB() connStr = "Data source =KIRAN;Initial Catalog=eStaffMgm;Integrated Security=SSPI;User Id=**;Password=*******" connSQL = New SqlConnection(connStr) Return connSQL End Function My system name is Kiran and the database name is eStaffMgm The default instance of SQL Server 2012 is MSSQLSERVER The code in the module was …

Software Development open-source sql vb.net
Member Avatar for ryanjayson
0
248
Member Avatar for lyndata

i am using employee table to test if i am doing the whole program correct. I have 5 buttons. one is to add records and another to save(commit), to update, to delete and to clear. I am having trouble with the code to save the record to the data set. …

Member Avatar for ryanjayson
0
320
Member Avatar for rayborn66

Hi I need some help. I am trying to write a program that will search a file for numbers of type int and write the largest and the smallest numbers to the screen. This is how far I got but when I it came to writing the code that would …

Software Development c++ file-system
Member Avatar for Emran__
0
2K
Member Avatar for Djmann1013

Hi, I recently got BCrypt from the NuGet manager. I am trying to find documentation on how to use it in VB, but no luck. Anyone used this? Here is the link to the package: http://bcrypt.codeplex.com/ I just need to figure out how to use this in VB.net, if I …

Software Development vb.net
Member Avatar for Ancient Dragon
0
482
Member Avatar for refphlex

I need help with my eiditing a record function, I'm struggling to get it to work. Thank you int Search(Student List[], int Size, string Target) { for(int i = 0 ; i < Size ; i++) if (Target == List[i].LastName) return i; return -1; } void Edit_Record(Student List[], Student & …

Software Development c++
Member Avatar for zouhair.kasmi
0
147
Member Avatar for CoolAtt

Hi all, i read that the .net framework is a wrapper around the win32 api. can someone please clarify the following for me: 1.if .net is a wrapper around win32 api it means we are able to do everything with .net that we used to do with win32 api. then …

Software Development api c c# c++ windows-api
Member Avatar for deceptikon
0
304
Member Avatar for Tu Dinh

Please take a look in my code as below: Vector<Vector<String>> AllSubjects = new Vector<>() ; // PROBLEM IS HERE if ((AllSubjects = EMSSubjectDAO.SelectAllSubjectsByCourse(this.ActiveCourse.getCourseID())) != null) { SubjectTableModel = new DefaultTableModel(AllSubjects, SubjectTableHeader); SubjectTable.setModel(SubjectTableModel); //this.SubjectTable = new JTable(AllSubjects, SubjectTableHeader) ; } On the `// PROBLEM IS HERE` line, if I init `Vector<Vector<String>> …

Software Development java
Member Avatar for JamesCherrill
0
276
Member Avatar for pandeysk_13

hello all, its a very deficult situation for me, bcoz i am not expert thats way taking help from u all. problum : i m creating a project for commission calculation type in the form i have one combobox which is filled by ms access database containing parent ID. these …

Software Development dataset vb.net
Member Avatar for pandeysk_13
0
259
Member Avatar for SpottyBlue

I was practising with the past year questions for tomorrow's final exam. I wanted to read who has the highest score and show the highest score from the text file (see attachment). #include <iostream> #include <fstream> #include <string> using namespace std; ifstream infile; int main() { const int x = …

Software Development c++
Member Avatar for Moschops
0
410
Member Avatar for Anthony209

Hello, I am doing the infamous Parking Ticket Simulator for my Java class at college. I have already completed the program and it producing the correct output. The only issue however, is that I am NOT using the PoliceOfficer class to issue the ticket. In other words, he is not …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for muhammad_43

Nice to meet you, i am a newbie i would like to ask a question that bothers me out : 1).How to add the decimal representation of N! (5 <= N <= 1,000,000) is simply the multiplicity of the prime factor 5 in N! to my script? 2). I wanted …

Software Development java
Member Avatar for JamesCherrill
0
249
Member Avatar for castajiz_2

So i want to hodl my mouse and by moving the mouse i want my vector to rotate around, which of the built in events should i use? i tryed mousedown event but that s not what i m looking for obviously.Maybe i should combine two mouse events instead?

Software Development
Member Avatar for castajiz_2
0
160
Member Avatar for amrahim

Hi, Please help, I don't know how to use arabic language in text box or label(caption) in VB6. I try to change language but the sign "?????" appears in text box. Please help me. TQ.

Software Development visual-basic
Member Avatar for el fahem
0
2K
Member Avatar for pc20912

I try to making Birth Day reminder project, from VB.Net and MS-Access There are Two tables, "Visitors" and "Employees" "DateofBirthDB" field in Two tables with same format. (some few different fields also in Two tables) I want to select all upcoming birth days from today onwards upto Yesterday, Please expalin …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
258
Member Avatar for sutty8303

I need help with this program. here is what we are supposed to do. The program should prompt the user to 'Please enter numeric grade: '. The program will then pass the numeric grade to a function that will convert to a letter grade. This function should have the following …

Software Development c c# c++ display
Member Avatar for Faisal Kazmi
0
18K
Member Avatar for hendraligawan

Please help me to understand the algorithm from this source code. int time(){ time_t rawtime; struct tm * timeinfo; time (&rawtime); timeinfo = localtime (&rawtime); cout<<"Current time: "<<asctime(timeinfo); }

Software Development algorithm c++
Member Avatar for Ancient Dragon
0
107
Member Avatar for hendraligawan

I have a problem when I do my task. task: Made a program about queue in Bank teller system. Teller A if deposit <=10million, teller B > 10million the count of customer(queue) is random and the price if deposit is random too. output: how much customers,time and total transaction at …

Software Development c++ linked-list queue
Member Avatar for hendraligawan
0
200
Member Avatar for tunisia

Trying use radio buttons to select which host I'm referring to since ultimately there will only be two and they are fixed addresses. This is the error: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1410, in call return self.func(*args) File "Untitled 2.py", line 63, in command=lambda: callback_power_off(off, host)) File "Untitled 2.py", line 28, in …

Software Development python tkinter
Member Avatar for woooee
0
386
Member Avatar for chubbyy.putto

Can someone kinda check this one to see what wrong with it? #include <iostream> using namespace std; int ture ( int a[], int b[], int d); int main () { int b [5]={1,2,3,4,5}; int a [5] ={1,2,3,4,5}; int total= ture(b, a, 5); cout << total << endl; } int ture …

Software Development c++
Member Avatar for gerard4143
0
112
Member Avatar for Labdabeta

Hello, I can get OpenGL to render 3D scenes to the screen, but I want to render them to a pixel array. Basically I want some magical code to fill in the blanks for this code segment: int width=500; int height=500; uint32_t *colours=new uint32_t[width*height]; //Magic code! glBegin(GL_TRIANGLES); //other drawing stuff, …

Software Development c++ image opengl
Member Avatar for Labdabeta
0
5K
Member Avatar for refphlex

Hi, I've been having trouble getting the average and letter grades to print and they are outputting as 0 .. I tried everything calling the average function etc. but I still get a zero. Any advice? I don't have any other problems just need help with the average function and …

Software Development c++ data-science
Member Avatar for refphlex
0
454
Member Avatar for pphamtuan

` #include "stdafx.h" #include <strsafe.h> #include "CHand.h" #include "resource.h" #include <Windows.h> #include <NuiApi.h> #include <NuiSensor.h> #include <string> #include <KinectInteraction.h> using namespace std; double x_cur,x_pre = 500; double y_cur,y_pre = 500; static const float g_JointThickness = 3.0f; static const float g_TrackedBoneThickness = 6.0f; static const float g_InferredBoneThickness = 1.0f; int APIENTRY …

Software Development c++
Member Avatar for Ancient Dragon
0
402
Member Avatar for Rohan_1

Can u plz help why dis happens? I was told to write a cpp program to find the factorial of a number using go to

Software Development c++
Member Avatar for Ancient Dragon
0
205
Member Avatar for krystosan

I have made a QTableView that displays images from disk, there are two seriously agonizing problem I am facing. First of after the windows shows up making it maximize or changing size of window is very slow, and secondly I want to display images height width dependong on what can …

Software Development python qt
0
180

The End.