199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bufospro

Hi, I am trying to write to a .txt file an integer but the characters I see when I open the file are strange. Could you tell me what happens ?? [CODE] import java.io.*; public class A { public static int readInt() { byte b[] = new byte[16]; String str; …

Member Avatar for bufospro
1
123
Member Avatar for preetg

hi evryone... i have two tables first one is takeleave and the second one is leave...and when any employee take leave by filling the leave form then according to the no. of days leave taken the value should be deducted from another table i.e leave table. but m unable to …

Member Avatar for preetg
1
131
Member Avatar for VernonDozier

Okay, I think I know the problem, but I don't know how to solve it. I want to write a binary file with raw bytes. Windows appears to interpret 10 as ASCII 10 and it does its thing where it interprets 10 as '\n' and decides to change that to …

Member Avatar for VernonDozier
1
135
Member Avatar for jamey8420

Hello, First a little background on my issue. I have two multi select boxes. The first select box (box1[]) is populated from a table. The second select box (box2[]) will be populated by "clicking over" options from box1. These options are rights to be assigned to a specific person. The …

Member Avatar for jamey8420
1
170
Member Avatar for dabboo

Hi, I am new to programming. As an absolute newbie, I downloaded codeblocks and wrote my first programme i.e. Hello World. But when I hit F9 key of my keyboard, the programme didn't run. Can someone guide me as to how a programme is run after writting it in the …

Member Avatar for dabboo
1
93
Member Avatar for nabil1983

Okay i've created an array object with help from here like so: CdRecord[] array = new CdRecord[5]; array[0] = new CdRecord(); now i've used a while statement to write to the arrays , im writing CDName,AlbumName & NumberOfTracks... when i run my program it all works except that when i …

Member Avatar for emilchacko
1
161
Member Avatar for samudebr

Can some one help with the code how I am going to populate a treeview. In my database i have a talbe with the following coloums: ID, ParentId, NodeText. Now i have the data in class named Cateogry and in it i have all the above colums. Then I created …

Member Avatar for yaninea
1
2K
Member Avatar for qk00002

Where I can download VB6.0 english version? Need one now but couldn't find on the web. help~please~~~~

Member Avatar for WaltP
1
342
Member Avatar for bunnyboy

So today at school I was given a task to create an application to apply convolution over image. I decided to load convolution cores from xml file. But, as this was the first time me working with xml I have no knowledge how to effective parse it. So here is …

Member Avatar for bunnyboy
1
105
Member Avatar for PierlucSS

Is it possible to somehow compare a value to a range of value without using for/foreach. [CODE]IEnumerable<XElement> results = xdoc.Descendants( "PAGE" ).Where( p => p.Attribute( "id" ).Value == RANGE_OF_ID).Select(result => result);[/CODE] Is there anyway of doing what I wrote below? RANGE_OF_ID could be a collection.

Member Avatar for PierlucSS
1
142
Member Avatar for kirandeshmukh

Hi Friends, I am doing b.tech(Comp) and my project sunject is online exam. so pls. help me for it, pls. someboby send me the source cpde of it. Mine E-mail Id is SNIPPED Regards, Kiran

Member Avatar for abdul shafee
1
100
Member Avatar for Randomnoize

Hi all - This is kicking my butt. I have searched everywhere I can think of and have tried the various solutions to no avail. First I am connecting to two databases on the same instance of mySQL using : [code=php] $conn2 = mysql_connect ( "XXX.XX.XX.13", "User1", "PWord1",true) or die("Could …

Member Avatar for Randomnoize
1
161
Member Avatar for skerdzius

Hello, i've been learning java for a few months now, but i woulld also like to try c++. I tried rewriting one of my exercises in c++, but i cant seem to get objects working. These lines all prodduce errors. Cylinder outer(5,5); Cylinder inner(4,4); cout << "\n" << outer.volume() << …

Member Avatar for skerdzius
1
339
Member Avatar for nccsbim071

[B]It's long but simple. I have only explained the problem in detail.[/B] After searching a lot i did not get any answers and finally i had to get back to you. Below i am explaining my problem in detail. It's too long, so please don't quit reading. I have explained …

Member Avatar for kvprajapati
1
1K
Member Avatar for mbrinkley

I have been working on this program for about two weeks. I missed the day that the professor covered the material necessary to code this program due to surgery. I am now behind about 5 programs that are due at the end of the week and I'm trying to teach …

Member Avatar for mbrinkley
1
178
Member Avatar for BrianWren

In trying:[CODE]string var1 = Something"; Console.WriteLine("{0} ... \{", var1);[/CODE] to get: Something ...{ I get an error: Unrecognized escape sequence. Without the backslash I get an error: Input string was not in a correct format. Using "{0} ... \x7B" doesn't work: Input string was not in a correct format. (\x78 …

Member Avatar for BrianWren
1
129
Member Avatar for bumsfeld

Many new computers come with Windows7(64bit) OS. You will be tempted to install something like Python 3.1.1 64bit version. However, many packages like PyQT and PyGame don't offer 64bit versions yet and will not work!

Member Avatar for Alq Veers
1
487
Member Avatar for cwarn23

Hi and this function I wrote as part of a larger project and acts exactly like the php explode function. Although there a few slight differences between this function and the php explode function it can easily be tweaked to act identical. Also with this function it does not use …

Member Avatar for tetron
1
677
Member Avatar for Dani

Hey, peeps ... Any comp sci ppl out there in internet land? I'm trying to do my CSC110 homework but because of my car accident I wasn't in class for the last 2 lectures. I was wondering of someone might be able to give me a hand with minterms, maxterms, …

Member Avatar for BestJewSinceJC
1
624
Member Avatar for danturn

Hey guys, I've got a dataview (shown below)... UDP Position Label Number 11042266 1 JXXXXX 9XXXXXXXXXXX 11042266 2 GXXXXX 9XXXXXXXXXXX 11042449 1 RXXXXX 11042458 11042458 1 SXXXXX 9XXXXXXXXXXX 11042458 2 IXXXXX 9XXXXXXXXXXX 11042458 4 AXXXXX 9XXXXXXXXXXX 11042458 5 HXXXXX 9XXXXXXXXXXX 11042458 6 MXXXXX 9XXXXXXXXXXX 11042459 1 IXXXXX 9XXXXXXXXXXX 11042459 2 …

Member Avatar for danturn
1
176
Member Avatar for DoEds

Can u help me with this? Here's the problem. Everytime i input just 1 word...it works fine. [URL=http://img148.imageshack.us/i/26168475.jpg/][IMG]http://img148.imageshack.us/img148/2503/26168475.jpg[/IMG][/URL] but when i enter 2 words this will happen... [URL=http://img706.imageshack.us/i/49110093.jpg/][IMG]http://img706.imageshack.us/img706/6625/49110093.jpg[/IMG][/URL] [CODE]#include <stdio.h> struct Student{ char course[5]; char subject[5]; char name[20]; float units[8]; float grade[8]; float qpi[3]; }Stud[3]; int main() { float grade …

Member Avatar for DoEds
1
278
Member Avatar for serkan sendur

Today we were talking about using new databound controls in asp.net 2.0, i have been trying to persuade my partner to use these controls but he has been refusing and saying that those controls are not flexible enough. Then he challenged me to populate a dropdownlist in a formview; with …

Member Avatar for vyasdev2005
1
1K
Member Avatar for spookytr

my project requires an external header file which includes definitions etc.. but i have no idea about how to create a header file on dev c++ thanks for any help..

Member Avatar for Salem
1
67
Member Avatar for sid78669

I have the following classes, SLList, an integer datatype-based linked list and DLList, a template-based linked list. My problem is that SLList is working perfectly, but as soon as i modify it to be used as a template, i get errors, more specifically LNK 2019, i.e. linking errors. I avoided …

Member Avatar for sid78669
1
638
Member Avatar for deucalion0

Hey there guys, this is my first post and yes it's because I need help. I am not straight out asking for someone to do my work for me, I can get my work done for me at any-time no problem but then I won't learn and learn is something …

Member Avatar for Geekitygeek
1
542
Member Avatar for goodeye28

how can i code this player1=rock player2= paper player two wins please help me

Member Avatar for Aia
1
976
Member Avatar for vishalonne

Hi My problem is that I want Other textbox tobe deactivated when page loads, but when user selects Other drop down box of Company Certification: then Other textbox should be activated. [URL="http://www.oemxtrade.com/index.php?main_page=create_account"]Please see here [/URL] Here is the PHP code which is displaying this page [CODE] <?php echo "<select name=\"company_certification\">"; …

Member Avatar for maba001
1
115
Member Avatar for oxy77

I have been trying to figure this out for a little while and I really can't seem to get a good grasp on where I am messing this thing up. I keep getting errors: Error 2 error C2664: 'input_polar' : cannot convert parameter 2 from 'int' to 'double &' Error …

Member Avatar for oxy77
1
155
Member Avatar for Megalodeez

Write a program to calculate a students GPA. What I cant figure is how to calculate ( Total= credit * grade + credit * grade...etc) or (GPA = Total/grade +grade etc...) If you run this program, you will see my calculation off by a lot. Please help. [CODE] import java.util.Scanner; …

Member Avatar for JavaNewbieEK
1
361
Member Avatar for photoyid

So I am working on a faux graphics program for class. The current part that I am working on is to determine just from top left and bottom right corners what the coordinates should be. I believe my logic is good but it seems to be setting it as tl(3,1) …

Member Avatar for WaltP
1
149
Member Avatar for munadel

In a C++ function How to check if the minimum and maximum values of an array are not equal and the minimum and maximum values of the array are not adjacent to one another. Also the minimum value occurs exactly once in the array and the maximum value occurs exactly …

Member Avatar for WaltP
1
111
Member Avatar for jd_davis

Greetings, I'm working my way through the Head Start C# book, and I know that whenever I open a stream [CODE=c#]Stream reader = File.Open(filename));[/CODE] I [B][I][U]ALWAYS[/U][/I][/B] [CODE=c#]reader.Close();[/CODE] my stream. The book also lets you know you can use a using block [CODE=c#]using (Stream ...) { }[/CODE] and the stream will …

Member Avatar for MattBerry
1
846
Member Avatar for habib_parisa

Dear all, I am trying to understand a C++ code. In one part of the code a one dimensional vector is copied into a two dimensional vector. I do not understand at all how such thing can work. But compiler is quite ok with that. #define TOTAL_STEPS 120 #define NUMBER_DECISION_VARIABLES …

Member Avatar for habib_parisa
1
1K
Member Avatar for Diamonddrake

I am working on a really fun project. I have written much of a program that lets you use a RockBand or GuitarHero drum kit to play drum sounds on your PC, record, playback, ect. I have decided conclusively as I add features I need more than just a gui …

Member Avatar for Diamonddrake
1
135
Member Avatar for dilas

I have such a problem: when I write:[code=c++] template<bool b> void foo(void); template<bool b> class B { friend void foo<b>(void); }; template<bool b> void foo(void){}; [/code] everything works just fine. But when I incapsulate all this in another class, I receive errors: [code=c++] struct C { template<bool b> void foo(void); …

Member Avatar for dilas
1
165
Member Avatar for Gribouillis

This snippet defines a class LebsegueSet which instances represent sets of real numbers, namely finite unions of intervals. Set theoretical, topological and measure theoretical operations are implemented in pure python. Use freely and enjoy !

1
257
Member Avatar for rhoit

I was trying to Compare the 5 Sorting Algorithms using 4 test cases. [U]Sorting Algorithms[/U] [LIST=1] [*]Selection Sort [*]Insertion Sort [*]Bubble Sort [*]Quick Sort [*]Merge Sort [/LIST] [U]Test cases[/U] [LIST=1] [*][URL="http://the.nube.googlepages.com/Sort.Analysisplot1.svg"]Random Data [/URL](completed) [*]Reverse Sorted Data (completed) [*]Almost Sorted Data (can't generate Data) [*]Highly Repetitive Data (can't generate Data) [/LIST] …

Member Avatar for rhoit
1
872
Member Avatar for prem2

Hi, I need to insert a new value in middle of array. For ex, $arrayvariable=arrray("a","b","d"); I need to insert C in between b and d. Thank you in advance.

Member Avatar for prem2
1
177
Member Avatar for saveyourselves

I am so confused in how to go about starting this, I have the information i need to input into the program but seeing the structure on how the program is laid out is my problem. Any example would be of great help. 1. Sandwich class to simulate the sandwich …

Member Avatar for kvass
1
218
Member Avatar for CSW110

Hi, my first programming query: well three queries. All I hope are trivial :) I thought I would have a go at trying to retrieve a value from an existing excel sheet. To do this I have used Project...Add reference to add - Microsoft Excel 12.0 Object library - Microsoft …

Member Avatar for Geekitygeek
1
193
Member Avatar for sanz

hi i am trying to retrieve picture in picture box from db but my code is not working. [B]INSERTING PICTURE IN DATABASE[/B] [CODE] private void saveToolStripMenuItem_Click(object sender, EventArgs e) { button1.Hide(); button2.Hide(); comboBox1.Hide(); textBox1.Show(); foreach (object ab in barcodes) { string sto = ab.ToString(); string str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Documents and …

Member Avatar for pauldani
1
1K
Member Avatar for shivnath

Hello Everyone I have just started studying about applications and usage of DBus and as I able to understand that it is possible to pass messages between two different applications(programs) written in different languages usnig DBus. But I am not able to implement it. So just for demo, I want …

Member Avatar for musthafa.aj
1
281
Member Avatar for abirami84

I wanT to connect database with jsp directly otherwise have connection with servlet anD how to make connection on sevlet WITH jsp

Member Avatar for jwenting
1
81
Member Avatar for gandil

[COLOR=#000000]Can you help me to normalize Online Hotel Reservation System. In the database I will store information about the hotels (name, city, country, number of stars, room prices, total number of double rooms, total number of single rooms, number of available rooms, etc); customers (name, email, telephone, address, username, password, …

Member Avatar for jram_0024
1
11K
Member Avatar for gnarlyskim

I have to be able to read text from a file then manipulate it to find the average value of an integral over a given bounds [a,b] from an input file, then export it to another file. I do not know how to store the information to process it. Say …

Member Avatar for gnarlyskim
1
185
Member Avatar for whoamineo89

Hello oh helping minds I have a dilema...I've got to create a C language address book and not C++ or turbo C...I've already done a majority so far but I need help with a certain problem if there are any other problems please let me know. I keep getting an …

Member Avatar for Ancient Dragon
1
5K
Member Avatar for rockstar8577

I was wondering if its possible to specify the name of a file being created with a variable yet still specify the extension for the file. Example: [code] string name; cin >> name; ofstream myfile; myfile.open(name".sta", ios::out); [/code] i was wondering if you could do something of the sort i …

Member Avatar for rockstar8577
1
73
Member Avatar for Tech E

I am trying to build a class with definitions that will output the following... Income tax for year 2009: Name: John Doe Address: 1234 Alphabet Lane, City, State Zip SSN: 111-11-1111 DOB: 11-11-1111 I have built my class and source code to define the function members. But I am running …

Member Avatar for Fbody
1
123
Member Avatar for andyjko

As part of my research at the University of Washington, I've been working on a new web-based JavaScript/HTML/CSS editor that helps you find bugs as you type: [URL="http://faculty.washington.edu/ajko/projects/cleanroom/"]http://faculty.washington.edu/ajko/projects/cleanroom/[/URL] If you try it, and succeed at finishing the task described on the page above, I'll send you [B]a $10 Amazon gift …

Member Avatar for pritaeas
1
185
Member Avatar for vegaseat

You can use Python modules math, wave, and struct to create and save a synthetic sine wave of given frequency and duration (size) ...

1
3K

The End.