43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Ultratermi

Hey, i wanna get the text from a NOT selected index. Does anybody know how to do it? Thx! Daniel

Software Development c++
Member Avatar for Ultratermi
0
136
Member Avatar for Stefano Mtangoo

I plan to make Java image viewer I just started today and I had hard time with GridBagSizer After long time of pain it turned to be fruitful. Here is what I have so far. I want the following, of which I have failed: 1. Make the components fill the …

Software Development java java-swing
Member Avatar for Stefano Mtangoo
0
89
Member Avatar for dchunt

I want to read characters(256 of them) from a file and put thier numeric value in an array.Then i want to send 16 characters in batches from the array onto a loop in successive steps to perform operations on them. My problem: First i can read the first batch of …

Software Development c++ ios
Member Avatar for jonsca
0
102
Member Avatar for itsmeisuru

[code] if (a>b || a==2){ System.out.println("yes") } [/code] [quotes] in if command it gives an error, sayin operator || can not be applied to a boolean. I want to know how to use the and &&, or || operations in java.. [\quates]

Software Development java
Member Avatar for staneja
0
136
Member Avatar for doha786

hi, i am trying to build a simple program where system asking info (name,age,sex & location) to make a table using do-while loop. for each info will create one new row in table that i dont know how to make.. please help me... here, i made for one single row …

Software Development java
Member Avatar for javaAddict
0
467
Member Avatar for BirdaoGwra

Hi, Could someone kindly tell me how to stop maximizing a dialog box with cursor? Like, when we create a toplevel window, it is possible to maximize that window with mouse, holding its border. I want to fix the size of the window? How? Thanks in advance Regards

Software Development python tkinter
Member Avatar for BirdaoGwra
0
138
Member Avatar for rohini.vangury

d set up file for my windows project in C#,works fine as far as diplay of forms is concerned but any button when clicked gives the following error: "length of parameters cannot be less than zero. Parameter name: length" there is no parameter called "length" suphrisingly in the form i …

Software Development
Member Avatar for Jadooo
-1
164
Member Avatar for naru10

can anybody help me how to use a code of log out and how to code it using vb.net plss help

Software Development vb.net
0
61
Member Avatar for atticusr5

hello all I am a second semester c++ college kid so bear with me I am writing a program that takes in bank account info, sorts it, prints it, and then prompts the user if they would like to view any specific records via the account number or the name …

Software Development c++ ios
Member Avatar for vmanes
0
105
Member Avatar for rena0514

My numbers are not being read in to the two dimensional array correctly and i'm completely lost :confused: [CODE] #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; const int SIZE_MONTH=4; const int SIZE_DAYS=31; int main() { float temperatures[SIZE_MONTH][SIZE_DAYS]; string months[SIZE_MONTH]={"January","February","March","April"}; ifstream inFile; inFile.open("temp1.dat"); if (!inFile) cout<<"File not …

Software Development c++
Member Avatar for vmanes
0
157
Member Avatar for Rmj001

Can anyone tell me where I am going wrong with my code? I keep getting two errors stating ';' expected (on lines 22 & 23). I am new to this so I am not sure what I can post and what I can't, so I am just going to post …

Software Development java
Member Avatar for Rmj001
0
341
Member Avatar for rhoit

Little bit help here i wanna cp the no of files listed in text file... i tried to use [CODE]for songs in $(cat "~Desktop/1/list.txt"); do cp $songs NewSongs/; done[/CODE] but my text file has the path with spaces like /home/rhohit/Music/00 Database/Albatroos/Albatroos/Albatroos - 01.आवाज.mp3 /home/rhohit/Music/00 Database/Albatroos/Albatroos/Albatroos - 02.खसेका तारा.mp3 /home/rhohit/Music/00 Database/Albatroos/Albatroos/Albatroos …

Software Development shell-scripting
Member Avatar for Aia
0
99
Member Avatar for songweaver

Hey guys, I am brand spanking new to C# and am not only wondering about the syntax, but also the logic of how to do this, my professor just threw us to the wolves with this problem and we haven't gone over any of the syntax or anything, I am …

Software Development mathematics
Member Avatar for apegram
2
2K
Member Avatar for xxunknown321

My assignment: Create a class with a method that accept a charge account number as its argument. The method should determine whether the number is valid by comparing it to the following list of valid charge account numbers: 5658845 4520125 7895122 8777541 8451277 1302850 8080152 4562555 5552012 5050552 7825877 1250255 …

Software Development algorithm java
Member Avatar for xxunknown321
0
395
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 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 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 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 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 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
235
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 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 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 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 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 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 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 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 SpyrosMet

Hello. I'm a newbie and i was wondering if anyone can tell me how to create an array that contains objects and number 0 wherever there is no object. Thanks in advance

Software Development c++
Member Avatar for kvprajapati
0
122
Member Avatar for atticusr5

Hello everyone, I am a C++ newbie and I am running into some linking errors. I am using Vi to compile and link my code. Here are the linking errors: assign6.o: In function `cAccountList::cAccountList()': assign6.cpp:(.text+0x1db): undefined reference to `cAccount::cAccount()' assign6.o: In function `cAccountList::cAccountList()': assign6.cpp:(.text+0x22b): undefined reference to `cAccount::cAccount()' assign6.o: In …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
112
Member Avatar for calccrypto

how do i get this code to stop referring to its present value, so that the values already saved in the list are not changed to the present value? [CODE] Cm = 0x5A827999; Mm = 0x6ED9EBA1 Cr = 19; Mr = 17 Tm = [[0]*8]*24 Tr = [[0]*8]*24 for i …

Software Development python
Member Avatar for calccrypto
0
68
Member Avatar for Szabi Zsoldos

I would like that case 1: should display how many elements do i want, and that i can assign values to those elements. Mine because of the j++ goes infinite, so i can enter infinite values to infinite arrays. How could i do this? Cate elemente vrei sa adaugi: 3 …

Software Development c++
Member Avatar for Szabi Zsoldos
0
561
Member Avatar for noey699

Every thing works perfectly only it will not check for a full house. Ive tried to figure out what the problem was by rewriting pair checking and three of a kind checking but the same result always. The function simply returns an integer corresponding to the hand stength given a …

Software Development algorithm c++
Member Avatar for noey699
0
151
Member Avatar for lrh9

I've seen these in documentation, namely in the "importlib" documentation for Python 3.1, and I'm wondering what the difference is between a "universal newline" and a "standard newline", if any. I know it has to do with the byte sequence that is used to represent newlines, and I think universal …

Software Development python
Member Avatar for HiHe
0
174
Member Avatar for capiono

I am trying to switch between to form in different project currently I am going this: [CODE] this.Hide(); form2 f= new form2(); f.Show();[/CODE] the new instance of form2 throws a null exception error. But I think because form2 is not active. How do I work around this or is there …

Software Development
Member Avatar for kdcorp87
0
94
Member Avatar for OldQBasicer

Is there a way to wrap the text on the list box items, i.e. go to the next line, when they're too long for the box. A few of my items are too long to fit, so they are truncated.

Software Development vb.net
Member Avatar for OldQBasicer
0
167
Member Avatar for Ap0ca1ypse

Hello, I have created a program and i have managed to publish my application. I have set it up to be installed via CD but it does not attach the MSAccess DB. My question is how do I add the DB?

Software Development vb.net
Member Avatar for Ap0ca1ypse
0
146
Member Avatar for SpyrosMet

the error by the compiler is [code=text]Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Makefile.win" all g++.exe Untitled1.o plants.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" Untitled1.o(.text+0x182):Untitled1.cpp: undefined reference to `Plants::Plants()' collect2: ld returned 1 exit status make.exe: *** [Project1.exe] Error 1 Execution terminated[/code] main code is [code]#include <iostream> using std::cout; using …

Software Development c++
Member Avatar for SgtMe
0
132
Member Avatar for fardoonmuhafiz

If a class doesnt override toString() method and tries to print out the object like this: //some class [code] public class SomeClass1{ int x=4; } //another class class DemoOftoString { public static void main(String[] args) { SomeClass1 o=new SomeClass1(); System.out.println(o); } } [/code] output:SomeClass1@hex version of object's hash code ------------------------------------------ …

Software Development java
Member Avatar for fardoonmuhafiz
0
101
Member Avatar for C++ Beginner

Problem: Write a pgoramthat uses a structure to store the following information: Name, IdNum, Test1Score through Test4Score, average, and grade. function to ask the user for student's name, etc. The average score should be calculated and stored in the Average member of the structure should be calculated in their own …

Software Development c++ data-structure
Member Avatar for C++ Beginner
0
374
Member Avatar for Aiyen

Hello all, great forum that have been a great source of information for me over the past many weeks. So now I decided to join up. I am currently trying to write a partial sum function as part of a much larger program I once wrote in Fortran. I am …

Software Development c++
Member Avatar for Aiyen
0
94

The End.