132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for panagos

I try to find a way to find the minimum of an array of numbers different type (int,float,double..) i have written this [CODE] #include <iostream> #include <vector> #include <iterator> using namespace std; template <class T> T min(vector<T> a()) { int i = 0; T min = a[0]; vector<int>::iterator it; for( …

Software Development c++
Member Avatar for dusktreader
0
201
Member Avatar for gowth08

Hi all, My code for SHOP is as follows, problem description [url=http://www.spoj.pl/problems/SHOP/]here[/url]. [code]#include<iostream> #include<queue> #include<climits> using namespace std; class pt{ public: int _x,_y,_cost; pt(){} pt(int x,int y,int z):_x(x),_y(y),_cost(z){} int print(){ printf("%d %d %d\n",_x,_y,_cost); } }; int dx[]={0,-1,0,1}; int dy[]={-1,0,1,0}; int main( ) { int M,N; while(scanf("%d %d",&N,&M)!=EOF){ if(!M&&!N)break; bool flag=false; …

Software Development c++ queue
Member Avatar for Ancient Dragon
0
167
Member Avatar for asa88

here is my class file: [CODE] #ifndef BANGER_H #define BANGER_H class Banger { private: static int objectCount; char* driver; char* car; int hits; bool mobile; public: Banger(); Banger(char*,char*); Banger(const Banger &obj); void setDriver( char* ); void setCar( char* ); void setHits( int); void setMobile( bool); char *getDriver(); char *getCar(); int …

Software Development c++ visual-studio
Member Avatar for asa88
0
118
Member Avatar for borkoBorule

Hi everyone, I'm n00wbie to C# and I I have one question. I'm writting class for access to MySQL over DbLinq and I need to know connection string. I know that I can read connection string from webconfig file. My question is is there any function in C# that I …

Software Development c c# c++
Member Avatar for apegram
0
80
Member Avatar for zapman2003

Hello, so the problem was to create a program that took input from command line to function as a rudimentary calculator: e.g 3 + 2, 5 * 4, 2/3 and so on. We were to take those arguments and pass them and a pointer to a function in to the …

Software Development c
Member Avatar for zapman2003
0
191
Member Avatar for weaslem32

I need help with an assignment. I have to modify the program below to determine the number that was entered the most times in a row and display the output. I can not use files or arrays. I am having trouble with the logic and need some guidance. Thanks. [CODE]#include …

Software Development c++
Member Avatar for dusktreader
0
76
Member Avatar for scott6480

I am having trouble with myRectangle2 taking the values I am assigning to it. The myLine2 value works just fine. Can anyone spot what I am doing wrong? I have stared at this for too long and now I am second guessing everything I have already done. Any help is …

Software Development c++
Member Avatar for WaltP
0
130
Member Avatar for BobbieJean

Hello, I'm new here but I need a little help please. I've gotten this program to mostly work correctly except for what seems like one small detail. My program is supposed to ask the user to enter a file name, open it and display its contents 24 lines at a …

Software Development c++ display file-system ios
Member Avatar for WaltP
0
665
Member Avatar for Mono15591

I haven't ran it for a while now and now I need to register it BUT the link it has to register doesn't load anymore...the site loads but all I get is a stupid loading animation for the product key. it's been going for 20 minutes now. I've tried multiple …

Software Development c++
Member Avatar for totalwar235
0
86
Member Avatar for Kligham

Hi, I was wondering how I can get the coordinates of a specific color from a window? Is it possible. I did some research, but I only found to get a color from coordinates, but I need it the other way around. Atm I have this, I don't know if …

Software Development
Member Avatar for Diamonddrake
0
364
Member Avatar for xtian002

C program that will ask the user to input a secret message. Your program will then encrypt and display the cipher text using the encryption formula. Also, to recover the original message, your program should be able to decrypt and display the shift cipher text. Sample Program Interaction: Type your …

Software Development c encryption
Member Avatar for abhimanipal
0
211
Member Avatar for lsandling

I guess I am really having trouble with what's inside the function How do I get it out.. Suppose I ask a yes or no question and if the answer is no then break if the answer is yes then compute that formula. okay [CODE] int ThingYesNo; doubleThingHeight do { …

Software Development c++
Member Avatar for lsandling
0
118
Member Avatar for Robert47303

hi all, im trying to make a login system, but the problem is that i want my program to read a user name and password from a file stored on the computer so it can be changed by the user. Ive tried making one at the minute but to no …

Software Development vb.net
Member Avatar for Robert47303
0
60
Member Avatar for fenerista

I have GradeBook.h that include class interface, GradeBook.cpp that include class implemantation, I want to make a lib file and use it with GradeBook.h on the other project. How can I do that ? I am using Windows 7, VS 2008

Software Development c++
Member Avatar for fenerista
0
264
Member Avatar for tzushky

Hello hello, First of all I was thinking that some of the experts around here could actually start an exhaustive discussion about peripheral driver development for newbies or unexperienced, such as yours truly. I find that theory is in many places, registers of classic peripherals are found also, but never …

Software Development c pc-peripheral
Member Avatar for Salem
0
137
Member Avatar for Bemani_lover

Ok, so I need a bit of help on a small project I'm working on. Here's the run down of it: Write a Java program that allows the user to enter tests grades for yourself. The application should prompt the user to enter how many tests they wish to enter …

Software Development java
Member Avatar for peter_budo
0
144
Member Avatar for Austinjs0102

Basically i need to use JOptionPane and have the user enter a name followed by a . (dot) and a file extension. After they have done that the output should be the extension name without the dot. Ex Please enter a file with dot extention > new.html You choose html …

Software Development java
Member Avatar for mohammedsohaib
0
237
Member Avatar for SpyrosMet

Hello. I need some help with a project of mine and the thing is that I have the class organisms that has two sub-classes: animals and plants. Animals has two subclasses itself: Carnivores and Herbivores. I have succeded in including the plants header file or cornivores header file or herbivores …

Software Development c++
Member Avatar for SpyrosMet
0
119
Member Avatar for deorcar

hi im working with opengl/sdl and im still new to it what im trying to do is to make a 2nd box or sprite that will follow the frist box ive made can anyone help me out here is some of the code i have [CODE]#include "sdl.h" #include "GL_Functions.h" #include …

Software Development c++ opengl
Member Avatar for Skeen
0
128
Member Avatar for Mitja Bonca

How can I use a DataTable to save data into it? I have a listView with ticks, and when a tick is checked, I would like to put the data of the row into DataTable. In the row I have a "ProductName" and it`s "Price". I am doing this becuase …

Software Development listview
Member Avatar for JuhaW
0
107
Member Avatar for atticusr5

Hey everyone, I have this assignment for my C++ class and I need to sort some data I have data in a file in this order: some 10 digit int -the account id some name -the account name some balance -the account balance basically I want to sort the data …

Software Development c++ ios
Member Avatar for atticusr5
0
108
Member Avatar for trips.dude

Hi All, I am new to the programming world. I was just writing this code to generate N prime numbers. User should input the value for N which is the total number of prime numbers to print out. I have written this code but it doesnt throw the desired output. …

Software Development python
Member Avatar for samvinogar
0
17K
Member Avatar for Shilpa Jain

Hi All, I am creating and saving the excel sheet at runtime(it is a copy of report generated in flexgrid). I need to add some of the column names in the excel sheet name while saving. e.g. Excel sheet should be saved as Report_Nid_Status_RBAC_Status_Today'sDate. Nid_Status and RBAC_Status are column names …

Software Development visual-basic
Member Avatar for pr12345
0
136
Member Avatar for Roger_Hades

Hi everyone! I've been working on this code for 2 days(got half of it from the web) [code] class name { string name1; public: name(string s) //set name { name1 = s; } string get() //get name { return name1; } }; // Define less than relative to name objects. …

Software Development c++
Member Avatar for Roger_Hades
0
162
Member Avatar for yila

[code=c] /*the program gots a string, and supposed to copy to the destination string every letter only once, and after a letter a num - a counter how many times a letter appeared in the original string for example - for kuku it should return k2u2 - but it returns …

Software Development c
Member Avatar for yila
0
99
Member Avatar for rwildman23

Run the program and you'll see I am not filling the arrayList but am invoking the toString method. Obviously this is not giving me the desired output. What's wrong? (I did not post the other classes because I don't think my error is there but if anyone needs them let …

Software Development java java-swing
Member Avatar for javaAddict
0
107
Member Avatar for punter999

hello seniors, i want to serialize a matrix of any dimension to be serialized and stored in the hard.i will be thankful if you guide me about this.how can i perform this work..? your response and help will appreciated Regards Punter

Software Development python
Member Avatar for punter999
0
148
Member Avatar for dnamgyel

[TEX] Input1: [འབྲུག་གི་རང་ལུགས་འཆམ་།] [དུས་རབས་བརྒྱད་པའི་ནང་] [གཏེར་འཆམ་དང་] [པད་གླིང་གིང་གསུམ་] [ལ་སོགས་པའི་འཆམ་གྱི་རིགས་ཚུ་ད་ལྟོ་བར་ན་ཡང་] [ཡོངས་གྲགས་སྦེ་] [རྐྱབ་སྲོལ་ཡོདཔ་ཨིན་།] ->actual file (requiring special font support so I have modified the Inputs) [AB'C'DEF'GH'I'] [JKL'MN'O'|] and so on ..........[ ......|] Input2: འབྲུག་ གི་ རང་ལུགས་ འཆམ་ ། གཏེར་འཆམ་ དང་ པད་གླིང་གིང་ གསུམ་ ལ་སོགས་ པའི་ འཆམ་ གྱི་ རིགས་ ཚུ་ ད་ལྟོ་ བར་ན་ ཡང་ ཡོངས་གྲགས་ སྦེ་ རྐྱབ་སྲོལ་ …

Software Development python
Member Avatar for dnamgyel
0
126
Member Avatar for dondajr

Hi everyone o/ How can I concatenate a no print char from the ASCII on my string? For example: I have the str1 = "Jhon" and str2 = "Lucas" I wanna concatenate the special char 01 ( SOH) between the str1 and str2. can anyone help me? I hope so..!! …

Software Development c
Member Avatar for dondajr
0
287
Member Avatar for thekashyap

Hi, While trying to debug some performance issues, we narrowed down the problem to calls to Entity Beans taking long time. Original design is nice and generic but does not scale up in this case. Here are the details: - J2EE application. - Oracle DB - Entity Beans used for …

Software Development java microsoft-access oracle
Member Avatar for jwenting
0
185
Member Avatar for ricss_madara

how to write an application that reads in a five digit integers and determine whether the number is as palindromes or not e.g 12321,11611.If the number is not five digit long, display an error dialog, allow the user to enter a new value.

Software Development java
Member Avatar for jwenting
0
113
Member Avatar for java..

[CODE]public class array{ public static void main(String[] args){ int num[] = {80,20,47,82,25,13}; int l = num.length; int i,j; System.out.print("Given number : "); for (i = 0;i < l;i++ ){ System.out.print(" " + num[i]); } System.out.println("\n"); System.out.print("Accending order number : "); for (i = 0;i < l;i++ ){ //int temp=num[i]; for …

Software Development java
Member Avatar for staneja
0
190
Member Avatar for musthafa.aj

hai! i created jar file that will be extractable in any way... but what i need is don't to be extractable... how do seal it from others seeing by extracting it... any general idea please.....

Software Development java
Member Avatar for jwenting
0
131
Member Avatar for Deep1234

Hi, 1. How to print a report automatically through vb.net.For example if the print button is clicked the report has to automatically print, How can we do that?? 2. How to retieve the rows one by one when the parameter value is entered in the text box and the columns …

Software Development dataset open-source vb.net
Member Avatar for pauldani
0
165
Member Avatar for akonful

I need help with my class assignment. I am supposed to write a java program to count the number of digits in a string using: [icode]public static int countDigits(String s)[/icode] can anyone help...I cant seem to figure it out from what I have [code]public class Ex8_5 { public static void …

Software Development java
Member Avatar for BestJewSinceJC
0
100
Member Avatar for Hanyouslayer

I just started assembly programming, x86, and I am kind of getting the hang of it, but I am still far from becoming great at it. It's interesting to see what I do in Java from a different view. Anyways, for the life of me, I can't figure out what …

Software Development assembly
Member Avatar for Hanyouslayer
0
173
Member Avatar for wen30

Hi, i have a windows form application and the main thing in there is a treeview, and i am adding nodes to the treeview. so i have another class file that will consist of the algorithm of how those things work for the treeview. the problem is i can't call …

Software Development algorithm
Member Avatar for wen30
0
110
Member Avatar for kppowell

Hey, im Keith and im 15 years old. I like computers alot and im pretty good at making websites, so this year i signed up for computer science. Our teacher is teaching us how to wrote programs using C++ and i love it, but i was wondering, why are they …

Software Development c++
Member Avatar for sonu babu
0
280
Member Avatar for deepu.bhanu

java program to read csv file and store it in rbnb server please try to help me

Software Development java
Member Avatar for javaAddict
0
152
Member Avatar for mahela007

How can I make a program wait for a few seconds before proceeding? An example of where this would come in handy is when the program allows the user 5 seconds before it proceeds with some default option... can I do this using python?

Software Development python
Member Avatar for mahela007
0
285
Member Avatar for Austinjs0102

Alright i am writing a program to read a sentence you write and judging by you punctuation it will tell you whether its a statement, question, exclamation or other. My problem is that it isnt running my If statement. am i just bind and missing something. [CODE]/* * To change …

Software Development java
Member Avatar for staneja
0
315
Member Avatar for mseck

I would like to create a java prob that will request three integers from a users and have it printout the sum and product as such: the 3 different integers are : 13, 27, 14. the sum is 54 The product is 4914 Completed Have i programm the right way: …

Software Development java
Member Avatar for staneja
0
103
Member Avatar for manchesterutd

Hey guys, I really do not know on how to start this loop logic structure. Can anyone give me a rough idea on how to go about it? The question is : Develop a solution to calculate a student's grade average for one semester. The letter grades should be entered …

Software Development c++
Member Avatar for WaltP
0
77
Member Avatar for pankti

I want to reset the ComboBoxEntry when the arrow symbol on it is clicked, but could not find any method that is called when arrow symbol on dropdown list is clicked. None of the signals button_press_event, key_press_event or focus_in_event works. This all are called when the text area on dropdown …

Software Development python
Member Avatar for pankti
0
113
Member Avatar for shiv0013

[CODE] package Sample; public class Sam { public static void main(String[] args) { R obj[] = new R[100]; obj[0].current=0; } } [/CODE] [CODE] public class R { int current; } [/CODE] when executing this code i am getting null pointer exception. while debugging at "obj[0].current=0 " it shows as malformed …

Software Development java
Member Avatar for PersonalIT
0
1K
Member Avatar for Dragonsreign

[code] /* * This program displays "I Love C++" to the Standard Output */ #include <iostream> int main () { std::cout << "I Love C++"; return 0; } [/code] I just DLed and Installed Cygwin and Netbeans using instructions from: [url]http://netbeans.org/community/releases/65/cpp-setup-instructions.html[/url] I did see that ths "type" of problem has …

Software Development c++
Member Avatar for Dragonsreign
0
927
Member Avatar for losh177

hi, i'm having problems with the output. I do not get anything when I select 4 and enter a binary number. Here is my code, if anyone could point out what i'm doing worng, thanks. [CODE]import java.util.Scanner; public class Driver { public static void main(String [] arg) { LineWriter Lw …

Software Development java
Member Avatar for losh177
0
115
Member Avatar for AlexandraK

There might have been a question like this but I cannot find. I use option buttons in the form but in the report I want to see text instead of numbers. How shall I do it?

Software Development visual-basic
Member Avatar for AlexandraK
0
62
Member Avatar for clutchkiller

Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to a string consisting of the month followed by day of the month. For example, Day 2 would be January 2 Day 32 would be …

Software Development c++
Member Avatar for clutchkiller
0
308
Member Avatar for deftech69

I have a general question about searching inside a two-dimensional array. I'm working on a number search program that allows the user to enter a number to search in a grid of numbers. For example: User wants to search: 234567 In a grid of: 232772725432 734234657337 272425672442 235533655737 252444474436 737533255325 …

Software Development algorithm java
Member Avatar for deftech69
0
2K

The End.