132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pril

[code]#include <stdio.h> #include <stdlib.h> int main() { int numbers[10] = {12,33,51,1,-1,97,7,23,0,-99}; sort(numbers,10); display(numbers,10); return 0; } void sort(int *numbers, int size) { /* Hop you could help me provide codes to sort the numbers. after calling this function, the numbers array in main should be sorted. hint: use the size …

Software Development c
Member Avatar for Narue
0
172
Member Avatar for Arjun_Sarankulu

I have Following Procedure [CODE] alter PROCEDURE GET_REQUEST_FOR_LEAVE_N_ATTENDANCE @ENAME VARCHAR(100), @FR_DT DATETIME, @TO_DT DATETIME AS BEGIN SET NOCOUNT ON SELECT B.CEMPLOYEE_NAME,A.* FROM TRN_EMPLOYEE_ATTENDANCE_REQUEST A INNER JOIN MST_EMPLOYEE B ON A.EMPLOYEE_ID = B.EMPLOYEE_ID WHERE B.CEMPLOYEE_NAME LIKE '%' + @ENAME + '%' AND ABSENT_DATE BETWEEN @FR_DT AND @TO_DT SELECT B.CEMPLOYEE_NAME,A.* FROM TRN_LEAVE_REQUEST …

Software Development window-manager
Member Avatar for Arjun_Sarankulu
0
105
Member Avatar for jemz

Hi, Hello, I apologize if i got the wrong thread to post...can you help me please,where is the forum for learning a cobol language?because i want to learn this language i'm still beginner on this and i have not yet tried to code...Thank you in advance and I'm Hoping for …

Software Development
Member Avatar for jemz
0
121
Member Avatar for sweetyg

hi friends... i am doing my project and the title is "IMPROVEMENT OF ABC ALGORITHM FOR CLUSTERING".... I am not getting how to start the coding... can any one please help me out how to start the coding... thanks in advance

Software Development algorithm c
Member Avatar for Salem
0
91
Member Avatar for Celtrix

I'm not known to be a very memory friendly guy but after about 4 hours debugging my lua+sdl in C++ I finally figured out how to use threads but now I have another problem. I apparently have zero knowledge of memory manangement but thats kind of ok so I've narrowed …

Software Development c++ motherboards-cpu-ram
Member Avatar for Celtrix
0
252
Member Avatar for Evesy

Hi, I recently got a wireless printer which is downstairs and I want to make a program that turns the printer on/off. If anyone knows how I can do this, that would be great. I may be able to do this in C# if necessary. I will post more details …

Member Avatar for debasisdas
0
212
Member Avatar for tomtetlaw

I'm using VC++ 2010 Ultimate and I'm running a Windows 7 x64 machine. I have a function declared to be a dll export ([icode]__declspec(dllexport)[/icode]) and it builds without error or warning, but when I try to load that function with [ICODE]GetProcAddress[/ICODE] it returns NULL. I've looked inside the .exp file …

Software Development c++ visual-studio
Member Avatar for tomtetlaw
0
163
Member Avatar for pseudorandom21

The worst thing about C++ in my opinion is trying to use a library (with VS2010 at least). It always causes me great pain, and usually I am not met with success. So, I'm trying to use the Magick++ library, which is a part of the ImageMagick program, and I …

Software Development c++
Member Avatar for Celtrix
0
258
Member Avatar for gbatemper

I was making a basic nooby java tribe game, and I needed a way to return to main menu. Can anyone tell me of any methods? This is my current code (incomplete) I want it to return to main menu if a certain number is entered after the stats are …

Software Development java
Member Avatar for NormR1
0
5K
Member Avatar for Java John needs

I can ot get my output to reflect accurate info, does anyone have a possible solution? /////////////////////////////////////////////////////////// import java.util.Scanner; public class Count { public static void main (String[] args) { String phrase; // a string of characters int countBlank; // the number of blanks (spaces) in the phrase int length; …

Software Development java
Member Avatar for NormR1
0
279
Member Avatar for Krokcy

Oka. So i have this rather simple program, basically i want it to be able to count the number of hours it has been open. My problem is that i am trying to use [CODE]import java.util.date; Calendar calendar = Calendar.getInstance();[/CODE] And apperently this does not update after the program has …

Software Development java
Member Avatar for Krokcy
0
190
Member Avatar for sagngh8

Hi Everyone, I am using the java applet to take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work good in windows system taking screenshot but in case of mac osx i get the blank image.When …

Software Development chrome-os java web-browser
Member Avatar for Ezzaral
0
456
Member Avatar for bhagawatshinde

Hi I am creating an store procedure in sql server 2005. i want to pass table name as parameter dynamically in sp. here is my sp but it give me an error [CODE]ALTER PROCEDURE dbo.ImportToTable ( @TableName nvarchar(100), @que_id int , @sub_code int, @chap_no int, @que nvarchar(max), @opt1 nvarchar(max), @opt2 …

Software Development c#
Member Avatar for alc6379
0
3K
Member Avatar for udigold1

Hi, I'm trying to parse a csv fiel using a code i've found on line: [CODE] private DataTable ParseCSV(string path) { if (!File.Exists(path)) return null; string full = Path.GetFullPath(path); string file = Path.GetFileName(full); string dir = Path.GetDirectoryName(full); //create the "database" connection string string connString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=\"" + …

Software Development c#
Member Avatar for alc6379
0
203
Member Avatar for zhiyongwoo

Hi Recently I have written my C# program to do some files checking (like house keeping). When the program is start, it will create another threat to run at the background to check files' modified date on every 30 mins. Most of the time the threat will go into sleep …

Software Development gui windows-vista
Member Avatar for alc6379
0
328
Member Avatar for manish250

hello all i am doing a copy operation from a file to another file.in source file i have 13 digit no but in destination file there is only 12 digit copied.code is as follows. [CODE]public void createOriganalFile() { try { File ObjInputFile1 = new File(strFilepath + "_dummy.txt"); File ObjOutputFile1 = …

Software Development file-system java
Member Avatar for hfx642
0
201
Member Avatar for ana_1234

Hey, I have a file that I am working with that I have pass into my program through command line arguments. I don't want to touch the file, just want to store a temp of the file then after fixing the temp place it back in the original. After running …

Software Development c++ ios
Member Avatar for WaltP
0
354
Member Avatar for machine91

How do you write a python code that looks at a specific cell in a csv file? I have the following data in a csv file 1 0 100 2 11 150 3 0 189 4 0 195 5 21 245 I need to write a program in python that …

Software Development python
Member Avatar for JeoSaurus
0
3K
Member Avatar for apanimesh061

[CODE] #include <conio.h> #include <iostream> #include <cstring> #include <ctype.h> using namespace System; using namespace System::String; enum CardType{ MasterCard, BankCard, Visa, AmericanExpress, Discover, DinersClub, JCB }; bool Validate(CardType cardType, String cardNumber){ int number[16], len=0; for(int i=0; i<strlen(cardNumber); ++i){ cardNumber[i] = atoi(cardNumber[i]); if(isdigit(cardNumber[i])){ if(len == 16) return false; number[len++] = cardNumber[i]; } …

Software Development algorithm c++
Member Avatar for teo236
0
1K
Member Avatar for bandrei2408

Hello ! I need your help to calculate the complexity of a program. I need this for my exam and i can't understand how it is calculated. I've tried searching for solutions on google and reading about it but i still can't get it. Maybe if someone can calculate it …

Software Development c++
Member Avatar for bandrei2408
0
146
Member Avatar for CodeAerial

I am making a program the enqueues a number at index 0. I also made a function for it, as written below: [CODE] //main #include <stdio.h> #include <stdlib.h> #include "functions.h" main(){ int *queue = NULL; int size, choice, aNumber, numberOfQueues; do{ printf("Enter Array size: "); size = input(); allocateMemory(&queue, size); …

Software Development c queue
Member Avatar for nezachem
0
165
Member Avatar for MagnetoM

I have added data from the database to the textbox but can't add a null value. I'd like to enter certain text if the field (not sure if thats what it's called) in the database is null. [CODE] if( (reader["Grey3"].ToString()) == DBNull.Value)[/CODE] I've search online and read through a number …

Software Development
Member Avatar for Mitja Bonca
0
88
Member Avatar for Joshua Kidd

How would you be able to Capture the Value of a Cell when the User Selects a Row?

Software Development vb.net
Member Avatar for adam_k
0
325
Member Avatar for saurav4ever

Hello everybody, I am Saurav Saha from India. I am not aware of python but just because i am working on a tool that is on python i got struck. I have many directories in which two files are kept 1. *.txt and 2. *.pdbqt I wanted a program that …

Software Development dataset python ubuntu
Member Avatar for Gribouillis
0
333
Member Avatar for vergil1983

Hi, i new here.... I'm making a program which can calculate the below expansion of Ln)(1 + x) = x/1 - x^2/2 + x^3/3 - x^4/4 + x^5/5 - x^6/6 Below is my syntax [CODE] #include <iostream.h> int main() { float num1; cout<<"Enter a number: "; cin>>num1; num1 = num1/1 …

Software Development c++
Member Avatar for deliezer
0
3K
Member Avatar for deliezer

Hello, I have a difficult memory error to find. I have narrowed it down to a small piece of code, tiny in fact, but the symptoms are baffling to me. I tried to find it with electric fence, but electric fence found nothing. The problem is complicated by my liberal …

Software Development c++ motherboards-cpu-ram
Member Avatar for deliezer
0
91
Member Avatar for sjgriffiths

Hello I want to sort a file and then uniq it, but ignoring the first field so i have REF | FOR | SUR TLT090991|STEPHEN|GRIFFITHS TLT090992|STEPHEN|GRIFFITHS So i want to uniq but ignore the REF field I had this but it doesnt work cat $FILE | sort -t '|' -k2,3 …

Software Development shell-scripting
Member Avatar for JeoSaurus
0
303
Member Avatar for rsandp

Sir/ma'am , please help me how can I convert an integer to a string in java without using a convertSimple(); convertInteger(); convertFormat():

Software Development java
Member Avatar for NormR1
0
92
Member Avatar for learningcpp

Hi All, I am facing issue again and would be great if you help me to understand this code: [CODE] #include <iostream> #include <ostream> using namespace std; class A{ int a; public: A(int a):a(a){ } A operator+(A &other){ A aaa(a+other.a); return aaa; } friend ostream& operator<<(ostream &stream, A &aa){ stream …

Software Development c++ redhat
Member Avatar for learningcpp
0
163
Member Avatar for yancouto

Hey guys, I'm working on a game, and I was trying to mirror the gif images inside the program so I wouldn't have to do it manually (And also so it wouldn't use twice as much space to store the mirrored gifs). Anyway, I Google'd it and found [URL="http://stackoverflow.com/questions/1708011/create-a-imageicon-that-is-the-mirror-of-another-one/1708909#1708909"]this answer[/URL], …

Software Development gui image java
Member Avatar for Ezzaral
0
543
Member Avatar for leo88

Hi, I have problems with passing parameters in a object to string, take a look to my codes: [CODE] DataTable dt = new DataTable(); string SQLStr = ""; // sql query dt = AccessDb_Cmd.RetrieveData(SQLStr, Access_Db).Tables[0]; string c1,c2,c3,c4,c5,c6; int i; foreach (DataRow row in dt.Rows) { i = 0; object array …

Software Development
Member Avatar for leo88
0
138
Member Avatar for flebber

Is there a way to do nested list comprehension? for example I can square a range of numbers, even only. [CODE][x*x for x in range(1,20) if x % 2==0][/CODE] but what if I want to square the even and times the odd by 3. [CODE][x*x for x in range(1,20) if …

Software Development python
Member Avatar for richieking
0
156
Member Avatar for by_stander

Hey all, I'm having some issues using ArrayList. Here's the code.. [CODE] ArrayList<Double> var = new ArrayList<Double>(); var.add(15.0); var.add(0.0); [/CODE] I could just use [CODE] double[] var = {15.0 , 0.0}; [/CODE] for this.. but I'm trying to teach myself Java and need to understand the use of ArrayList. Any …

Software Development java
Member Avatar for by_stander
0
7K
Member Avatar for t@sos

Hello to everyone, I am new to this forum as I am new to Java. I would like to know if anyone has come up with a method that helps in learning the huge collection of classes of the Java API. I know that question is not easy to answer. …

Software Development api java
Member Avatar for gyno
0
2K
Member Avatar for MagnetoM

How can I set the stack order for controls of an mdi form and new child forms that appear within my mdi form. The mdi controls appear on top of the child forms after they are opened. I googled this but couldn't find anything relevant to controls and mdi forms.

Software Development
Member Avatar for MagnetoM
0
119
Member Avatar for hutzy

Can someone help me i try c++ text with color and it is blinking now i want the text is moving whatever right to left, left to right. I have no idea plsss i begging someone plss help me exmple plss or teach me!!

Software Development c++
Member Avatar for Narue
0
459
Member Avatar for vincezed

i have a treeview in which i need to get the selected nodes text and its child node text(if any). I tried using AfterSelect event to get this but i only got the selected text but not the child text.. so can any one help me with this.. i am …

Software Development c#
Member Avatar for vincezed
0
802
Member Avatar for Dranip

How long can some take to Master java programming?

Software Development java
Member Avatar for verruckt24
0
109
Member Avatar for vaishnu

Hi all I need to convert an [B]intel hexadecimal file[/B] into a [B]binary file[/B]. Intel hex files have a specific format. i am aware of the format but I dont knw how to convert it.. :( Can u pls help me... Link for Intel hex format. [url]http://en.wikipedia.org/wiki/Intel_HEX[/url] Thanks in advance

Software Development
Member Avatar for vaishnu
0
267
Member Avatar for cazaletm

Hello great java minds. Could you please tell me why I get "illegal start of expression" errors for the following headers? Thanks for your wisdom!! Lines generating this error: [CODE]public static String getName()[/CODE] --and-- [CODE]public static void displayResults()[/CODE] Here is my first class (that includes this code): [CODE]import java.io.*; import …

Software Development java
Member Avatar for jwenting
0
6K
Member Avatar for bigzos

I have a login form coded as : [CODE] Imports System.Data.OleDb Public Class Form2 Dim ctr As Integer Private Sub Ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=C:/Users/Space Era/Documents/User.mdb") Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM Users WHERE userid = …

Software Development microsoft-access open-source vb.net
Member Avatar for bigzos
0
3K
Member Avatar for Celtrix

I am having trouble running the lua interpreter at the same time im running sdl and am also having trouble with processing events in sdl while lua is embedded basically in some pseudo code this is what it looks like so far [CODE] #include <lua.hpp> #include <SDL/SDL.h> #include "user.hpp" int …

Software Development c++
Member Avatar for Celtrix
0
351
Member Avatar for Kate Teoh

Hi, I had developed a system which run well at localhost but once run at server, the following error will appear: Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\awt.dll: The specified procedure could not be found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown …

Software Development java pdf
Member Avatar for ~s.o.s~
0
349
Member Avatar for varoluscu_prens

Hi there; There is such a simple code here, and with the propotion of its simplicity, it drives me crazy. Here is the code: [CODE] private void fillArrayLists(String fileName,ArrayList <String> list) { try{ // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream(fileName); …

Software Development file-stream java
Member Avatar for varoluscu_prens
0
179
Member Avatar for MxDev

hi guys, currently am planning to buy an exam simulator for SCJA exam so which one is the best to get prepared for the test [COLOR="Red"]ucertify [/COLOR]or [COLOR="Red"]whizlabs[/COLOR]?? if there's any other of these please mention it here. Thanks

Software Development java
Member Avatar for MxDev
0
99
Member Avatar for DarkPyros

hey, this is supposed to collect data into a 2 by 3 array. believe it or not, my teacher wrote this problem and he spent 20 minutes trying to figure out why it wasn't running properly. anyone care to help me figure out what was wrong with it?? [CODE]#include <stdio.h> …

Software Development c
Member Avatar for Aia
0
155
Member Avatar for alex1050

I need help understanding the do-while loop in this code. Im confused in how this do- while works because what i understand is the statement is executed then the expression is evaluated if nonzero and executes whats in while(). But its a loop so for example if i type Jack …

Software Development c
Member Avatar for Aia
0
198
Member Avatar for kipslem

Hello, Please could someone help me on this. I have a button on which when clicked will display the crystal report. This report displays as required but when I want to view the report the second time, there's this error message: "Index 0 is out of range, Parameter name:index". FYI …

Software Development vb.net
Member Avatar for kipslem
0
722
Member Avatar for Jessurider

can anyone tell me why this project(attached) is slow in execution!!!! is there any remedy for this problem...... please anyone tell some tip to make this project to run faster..........

Software Development java
Member Avatar for teo236
0
141
Member Avatar for Sophiron

I'm trying to open a text file in a program I've created but it won't work unless I specify it as an absolute file path. I can't seem to make a relative path name.

Software Development vb.net
Member Avatar for Sophiron
0
220

The End.