132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Gunjan_1

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
Member Avatar for ITTechnos
0
129
Member Avatar for SpottyBlue

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
Member Avatar for JamesCherrill
0
163
Member Avatar for can-mohan

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 …

Software Development algorithm c++ json
Member Avatar for NathanOliver
0
231
Member Avatar for Muhammad Saqib

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
Member Avatar for deceptikon
0
286
Member Avatar for SpottyBlue

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
Member Avatar for JamesCherrill
0
152
Member Avatar for BibhutiAlmighty

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++
Member Avatar for Moschops
0
195
Member Avatar for meow123

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
0
183
Member Avatar for Vasthor

[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++
Member Avatar for Vasthor
0
147
Member Avatar for ignnniter

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
Member Avatar for tinstaafl
0
134
Member Avatar for Yamil_1

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 …

Software Development ide python
Member Avatar for Hiroshe
0
2K
Member Avatar for ben.juarez.773

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 …

Member Avatar for ben.juarez.773
0
318
Member Avatar for iConqueror

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
Member Avatar for tinstaafl
0
328
Member Avatar for JonKho

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 …

Software Development python tkinter
Member Avatar for vegaseat
0
3K
Member Avatar for nathan.pavlovsky

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 …

Software Development c++ ui-ux
Member Avatar for mike_2000_17
0
8K
Member Avatar for ParPau

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
Member Avatar for Taywin
0
564
Member Avatar for iConqueror

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
Member Avatar for BMXDad
0
206
Member Avatar for davin_six
Member Avatar for salesforce

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 …

Software Development display java
Member Avatar for JamesCherrill
0
303
Member Avatar for iConqueror

What is the difference between an enum and an array? with both you can store elements the main difference between arrays and enums are that enums are not index based wereas arrays are, that is all I know. So I have a few questions 1. How do we use enums? …

Software Development
Member Avatar for ddanbe
0
149
Member Avatar for astrid.deliz

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
Member Avatar for JamesCherrill
0
1K
Member Avatar for jones13

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
Member Avatar for JamesCherrill
0
406
Member Avatar for getmeusername

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
Member Avatar for Himadri_1
0
281
Member Avatar for rana ranjit

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
Member Avatar for Daisy_1
0
84
Member Avatar for ndombko1

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
Member Avatar for Gribouillis
0
126
Member Avatar for A-M-G

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
Member Avatar for Gribouillis
0
5K
Member Avatar for Vandithar

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
Member Avatar for maha harshini
0
408
Member Avatar for biojet

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
Member Avatar for Taywin
0
148
Member Avatar for vishal anand.s

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
Member Avatar for fikreyes
0
897
Member Avatar for iConqueror

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
Member Avatar for ddanbe
0
2K
Member Avatar for messr135

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
Member Avatar for messr135
0
119
Member Avatar for fifie izyani

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
Member Avatar for tinstaafl
0
163
Member Avatar for abb13e

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 …

Software Development algorithm c++
Member Avatar for abb13e
0
276
Member Avatar for kshahnazari

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 …

Software Development c++ image
Member Avatar for triumphost
0
7K
Member Avatar for flebber

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
Member Avatar for Yamil_1
0
665
Member Avatar for moaz.amin.37

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
Member Avatar for moaz.amin.37
0
197
Member Avatar for mahrukhbalouch

when m pressing printf("welcome to airline reservation system\n"); its gettng error tt its a declaration syntax error plx help me i have to complete my project

Software Development c
Member Avatar for ddanbe
0
84
Member Avatar for Sarkurd

Hi what are Macros used for in C++? i never heard this word in my entire life :D and what are `assert()` and `NDEBUG`?

Software Development c++
Member Avatar for Sarkurd
0
177
Member Avatar for Asma_2

i need your help to find c++ code for Clustering algorithm for energy efficiency in wireless sensor networks

Software Development algorithm c++
Member Avatar for L7Sqr
0
277
Member Avatar for ddanbe

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
Member Avatar for ddanbe
0
188
Member Avatar for kxjakkk

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
Member Avatar for kxjakkk
0
276
Member Avatar for devdevil10

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
Member Avatar for devdevil10
0
2K
Member Avatar for narmadhahearty

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?.

Software Development c storage
Member Avatar for jnneson
0
122
Member Avatar for yuimikazuki

#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
Member Avatar for sepp2k
0
131
Member Avatar for iConqueror

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
Member Avatar for tinstaafl
0
186
Member Avatar for EarhawkPH

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
Member Avatar for Hiroshe
0
252
Member Avatar for yogesh_6

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 …

Software Development c++ queue
Member Avatar for rubberman
0
711
Member Avatar for ahudson

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 …

Software Development mysql vb.net
Member Avatar for deceptikon
0
272
Member Avatar for reuben_1

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
Member Avatar for JamesCherrill
0
3K
Member Avatar for DragonMastur

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
Member Avatar for Gribouillis
0
577
Member Avatar for lewashby

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
Member Avatar for snippsat
0
822

The End.