132,726 Archived Topics
Remove Filter ![]() | |
Hey I am a student and i m performing selection sort in this way. Is it proper way or not? if it is not proper, explain it why with reason. #include<stdio.h> #include<conio.h> void selection(int a[],int n) { int i,j,temp; for(i=0;i<n;i++) { for(j=i+1;j<n;j++) { if(a[i]>a[j]) { temp=a[i]; a[i]=a[j]; a[j]=a[i]; } } … Software Development c | |
I was practising the past year question just now. I wanted the program to show this: > Continent name: Australia > Number of Countries: 1 > Country name: Australia > Population: 22118256 But my code makes the program to show the first 2 lines. package jan2012q5b; import java.util.*; class Continent … Software Development java | |
Guys, In below code they are couple of issues. (1) I am not able to read first key and value pair record from snmp.json file in my map, it just start reading after first record. (2) After reading the value from file in current implementation it is not reading the … | |
Anybody Plz tell me how I can update a Gridview Record.Kidly tell what is code in C# I am waiting for reponce for my this thred Software Development | |
I was doing the code as part of my lab tutorial. When I tried running the code, it doesn't work. Line 68 has an error. Can help? package t10; import java.util.*; class Employee { private String name; private String title; public void setName(String n) { name = n; } public … Software Development java | |
How to play a sound file in c++. I am trying to make an alarm program. I've done everything but i need to play sound at certain time. please help.............. Software Development c++ | |
Hello, I am currently working on a binary search tree that acts as a phone book. I am nearly completed with it and all functions seem to work properly except in two cases: An error message will not print to the screen when trying to delete or edit for a … Software Development c++ data-structure | |
[Click Here](http://s8.postimg.org/ab4paaq8l/New_Bitmap_Image.png) is adding m_y, m_m, m_d, considered as cheating? if not, how to get the value for getYMD()'s param? Software Development c++ | |
kay so we have an activity, the activity was to make a simple cashier system using filestream. So the layout will be there are 3 radio buttons ( foods,drinks,desserts) so for example i chose foods the comboBox will automatically update it's value like a list of foods. I already had … Software Development vb.net | |
![]() | I have to do a project based on the Internet of Things. It's a project that seems simple. But I need to control multiple devices through software and need help in the control part of of RS232. I have a board with Linux Mint and is the ttyUSB0 port I … |
I'm trying to prefill webforms in iframes using Requests. If that can't be done, does anyone have a script I can use that works with webbrowser? I like that it calls the default web browser in just about any system, which is great for my Android applications. I've tried using … Software Development android-development html-css python web-browser | |
I am doing a little home project to learn more about collections and FileIO. I have made a little racing app where the user enters the racers details all of which are strings, and these details are inserted into a List<T> list and then once the user clicks the 'save' … Software Development file-system visual-studio | |
Dear all, Currently I am facing the problem on getting the resources for getting Tkinter and pygame to work together. Sadly, I do not have any leads til now(Which worries me alot!! :( ) so I hope the people here can point me to the correct direction. So basically I … | |
Hello! I was creating a custom array class as an exercise in my exploring of class and function templates. Here's my header file: #include <iostream> template <typename el> class Array { friend std::ostream &operator<<(std::ostream&,const Array&); friend std::istream &operator>>(std::istream&,Array&); public: Array(const int& arraySize=0); //set all members of array with size arraySize … | |
I have been looking for a solution to isolate markings and have not found anything on the internet that is close to for what I am looking. I am trying to isolate the markings in a series of pictures. I have one, unmarked image. I then have a series of … Software Development html-css java web-browser | |
I have been learning about collections such as arrays and arraylists and lists and have come across the term "interface" a fair bit. I know that an IList is an "interface" but I dont understand what an interface is or does. 1. What is an interface in C#? 2. How … Software Development | |
Use a DO WHILE loop Software Development c++ | |
Hi, My name is Micky. I have requirement, but i don't know how to start it, could anyone help me out. here is the requirement. In a class there are 10 Students with name , marks , Percentage and there rank should be in the below format Name Marks Percentage … | |
Hey guys im completely new to programming and im complete stuck and any help to comlete my assingment would be greatly appreciated. heres my assingment. Your task for this assignment is to define multiple classes via inheritance. Your classes should implement various "snacks" including "M&Ms", "Popcorn", etc. To begin, create … Software Development java | |
After trying different things for about a week i have come to the conclusion i am lost. Can someone please show me how to do this. This assignment, based on Vending Machine we did in class, you are to now vend six different snacks. The Vending Machine has a capacity … Software Development java | |
Hi All, I am trying to send data from client to server. And getting data back to client. But I am facing following issue. 1. I am unable to display client message in server side. 2. I am unable to get back message from server. Also I am not getting … Software Development c client-server | |
main() { char str[30]; int i ,n=0; printf("enter stirng"); while(( str[n]= getche() ) !='\r') n++; str[n]='\0'; for(i=0;i<n;i++) putchar(str[i]); } this is a simple program. enter string as input and same string become output. nothing is wrong in this program. this program is in my book. my question is what is … Software Development c | |
Hello I need to add a zero in front of a number if it is 3 or less so that it has 4 digits total. I only need this for row 6 or row 5 to be python specifc. I need this to write to the same csv file. AFI12001 … Software Development python | |
![]() | I asked this question on StackOverflow and they just linked me to other questions that I already read and tried. I have been trying to create a zip file using zipfile in Python, but it keeps zipping all folders that are included in the absolute path. I just want to … Software Development file-system python |
Hi, I want to install turbo c in windows. I don't have cd to install turbo c. I tried downloading a zip package and installing but it is giving error. How can i install and download turbo c in windows? Any suggestions? VANDITHA Software Development c | |
hi all, I am comparing 2 data: Data 1 has 26 colums that have the information of comapanies and detail of informations. Data 2 has 18 coulums that have the information of peoples. Form the name of people (data 2) I want to make the new data which have all … Software Development perl | |
Hi my name is vishal for past 3 days i have been breaking my head on how to block/restrict a user on 3 unsuccessful attempts by him/her into application in c# windows forms with sql server 2008. So i am developing an application named:Mini Project, which has a mdi parent … Software Development c# data-structure open-source | |
I have been learning about the collections namespace in C# so have been doing some little self-made projects to learn. I have made a car race app where you enter in the name, car and place of the racer this is then stored in an array list. I can extract … Software Development file-system visual-studio | |
Hey! I'm using OpenGl GLUT on xcode 5.1.1 on mac osx 10.8.5 and I've can't figure out how to load bmp,jpg or png images as textures to my application. I've tried installing FreeImage and SOIL unsuccessfully. I'm a total newbie and some help would really be appreciated. Software Development opengl | |
Hye. i need to build an inventory system. In that system, the production department will scan the barcode in each item. **How should i connect the barcode scanner with the system ? ** and the requirement of the system is to be able to compare the information scanned **with** the … Software Development microsoft-access vb.net visual-basic | |
I dont clearly understand bool functions. this lends problems to my current assignment in class where i have to write a program that involves a bool function that tests for letters in a string that the user inputs. Can anyone offer help to me? the whole code is slightly confusing … | |
hey , I'm trying to read a 24 bit bmp file but after reading the first pixel something goes wrong, any ideas? int i; FILE* f = fopen("Sample.bmp", "rb"); unsigned char info[54]; fread(info, sizeof(unsigned char), 54, f); // read the 54-byte header // extract image height and width from header … | |
Just looking for a push in the right direction. I am overwhelmed by the choice with python at the moment. What are the best tools for managing consitent ETL operations with data in XML and CSV formats to database, graphs and in future a web app. for example should I … Software Development python python-django xml ![]() | |
import java.io.*; class WriteFile { public static void main(String ss[]) { try { FileWriter fw=new FileWriter("output.txt"); PrintWriter pw=new PrintWriter(fw); String s1="Hello World"; String s2="I Am Learning Java"; pw.println(s1); pw.println(s2); pw.flush(); pw.close(); fw.close(); } catch(IOException e) { System.out.println(e); } } } in upper code println() is called with object of `PrintWriter` … Software Development java | |
i need your help to find c++ code for Clustering algorithm for energy efficiency in wireless sensor networks | |
It comes in handy of course that you can dynamically adjust the size of a List or Dictionary. But this time I want to use a Dictionary with sizes from 1 to 8. When I have e.g. size 3, it will stay that way. On the net I found a … Software Development | |
My code is the following: import cgi data = cgi.FieldStorage() productdescription = data.getvalue('product_description') listprice = data.getvalue('list_price') discountpercent = data.getvalue('discount_percent') def calc(discountpercent): if discountpercent > 100: raise ValueError("Percentage discount cannot exceed 100%") elif discountpercent < 100: percent = float(discountpercent) / 100 discount = float(listprice) * percent return discount else: raise ValueError("Invalid … Software Development python web-server | |
Hello all, I am a vb.net newbie and I am trying to write a code that when executed pulls the latest file on an FTP server (based on creation date). So far, I've been able to list all the files in the remote directory. I know this can be done … Software Development file-stream vb.net | |
while storing the value 1.111 in a float variable the value stored and printed is 1.1109999. why is this loss of data or sometimes the gain of data?. | |
#include<stdio.h> int main(int argc, char *argv[]) { char *states[] = { "California", "Oregon", "Washington", "Texas" }; printf("size of states: %d",sizeof(states)); return 0; } the result of this is: size of states: 16 why is that?I know that an int is 4 bytes,while a char is 1 byte.I got confused why … Software Development c | |
I have a few general questions about the Collections class in C#:" 1. Because all elements in an ArrayList are stored as objects do we need to cast them into their respective types before extracting? 2. Array lists are used if the size is adjusted accordinly to elements added and … Software Development | |
I've been dealing with this problem for about 2 days now. Write a program that accepts the price of an item and displays the discounted price. Accept also the amount given by the customer (assume the amount is greater than or equal to the discounted price) and display the change. … Software Development c | |
This program hangs when I enter the number of vertices only..It does nothing..I am not able to figure out what's wrong with this.Please help #include<iostream> #include <list> using namespace std; // This class represents a directed graph using adjacency list representation class Graph { int V; // No. of vertices … | |
Hi There. I have the following code for a login system withing VB 2010. I am getting a Warning: "Variable 'reader' is used before it has been assigned a value. A null reference exception could result at runtime." Where did I go wrong? Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal … | |
I have this big problem with my code, here it is: https://www.dropbox.com/s/2lc6iygbx2gwlqj/Screenshot%202014-07-19%2011.24.20.png here is my ERROR: Exception in thread "Thread-0" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(ImageIO.java:1348) at ca.gingerninja.game.gfx.SpriteSheet.<init>(SpriteSheet.java:19) at ca.gingerninja.game.Game.Screen(Game.java:55) at ca.gingerninja.game.Game.run(Game.java:78) at java.lang.Thread.run(Thread.java:745) Can someone please help, I would really like to continue with my game! Software Development java | |
I want to make a game that requires the arrow keys to be pressed. How do I detect if a key has been pressed? Software Development python | |
builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 14: invalid continuation byte I'm getting the following error that pops up not in my script but in the codecs.py file. I've used code exactly like this in another program and it worked just fine. Any ideas? Script below. #/usr/bin/env python3 … Software Development python |
The End.