64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for anna12

hey all, im new at shell scripting and need to find out a simple way to create text files, with random words in them. then needing to input 3 of these files arranging their lines in alphabetical order and after that creating an output file with the last lines sorted …

Member Avatar for eryxzs
1
11K
Member Avatar for Zssffssz

Ok, I have chosen my exact path in life and need to learn this: How would I program for Linux? I have only minute ammouts of windows programing so start from absalute basics (like after cout and cin and main() stuff, start at oh something like LinMain or whatever linux …

Member Avatar for Ancient Dragon
0
183
Member Avatar for mahela007

hi guys. can anyone tell me why this code doesn't work? It doesn't raise any error but neither does it provide the expected results. [CODE] my_list= ['a','b'] class my_class: def __init__ (self): self.name = ' my name is hi' for a in my_list; a = my_class() [/CODE] a.name() gives and …

Member Avatar for JoshuaBurleson
0
242
Member Avatar for ThuggyWuggy

I keep getting an error saying that I am not using an object while calling a method, but I do not see how i this is the issue since I declare my class as a class... here is my code: [CODE]#ifndef __STACK_H #define __STACK_H #include <iostream> #include <cstdlib> using namespace …

Member Avatar for ThuggyWuggy
0
1K
Member Avatar for JoshuaBurleson

How would I define the command of a given button in a messagebox window? i.e. if I were using askokcanel how would I make the ok do a certain action and cancel another?

Member Avatar for JoshuaBurleson
0
104
Member Avatar for Syrne

Hi there, I'm fairly new to java and I have a question about creating an array of objects for a class and allowing data entry for each individual object in the array. I'm a little confused on how to go about doing this correctly. As of right now I have …

Member Avatar for Syrne
0
167
Member Avatar for PhxBased

I'm suppose to end up with a label box with my name spelled out in it using string manipulation. This is suppose to happen using the concatenated string to output the name into the label box. I don't have any error codes but I also don't have my name in …

Member Avatar for PhxBased
0
199
Member Avatar for SteveyD

I'm encountering some problems with converting Delpi7 pascal to C#, maybe a fresh set of eyes will see what I can't. Pascal [CODE] procedure TForm1.Button5Click(Sender: TObject); var Data: TData; i: integer; s: string; begin if not (CheckBox1.Checked) then begin StatusBar1.SimpleText:='Bidirectional operation not allowed'; exit; end; for i:=0 to 255 do …

Member Avatar for SteveyD
0
1K
Member Avatar for woopi

I have a form with checkboxes [CODE]<input type="checkbox" name="yo[1]" value=1 <input type="checkbox" name="yo[2]" value=1 <input type="checkbox" name="yo[3]" value=1[/CODE] I want to to insert values into db exactly like this create table tablename yo1 tinyint default 0 , yo2 tinyint default 0, yo3 tinyint default 0 insert into table set yo1=value, …

Member Avatar for diafol
0
229
Member Avatar for kaeirlic

I am working on an assignment that requires me to read in a text file with text that looks like this [CODE]974 Headlight_LoBeam 6 12.87 5 3[/CODE] I am able to open the file successfully and just for testing purposes I am able to use getline() to get the first …

Member Avatar for kaeirlic
0
427
Member Avatar for coolbeanbob

Hello All, I am trying to return three integers from the load function below. Right now, the program only returns the throughput variable. How do I use this function so it returns all three? (I am trying to implement this in a larger project where I cannot call the load …

0
77
Member Avatar for OblibSystems

I'm looking to further my VB skills but have a writers block on what to create. So if you have any idea or suggestions which i could use for my next project please post a reply. Thanks

Member Avatar for mb01a
-1
174
Member Avatar for aaronmk2

I am trying to get the height of a BST using a stack. I was told that I should use preorder and measure find the largest size of the stack. However, this does not seem to work. Any ideas of what I am doing wrong. [CODE] int PBT::maxDepth() { if …

Member Avatar for Taywin
0
180
Member Avatar for chiiqui

[CODE]public class Briefcase{ private int amount; private String face; private boolean isOpen = false; public Briefcase(int amount,int cNumber){ this.amount = amount; this.face = Integer.toString(cNumber); } public void removed(){ isOpen = true; face = "X"; } public boolean isRemoved(){ return isOpen; } public int getAmount(){ return amount; } public String toString(){ …

Member Avatar for stevanity
0
187
Member Avatar for MoZo1

This prints NULL: [CODE=Java]String sss = System.getSecurityManager() == null ? "NULL" : System.getSecurityManager().getClass().getName(); System.out.println(sss);[/CODE] And this throws exception: [CODE]ServerSocket serversocket = new ServerSocket(80);[/CODE] This one: [CODE]Exception in thread "main" java.lang.Error: java.net.BindException: Permission denied at httpserver.HTTPServer.main(HTTPServer.java:68) Caused by: java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at …

Member Avatar for MoZo1
0
425
Member Avatar for Triarius

Can somebody please tell me what am I doing wrong? I have created a so called "game" and I have decided to add some random events. That's where I got this nasty error which I do not know how to dispose of. [CODE] #ifndef FUNC_H #define FUNC_H #include <iostream> #include …

Member Avatar for Narue
0
230
Member Avatar for titosd

Hello, I need to calculate dates, e.g: if i have this date on string "12-07-2008" and I want to add to this date 17 month. How can I calculate this date. are the a func that do this calculate ? or I nedd to write it ? Thank you

Member Avatar for diafol
0
145
Member Avatar for max4444

sorry if this seems silly, i am trying to learn php and mysql i have tried a few times and all i do is crash the code. What is am trying to do is change the cell background colour to green if echo $row['s1']; is "2" and red if "3" …

Member Avatar for max4444
0
95
Member Avatar for Rupindersingh

What is EOF. How is it generated? Which key corresponds to "end of file" on the keybord??

Member Avatar for Rupindersingh
0
121
Member Avatar for Rupindersingh

Can anyone please debug the following binary tree program, it flashes two errors: 1: Type mismatch in redeclaration of 'strdup' 2: Tpe mismatch in redeclaration of 'talloc' [CODE]#include<stdio.h> #include<ctype.h> #include<string.h> #define MAXWORD 100 struct tnode *addtree(struct tnode *, char *); void treeprint(struct tnode *); struct tnode { char *word; int …

Member Avatar for Narue
0
246
Member Avatar for priyamtheone

Hi, I'm trying to render a checkbox in a datagridview column header so that when the checkbox is checked/unchecked all the cells in that column should be checked/unchecked accordingly. The datagridview is bound to a database table but the column containing the checkbox header cell is unbound. The problem is, …

Member Avatar for priyamtheone
0
988
Member Avatar for priyamtheone

Hi, we all know how to dock or anchor controls so that they resize themselves accordingly when a form is resized. It works fine till we have rows of controls on left and right size of the form. But what if have three columns (Columns as in visual sense. I'm …

Member Avatar for priyamtheone
0
250
Member Avatar for priyamtheone

Hi, I have an editable datagridview that's been databound with dataadapter and datatable, and a normal button on a form. When i edit the dgv's cells and click the save button it fires the datagridview_cellvalidating event and if the cell validation is correct it updates and saves the current record …

Member Avatar for priyamtheone
0
184
Member Avatar for priyamtheone

When a button is focused by pressing Tab key, a rectangle appears on it. Even if the button's TabStop property is set to false, when the button is clicked with mouse the rectangle appears. Is it possible to stop the rectangle from appearing? Please help. Regards.

Member Avatar for priyamtheone
0
148
Member Avatar for vb.net_beginner

I have a project where I want to be able to multiply 2 values from a database. So I have a combo box where the user is able to select from a set of data. This displays the data relating to the selected row in text boxes on the windows …

Member Avatar for vb.net_beginner
0
152
Member Avatar for JRCharlie

Hi I have an application that has an Ms Access 2007 DataBase which runns great if access is installed. Is there any code that I can use in vb that I would be able to run access with out installing it. Tanks in advance

Member Avatar for debasisdas
0
135
Member Avatar for calebcook

Hi. I need a function which will convert a decimal to a fraction, so that I can put in [CODE]echo dec2frac(1.75);[/CODE] and it'll output 1 3/4. Any suggestions? Thanks

Member Avatar for diafol
0
3K
Member Avatar for king03

Can someone please explain to me how the pointers were used in the line w/ the red font. I do not understand where the pointer pertains to and why there is still a need for that. Also why is it that a "+" sign was used to combine two array …

Member Avatar for Ancient Dragon
0
138
Member Avatar for vb.net_beginner

I have linked a database to a windows form. I have dragged the field objects onto the windows form. Prior to doing this I changed the first field object to a combo box and the last field object to a list item. I have proceeded with the following settings for …

0
95
Member Avatar for BleepyE

Hi, i was just wondering how I get user details from a user table from a mysql database. Ive already worked out how to connect to the server, im just wondering how to import the data into a datagrid. Thanks Heres my current code [CODE]Imports MySql.Data.MySqlClient Module sql Dim Connection …

Member Avatar for farooqpathan
0
211
Member Avatar for stevanity

Im a Junior in college now (Computer science Engineering). Im planning to start my Java certification. Im comfortable with programming in java. Im familiar with most common API and also with swing and Collections, Concurrency, etc. and also with OOPS concepts. So I thought I might take an entry level …

Member Avatar for peter_budo
0
132
Member Avatar for ihatehippies

I made a simple ThreadManager class that receives tasks and spawns threads to complete the tasks. Currently it keeps all the threads alive until I explicitly set threadmgr.waiting=False and all of the tasks are complete. I'm trying to eliminate the need for the former. What I would prefer is that …

Member Avatar for ihatehippies
0
177
Member Avatar for rakwel10

How can I make my website work like this: User forgot to logout its account to PC1. Then he goes to PC2 and login the same account he uses to PC1. User successfully logs in to PC2 while its account in PC1 is autamatically logged out. How is that?

Member Avatar for rakwel10
0
246
Member Avatar for jefroxnergal

So I have this two forms.. I have a command button on the second form that when I clicked, a message box pops out and ask you if you want to go in the first form. The 'Yes' worked but the 'No' doesn't work, the first form still shows.. can …

Member Avatar for Unhnd_Exception
0
364
Member Avatar for countycowpoke

I am trying to send registration/ activation information via email, but don't want to store my authentication within the vb.net app and therefore not wanting to use .NET SMTP. I have the below php script that works from a website, but I can't seem to get the variables sent to …

Member Avatar for countycowpoke
0
397
Member Avatar for SteveWaugh

Hi, I've been trying to sort a list in ascending order for a problem in class, but my for loop isn't working. [CODE]import java.util.*; public class AscendingOrder { public static void main(String[]args) { int min; Scanner input=new Scanner(System.in); int[]list; list=new int[10]; int[]list1; list1=new int[10]; System.out.print("Enter 10 integers: "); for (int …

Member Avatar for SteveWaugh
0
236
Member Avatar for geeksforgeek
Member Avatar for geeksforgeek
0
124
Member Avatar for maroom

Hello below is the progra... i cann access araylist in the main class function.... like "LoanBook" see that in the code.... plz recity meeee folks... thanking uuuu =--------------------------------------------------------------------------= [ICODE] import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String …

Member Avatar for JamesCherrill
0
343
Member Avatar for saurav2007

I got the problem with this code.. can anyone explain me the output.. main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );}

Member Avatar for saurav2007
0
124
Member Avatar for komanche

I have written a login page but each time I login it returns a blank page even with a wrong password please help: the login page is as follows: [CODE] </head> <body> <div id="wrapper"> <form action="methods/login.php" method="post"> <ul> <li><label>Username:</label><input type="text" name="username" size="10" value="<?php echo htmlentities("$username"); ?>" /></li> <li><label>Password:</label><input type="password" name="password" …

Member Avatar for karthik_ppts
0
788
Member Avatar for ktab

Hello all I was wondering how i could pass the following SLQ function to my datatable: Select sum(Quantity) from Purchases where transaction_mode=1 Thank you

Member Avatar for ktab
0
252
Member Avatar for cent91

i wanna use the Sleep fucntion in a CLR vc++ app, if i include windows.h it gives a huge list of errors, if i use _sleep() then it dowsnot work at many systems since its obslete. what should i do? i am bound to use CLR bcoz my code uses …

Member Avatar for cent91
0
448
Member Avatar for Oneryavuz

i have a form and i need to use mouse scroll for moving my panel. so i need to create event ( :) ok ok im not sure ) and No matter where the selected i need to use this event when i use mousescroll :) I hope i was …

Member Avatar for Oneryavuz
0
162
Member Avatar for earlybirdsean
Member Avatar for earlybirdsean
-1
183
Member Avatar for Ehtesham Siddiq

hi, My application is in VS2008 coded in vb.net.I have a form with a datagridview which loads data from databaase.there is one column where data is stored separated by comma's.Like Name,Surname,LastName name this column as [B]Testing[/B].I have a checklistbox on another of my form.When the user selects a particular row …

Member Avatar for Ehtesham Siddiq
0
850
Member Avatar for janice91

[I]Dear experts, I am trying to code out my assignment but i made a problem with my [CODE]break;[/CODE] within my [CODE]if (operator.equals(zero))[/CODE]. i have received compilation error stating the following: [/I] [B]HelloWorld.java: break outside switch or loop[/B] [I]Appreciate if someone can point out my mistake. Thank you.[/I] [CODE] import java.util.*; …

Member Avatar for Muhasin
0
240
Member Avatar for SagarSe7en

Hello Everyone! A new thread i have started and this is how the problem goes... I want to display record of a user something like profile details based on the user who has logged in to member's page! So when the user has logged in and clicks on the view …

Member Avatar for SagarSe7en
0
6K
Member Avatar for D33wakar

I wrote a procedure to read integers(unsigned) from stdin and store it in a variable. I wanted it to handle backspaces too. so I made some adjustments but unfortunately it didn't work.--see line 14 in the code [CODE]get_num: ;(function get_num: read integers from stdin) push ax ;save all registers push …

Member Avatar for D33wakar
0
1K
Member Avatar for naveedqadri

Hi Experts, I have asp.net application already published with x86 ( i am not sure but can not working properly on windows server 2008 64 bit with oracle), through googling i found that i need to change application to Specific CPU through VS2005. There is also solution: To explicitly set …

Member Avatar for kvprajapati
0
191
Member Avatar for Intrikate

So this is my first post and I have only begun using python. One of my first assignments is to design a program which will count the most used words in the given text file. In my case we are using the Declaration of Independence. Here is what i have …

Member Avatar for JoshuaBurleson
0
3K

The End.