132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Akulki

Please give an algorithm to know the memory size in bits.........

Software Development algorithm c
Member Avatar for Akulki
0
81
Member Avatar for elcliff

Write a java program that calculates the grade point average of three course and their credit hours through, if the grade points and credit hours are as follows: COURSE/SUBJECT GRADE GRADEPOINT CREDIT HOURS Maths A 4.0 3 English composition B 3.0 2 French B+ 3.3 3 Now, if the grade …

Software Development java
Member Avatar for peter_budo
0
73
Member Avatar for arjen

hello guys I need help Please.. What I want is that when i select the data from the listview1 it will also delete the corresponding data in the database im using mysql database...these is my code [CODE]Dim Button = MessageBox.Show _ ("Are you sure you want to delete this Data?", …

Software Development listview vb.net
Member Avatar for roottybrian
0
674
Member Avatar for anurag143

Hello Friends, my name is Anurag.. am doing MSC(Comp. Science) I need some excellent Project Ideas to develop in VC++ (or C++) Something which is of more developing technology from INDUSTRIAL POINT OF VIEW.. with Problem Description I would be thankful to u people Please help Byee

Software Development c++
Member Avatar for kuriakosebabyk
0
166
Member Avatar for ilaref

good day everyone! i have a problem... i have 27 text files in a folder named dito... and every minute there will be new text file in a folder... i need to create a program that saves a record locator(9-digit-code)... the rule is that there will be no human interactions.. …

Software Development asp.net
Member Avatar for hyperion
0
212
Member Avatar for jessikwa

Trying to write a program for my C++ class. Basically; call a function getJudgeData five times within the main function to get five different scores. Send the scores from getJudgeData function to calcScore function. From there use two more functions, findHighest and findLowest to find the highest and lowest score, …

Software Development c++ visual-studio
Member Avatar for jessikwa
0
4K
Member Avatar for mast3rshan3

Hello everyone, I'm just getting started with C and I need help on this problem. It's a pretty long read so bare with me. [QUOTE]Objectives 1. To reinforce your knowledge of ‘for’ loops and ‘while’ loops 2. To utilize strings (character arrays) in C 3. To implement logic in your …

Software Development c
Member Avatar for NuclearSheep
0
690
Member Avatar for hollybells

here is code for my assignment. I am getting: Exception in thread "main" java.lang.NullPointerException at SortedStringList.insert(SortedStringList.java:33) at TestSortedStringList.main(TestSortedStringList.java:6) Line 33 is the "while" loop in my insert. Its supposed to be a double linked list of nodes w/string in each node, alphabetically arranged. here is the code: public class SortedStringList …

Software Development java linked-list
0
76
Member Avatar for Kontained

Hi all, I'm currently working on a RC4 project for my computer security class. I have looked at the [URL="http://en.wikipedia.org/wiki/RC4"]wikipedia page[/URL] for RC4, and I'm trying to adapt that algorithm to my problem. I can get the correct encrypted text when I just cout the values. However, when I try …

Software Development algorithm c++ encryption ios
Member Avatar for Kontained
0
3K
Member Avatar for bang2711

hi guy, i need this ugently.. hope someone can help me out.. i need to get data from database, but want it to take randomly and also dont want to get data duplicate. Ex; i get data A from DB, then there will be a next button. i wan to …

Software Development visual-basic
Member Avatar for Ganesh_m
0
959
Member Avatar for Danny_501

Hi all, Is there a way to make thread pools in POSIX pthreads? (using c) I could only find implementations for java and c++, but I need it to be in c. Thanks.

Software Development c
Member Avatar for gerard4143
0
163
Member Avatar for coding101

why cant i use fstream on mac i have a stuff.txt file one the desktop psuedo #include<fstream> ifstream in; ofstream out; in.open("stuff.txt"); if(in.fail()){ cout<<"failed"; } failing WHY???

Software Development c++
Member Avatar for coding101
0
64
Member Avatar for plasticfood

[CODE] String names1 = ""; System.out.println("enter names: "); names1 = kb.next(); while (names1 != "stop") { System.out.println("enter names: "); names1 = kb.next(); namesList.add(names1); } [/CODE] everytime i type "stop," the program keeps running...

Software Development java
Member Avatar for plasticfood
0
64
Member Avatar for bigwhiteegg

the following are my program since it's not large, it might be alright to post the entire code? anyway... it is the deallocate() causing the crash at the end of the program for some reason, it did not panic in the grow() function am I supposed to do something after …

Software Development c++
Member Avatar for Ancient Dragon
0
138
Member Avatar for Shadow-Illusion

I am trying to insert data from a text file into an SQL table. I'm getting this error: " csv_data = csv.reader(file('TxtFile1.txt', 'r')) TypeError: 'list' object is not callable " [code] import MySQLdb, csv, sys conn = MySQLdb.connect (host = "localhost",user = "a", passwd = "b",db = "c") c = …

Software Development python
Member Avatar for djmagba
0
3K
Member Avatar for jpetrey

i am reading in data from an input file and sorting it as it comes in. (ive done this before just without sorting so i know everything else works fine.) [code=c] StringTable::StringTable(ifstream & infile) { // TODO: complete string s; vector<string> row; vector< vector<string> >::iterator srow = table.begin(); vector< vector<string> …

Software Development c++
Member Avatar for Ancient Dragon
0
957
Member Avatar for samuel17

Hi all, Im having issues with this program. I've looked online and seen others that have basically the same program but have issues also. My issue is a compiling error, thats one problem thats obvious to me. This program is suppose to get the user to enter grades for five …

Software Development java
Member Avatar for Akill10
0
183
Member Avatar for cortez716

If you are viewing my post, thank you for taking the time to hep me out. It is greatly appreciated. Here is what I'm trying to do: Write a function called Square2 that will take as arguments an integer and a double. With the use of references i want my …

Software Development c c# c++
Member Avatar for cortez716
0
167
Member Avatar for Urv73

Hi, I'm trying to make a program that lets a user punch in the results from a race. What I got is a loop for entering the contestants startnumber, the time they started the race (hh, mm, ss) and when they finished the race (hh, mm, ss). I'm stuck with …

Software Development c++
Member Avatar for Urv73
0
192
Member Avatar for drake10k

Hello, I've enountered a problem whith saving to an XML file. My app receives user input in several text boxes and when the user hits the OK button it checks if the text boxes are empty. If they are not empty it saves the input to an XML file and …

Software Development xml
Member Avatar for alc6379
0
187
Member Avatar for randyson

i want to do a program to implement time table preparation program using c language.i need some help to how i should write codings,necessary fields.i dont have any idea to start.so i need some examples that i have to compare with that and to try myself

Software Development c
Member Avatar for halil.burak
0
545
Member Avatar for tKc

I need help in reading a text file and by using a switch statement the user can either press 1 to find the average of all the integers in the text file, and by pressing 2 they find only the averages of the real numbers (only positive integers) in said …

Software Development c c# c++ file-system
Member Avatar for Ancient Dragon
0
476
Member Avatar for jonniebl

I have created a porcess that manipulates large volumes of text. I have created a form that has a button that manually starts the process. I have tried to give some feedback that the process is actually progressing through the data by changing the value of text fields on the …

Software Development vb.net visual-basic visual-studio
Member Avatar for jonniebl
0
140
Member Avatar for sciprog1

Hello Members, Does BlueJ support Networking? Can you have the main() of Client.java and Server.java running at same time? I always get this "Your program is running.You cannot start another execution......". Any help would be greatly appreciated. Thank you!! sciprog1

Software Development client-server java
Member Avatar for sciprog1
0
122
Member Avatar for sirlink99

[code] c = new Console (); int lvl = 1; double exp = 0; int x = 1; double monsterhp; int monslvl = 1; int a = 1; while (a == 1) { int lvlup = 10 + (lvl * 40); if (exp >= lvlup) { lvl = lvl + …

Software Development gaming java
Member Avatar for sirlink99
0
328
Member Avatar for killbill07

I can easily hide my form with the event KeyDown, but only by pressing ONE key, and I wanna hide it by pressing CTRL+SHIFT+O, for example. And the biggest problem is when I wanna restore it, because I have to go to the Task Manager, make the aplication has the …

Software Development visual-basic
Member Avatar for killbill07
0
843
Member Avatar for G_S

Hello, Now I'm making a program for creating language glossaries, but the problem is that windows uses ANSI for encoding text files, and the program that will read these files (which is not mine) only displays words in utf-8 encoding. Since my program is multiplatform, it can also work under …

Software Development file-system python tkinter
Member Avatar for woooee
0
7K
Member Avatar for evertron

I have the code below and I get everything except the bonus in the output. I tried it a few different ways and the bonus never comes out right after the staff and sales. #get user input for sales bonuses and make calculations #print headers print" Sales Tracking Program" print …

Software Development python
Member Avatar for woooee
0
112
Member Avatar for vbx_wx

How can i calculate an expresion of type string: [code] strng eval = "129 + 23 - 54 * 2 / 4"; [/code] Any ideas?

Software Development c++
Member Avatar for bunnyboy
0
94
Member Avatar for zarifin99ska

is this possible? [CODE]Dim wa As Integer = 1 con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Bengkel\Project\db.mdb") con.Open() myCommand = New OleDbCommand("insert into payment (slip) VALUES (wa) ", con) 'insert the value of "wa" myCommand.ExecuteNonQuery() wa = wa + 1[/CODE] if i'm wrong, can someone help me?

Software Development open-source vb.net
Member Avatar for lolafuertes
0
112
Member Avatar for KrazyKitsune

What is parsing and how do I use it? My guess is that parsing is something that locates a keyword in a statement. My guess, okay? I don't understand wiki. If it isn't, is there something that can locate something in a statement and do something if it finds it? …

Software Development python
Member Avatar for Gribouillis
0
150
Member Avatar for nipacayaljon

i want to disable the NO and CANCEL option , can you guys help me because im only a begineer of JOPTION here is ma code: btw this is my assignment in my 1st year college "compro" my teacher tell us to create a program , and my system is …

Software Development java java-swing
Member Avatar for cale.macdonald
0
2K
Member Avatar for Blitze

Hello, I used to code in python and I recall being able to take a class such as the list class and add my own functions to it. I am not quite sure what this is called in c++ or how to do it, so I was just wondering if …

Software Development c++
Member Avatar for Blitze
0
97
Member Avatar for RobBobSmith

Hello all, I would be grateful for some help with a function template problem. I cannot figure out how to pass a matrix as an argument in a template function. I keep getting the error "does not match any template declaration". Can anyone suggest what my problem is? Have I …

Software Development c c# c++ ui-ux
Member Avatar for Fbody
0
186
Member Avatar for LevyDee

[code] MonthNames[0] = "Januaray"; MonthNames[1] = "Febuary"; MonthNames[2] = "March"; MonthNames[3] = "April"; MonthNames[4] = "May"; MonthNames[5] = "June"; MonthNames[6] = "July"; MonthNames[7] = "August"; MonthNames[8] = "September"; MonthNames[9] = "October"; MonthNames[10] = "November"; MonthNames[11] = "December"; for(int n = 0; n < 12; n++) { cout << MonthNames[n] << …

Software Development c++
Member Avatar for Fbody
0
115
Member Avatar for Blitze

Hello, I am in Object Oriented Design for C++ at the moment... The test we are having has a question on it and the professor wants us to find and know the answer before we come in for the test. The question is this: The following code out puts what …

Software Development c c# c++ java
Member Avatar for Blitze
0
134
Member Avatar for simransuri

Hey!I have to make a Quiz game using arrays in java...Now,i have to create a random function such that the questions appear randomly n without any repetition?plz help... Here's the code: [code]import java.util.*; public class KBC { String questions[]; String options[][]; int answers[]; long money[]; int history[]; public KBC() { …

Software Development audio java
Member Avatar for masijade
0
173
Member Avatar for mikeyj9009

I need the output of the following code to be printed in a text file. So far it creates the text file, but it does not print anything in it. Any help would be appreciated. [CODE]def findSlope (x1, y1, x2, y2): rise = y2 - y1 run = x2 - …

Software Development python
Member Avatar for Gribouillis
0
327
Member Avatar for Noorul Ariff

Hi friends... I'm doing Inventory Project... I'm Having purchase and sales tables... In purchase table fields are Code, Category, Brand,S.p, Date etc., Men, Women, Kids, Accessories are the VALUES STORED IN Category Fields... In PURCHASE FORM, When i select MEN in Combobox, it has to AUTOMATICALLY allocate(SHOW) CODE(it is also …

Software Development vb.net
Member Avatar for Noorul Ariff
0
163
Member Avatar for KrazyKitsune

If we have more than one if statement, is it possible to combine them? Like this: [code=syntax]x = raw_input("> ") if x == a: print "1a" elif x == b: y = raw_input("> ") if y == a: print "1y" elif y == b: print "1b" elif y == c: …

Software Development python
Member Avatar for griswolf
0
109
Member Avatar for pstrohma

Hello all, Does VC++ Express 10.0 even support the ability to get text from a text box? I've seen related threads having conflicting solutions, none of which actually work. Ex: must have SDK version x.y. This functionality seems to be so basic and necessary that solutions would be all over …

Software Development c++ microsoft windows-xp
Member Avatar for pstrohma
0
264
Member Avatar for manny c++

:cool: Hi all I have fingered out how to check the users input for their first and last name This works fine. If the user enters a number for their name they resave an error message. But it only works for the first letter How do I increment the check …

Software Development c++
Member Avatar for Alexkid
0
425
Member Avatar for Dv9UnKnoWn

I am trying to create a game in VB6 where the user guess a number in a certain range depending on the level (Easy 1-5, Medium 1-15, Hard 1-30). I can't get the game to create a random number. [CODE]Private Sub cmdGo_Click() [COLOR="red"][B]Dim Randomize As New Random[/B][/COLOR] If optEasy.Value = …

Software Development visual-basic
Member Avatar for killbill07
0
193
Member Avatar for malvi

Hello.. I want to block/disable each and every message box, generated by system. ie. Edit box is numeric, and when it is empty, it will generate error box, "Enter a number". can anyone help me in this? Thanks.

Software Development c++
Member Avatar for MrSpigot
0
175
Member Avatar for Alexkid

Hi there, Can anyone tell me why variables can have printed values of -858993460. I've got a pointer pointing to a memory address which has nothing in it so when i come to cout this it prints -858993460, if i give it a value then its prints that value. I …

Software Development c++ motherboards-cpu-ram
Member Avatar for Alexkid
0
2K
Member Avatar for msg

Hi, I am using NASM and I am having a problem finding the correct instruction to capture string (more than one character) data from the keyboard. I can capture int data (read_int) or even one character with get_kb Any help would be appreciated. Thanks

Software Development assembly
Member Avatar for user543820
0
237
Member Avatar for compe_dsd

Hi! I'm making a code right now but I don't know how to continue.....my problem is that I have to make an online shopping list...first, data will be shown to the viewer or buyer...i've done that already. next the buyer should enter the itemID then the number of pieces of …

Software Development java java-swing
Member Avatar for kramerd
0
572
Member Avatar for hzp

hello everyone i am new to this community . i am having a problem right now with arrays. So basically this program let user to enter anything in lowercase and then convert it to uppercase(if user input uppercase it will stay the same). Because i am not allowed to use …

Software Development c++
Member Avatar for hzp
0
125
Member Avatar for sachintha81

I am a bit (well, actually a lot) confused with how exactly I should use the Dispose() method on SqlConnection object in C#. First let me tell you what I have learned so far (I've been reading a LOT on the subject for the past 24 hours, and I'm still …

Software Development c# open-source sql
Member Avatar for Momerath
0
2K
Member Avatar for judithSampathwa

hi there, i have a question in LINQ in C#, i have a webpage and in that i have a button called clicl and theGridview . i have a LINQ to SQL class with the Employee and the USErLogin which the EID in the Employee calss is a foreign key …

Software Development c# visual-studio
Member Avatar for judithSampathwa
0
249

The End.