199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Argo54325

When i runt he code and try to get the size of the 2 files something goes wrong with the msgIn file. I'm using the same method for both files and the bookIn will work but msgIn just returns 0 as if it never ran. this is the method that …

Member Avatar for Salem
0
139
Member Avatar for aries_rupali

hie im Rupali im doing my final yr project using IVR for car dial. I have no idea from where to start. Can someone please help me how to write code and how to write it in C.

Member Avatar for Luckychap
0
69
Member Avatar for scrypt3r

Im trying to get my program to list certain types of drives etc but i dont know all the drive type names like "DRIVE_REMOVABLE" or "DRIVE_CDROM". does anyone have a list of the entries?

Member Avatar for Yiuca
0
112
Member Avatar for omega1

hi all, new here and doing my best with a bit of FTP code but have got stuck so would appreciate some help, thanks in advance... I have the following bit of code [ICODE] '------------------------------------------ 'Command format : [PUTFILES] = <local directory> ; <remote directory> 'Example : [PUTFILES] = C:\TEMP\ …

Member Avatar for Comatose
0
99
Member Avatar for firoz.raj

Can anybody tell me why i am getting error in the bold line. Application uses a value of the wrong type for the current Operation .? [Code] Private Sub Command2_Click() If (CheckInput) Then End If Y = MsgBox("do you add this record", vbYesNo + vbQuestion, "message") If Y = vbYes …

Member Avatar for debasisdas
0
245
Member Avatar for jreeson

Hi, I am developing an Inventory Management System using VB 6.0, and MS Access Database. I am getting an error: "data type mismatch in criteria expression" which sounds like a variable type mismatch. But i have checked and double checked my datatypes and they seem to match up. Here is …

Member Avatar for debasisdas
0
129
Member Avatar for PhiberOptik

Hey guys, I wanna download a file to a certain directory on the computer. I have code that downloads to the same place where it's launched but I want it to download the files do another directory. (This isnt my code I found it on a tutorial) Here is the …

Member Avatar for PhiberOptik
0
118
Member Avatar for Argo54325

I'm trying to get a char back from the bookFile.txt but, when i run the program it returns nothing. I'm not sure if .get() if the right thing to be using. When i run this code i get the random number and the first letter of the msgFile.txt returned correctly. …

Member Avatar for nucleon
0
186
Member Avatar for fusi0n423

I have a project where I have to analyze 3 different hashing functions. I cannot get the cyclic shift hash to work with a bitwise OR. Everything looks fine to me am I doing something wrong? [code=cplusplus]int Hash::hash(string key) { unsigned int h = 0; for(int i =0; i < …

Member Avatar for nucleon
0
311
Member Avatar for javaman2

i need help with converting celsius to fahrenheit and vice versa in my program. for example, if someone would input 0C for the first temperature and 32F for the second temperature, i need to convert one of these temperatures so that my equals method can recognize that they are equal …

Member Avatar for javaAddict
0
145
Member Avatar for alphabetanm

I understand the structure of a do while; however, when I start plugging in my statements, I am not gettng the result I want. The logic is wrong. Knowing the general form of the do while is: do statements while (condition) and wanting to write a do while code to …

Member Avatar for alphabetanm
0
101
Member Avatar for GadiK

Hi Guys, I'm trying to write a simple game of drawing rectangles and circles in a window. I've created a different class for each shape: RectClass and CircClass. Each of these classes has it own DrawShape() function which suppose to draw the shapes in the window with given coordinates argument. …

Member Avatar for Ancient Dragon
0
203
Member Avatar for odzky

Create a function w/c accepts as input the double numbers x1,x2,x3 and returns to the program the value of the average (x1+x2+x3)/3 as a variable parameter. #include<stdio.h> #include<conio.h> main() { i really dont know what next...........

Member Avatar for Ancient Dragon
0
278
Member Avatar for ryan311

help how can i know if the user is not an admin i have combo box in my combo box have a user or admin additem if he choose admin then all i want is to validate if the username and password is for admin user this is my code …

Member Avatar for debasisdas
0
112
Member Avatar for irish59575

Hi, can someone please help me, I am new to Java and I am getting a NullPointerException error and cant figure out why Here is the code class TestBirthday { public static void main(String[]args) { int num; System.out.println("Enter number of people to test"); num = Console.readInt(); Birthday2 Experiment = new …

Member Avatar for irish59575
0
241
Member Avatar for breatheasier

Is there an easy way of doing this? for example my list is: [code=python] nlat=10 mylist = [] for x in range(0,nlat): for y in range(0,nlat): disk=sphere(pos=(x*s,y*s), radius = r, color=(0,1,9)) mylist.append(disk) [/code] or is it impossible to place objects, such as a sphere from vpython into a numpy array?, …

Member Avatar for breatheasier
0
687
Member Avatar for dmanw100

Hello, I am new to php and enjoy the fact that it is very similar to languages that I'm much stronger with (mainly C++ and Java). While working through the w3 school's tutorials I noticed a foreach() loop. What loop in C++/Java would this be similar to? It seems like …

Member Avatar for Stefano Mtangoo
0
190
Member Avatar for ryan311

hi can anyone help me i have a billing system, how can i save the data to another table? using sql? may 1 table name is transac and all i want is if what the record have been save to my transac then it will save to another table name …

Member Avatar for ithelp
0
81
Member Avatar for nparrish15

I've been working on a program and have hit a roadblock. I know conceptually what to do, but I'm having trouble implimenting it. Ok, so what it's suppose to do is take them randomly generated numbers that have been put in arrayints and factor them. This right now for an …

Member Avatar for arghasen
0
129
Member Avatar for azwraith69

i have a problem with curses my program is working properly, but when i include curses.h, it produces errors i can't understand.. [icode]classmates.erase(classmates.begin() + i);[/icode] and the error is: [COLOR="Red"]macro "erase" passed 1 arguments, but takes just 0[/COLOR] and [COLOR="Red"]statement cannot resolve address of overloaded function[/COLOR] if i remove curses.h, …

Member Avatar for azwraith69
0
197
Member Avatar for skitzo315

I need some help with Binary I/O. I know how to do it when I am specifying the filename in the code ie: [icode] fstream fio("persons.txt", ios::in | ios::out | ios::binary | ios::trunc); [/icode] What I need to know is how to open or create a file with a file …

Member Avatar for siddhant3s
0
314
Member Avatar for jeevsmyd

hey friends, here is a code that I made to find the prime numbers in an array.. What the program is supposed to do is check whether the number is PRIME or not.. The position of the element is specified and the program finds and check the element in that …

Member Avatar for jeevsmyd
0
123
Member Avatar for super zach

Hello all, I have a very rookie question to ask. I am using Pyraf, Python, Sextractor, & a sextractor wrapper to do some automatic photometry on celestial images. The following code I have written is used to extract info from a sextractor catalog such as image positions, image magnitudes, etc: …

Member Avatar for lllllIllIlllI
0
145
Member Avatar for Naik Dhiren

How can i Hide/shows columns in datagridview runtime ? I have a window application form with a comboBox and a grid. As according to selection in comboBox Items, I want to hide or show datagridview columns as according to combobox item selection

Member Avatar for Ramy Mahrous
0
164
Member Avatar for jsimula

Hi, I have problem to change table design in access. I have imported data and table is like: Product; Name1; Name2; Name3...etc And i should change it be like: Product; Name; qty ..and all data.. Any good ideas how i will change this ir right shape..?

Member Avatar for jsimula
0
84
Member Avatar for Datanizze

Hi! I have a slight problem with multithreading. There is many threads active in the application and they are all kept in an arraylist. so when I try to quit the program, it loops through the arraylist and exits all the threads.... but something else is making the program "unwilling" …

Member Avatar for Datanizze
0
165
Member Avatar for tlmiller9278

Hello, this is my first post here and I noticed that other people have been struggling with this assignment too. It is the mortgage calculator program for UOP PRG420. So I am sure you all are probably about sick of this by now, but I need help. The book is …

Member Avatar for JamesCherrill
0
146
Member Avatar for atman

Hello guys, I'm very green in c++ and just started to understand classes and objects. I'm reading on the web about this pointer, but having difficulties understanding how it works exactly, could aanybody please help me understand or reference a good article for total noobs in c++ to grasp the …

Member Avatar for siddhant3s
0
143
Member Avatar for chriscross86

hi, there...ive come up with these codes and they work.but i dont know how to modify the program so that it prints sequence of asterisks in a single line based on the input gained using : 1.while 2.do-while 3.for please help... #include <stdio.h> int main() { int x; printf("Enter an …

Member Avatar for Dewey1040
0
102
Member Avatar for thegreatkk

hi, i am new to .net. i m create a datagridview with check box. i wrote one function for doing some operation. i like to call that function when i click the datagridview's check box. if there is any event handler presents to call that function. please share ur idea... …

Member Avatar for thegreatkk
0
104
Member Avatar for Tamir09

Ok, Ive got a program that Im working on, where it is supposed to calculate some formulas that I have based on some user inputted data and display the data in the form of a table on the same screen, and then optionally show a graph of the data plotted …

Member Avatar for Tamir09
0
329
Member Avatar for Sohvkhan

Hello, I was assigned the task of coding this program in python for homework and I recently ran into a problem. Basically the assignment asks that a program prompt the user for a series of numbers and will then output the smallest number, the largest (their respective locations) and finally …

Member Avatar for woooee
0
155
Member Avatar for leegeorg07

i have this code: [ICODE]import webbrowser, random import os import os.path running = 1 DIR="C:/Documents and Settings/Owner/My Documents/georges poopy/main music/" music = filter(lambda x: x.lower().endswith("mp3"),os.listdir(DIR)) music = list(music) choice = int(raw_input("Press 1 to play a new song")) while running == 1: if choice == 1: song = random.choice(music) webbrowser.open(os.path.join(DIR,song)) choice …

Member Avatar for woooee
0
107
Member Avatar for vasunttfshimoga

Hello friends,i want a know who to rename the start in windows through the Application developed by VB 6.0.If u know means pls help......

Member Avatar for Tamir09
0
159
Member Avatar for oguru

Hi Guys! I would like to create a shell script that checks how many files there are in a directory. If there are more than 20 then delete the ones that are older than 48 hours old. so I have portions for a script, but I can't seem to make …

Member Avatar for oguru
0
64
Member Avatar for Himerz

Hi again people. I am stuck on this array that converts lower case letters to upper case letters. I need to find out how to make it not display strange characters after the letters are entered. I know it has something to do with the 'null' terminator, but I am …

Member Avatar for zalezog
0
140
Member Avatar for arunmozhi

Page is Served successfully but showing error in the status bar.. of the browser... Purpose of the Script is to load an Gif image before page Loads.. Here is the Script.. [code=html]<script type="text/javascript" language="javascript"> /// To load the gif before page servers.. while delaying.. if(document.getElementById) { // IE 5 and …

Member Avatar for mschroeder
0
102
Member Avatar for lcc_551

Hi, I'm in first year computer science and could use some help on a program where I have to calculate the standard deviation from data on a txt file. Using some online help I've gotten somewhere but to be honest don't really know what's going on myself. The program is …

Member Avatar for jrcagle
0
189
Member Avatar for serkan sendur

Compared to javascript's power, i think xslt is so weak. i prefer parsing xml document to whatever html representation using javascript and i cant see any use of using xslt for that matter. What do you think?

Member Avatar for fpmurphy
0
156
Member Avatar for minime2100

Hello, I'm currently taking a programming class in college for my first time and I am having a hard time with my assignment for the week. I have to write a program that I create a class called Student. It will then have two members within the private sector called …

Member Avatar for minime2100
0
94
Member Avatar for rafkay

Hi .. anyone can help me out to solve this problem... coding to read the file... 1. this coding is well working... can list down all the data in dataM.txt [CODE]ifstream OpenFile("D:\\dataM.txt"); int a; if(!OpenFile) { cout << "While opening a file an error is encountered" << endl; } else …

Member Avatar for vmanes
0
220
Member Avatar for rayda

[ICODE]import java.util.Scanner; public class lab3 { public static void main(String[]args) { int floor; int rooms; int occupied; int totalRooms; int totalOccupied; int totalVacant; double occupancyRate; Scanner keyboard=new Scanner(System.in); System.out.println("Please enter the number of floors in the hotel: "); floor=keyboard.nextInt(); while(floor<1) { System.out.println("The number of floors cannot less than 1, please …

Member Avatar for rayda
0
119
Member Avatar for devilz

Can any one please help me?? Using VB 6.0 and Access DB. [code] ssql2 = "INSERT INTO JanuaryDay (JanRm_id) SELECT rmd_id FROM RmIdIndex WHERE rm_id= " & CLng(txtrostermid.Text) rsName.Open ssql2, conName, adOpenDynamic, adLockOptimistic rsmnth.Open "select * from JanuaryDay", conName, adOpenDynamic, adLockOptimistic rsmnth.MoveFirst Do While Not rsmnth.EOF ‘here is the problem. …

Member Avatar for selvaganapathy
0
133
Member Avatar for justinmyoung

Hi I must now seek help after too many hours of failure. I'm using a basic form with Ajax (prettyPopin), but the form is not connecting to the database. I'm obviously overlooking something. Here is the basic form: retailer.html [CODE] <h3>Retailer Contact</h3> <form name="ajaxForm" action="ajax/form_submit.php" method="post" class="genericForm"> <label><span>* Full name</span> …

Member Avatar for theighost
0
107
Member Avatar for zerugaze

For instance, I have the following string: table:column I need to get "table" as the result of the php regular expression. So, I need everything before the ":" symbol After that regular expression is performed, I would also like to get everything after the ":" symbol, or "column" as well.

Member Avatar for jedi_ralf
0
146
Member Avatar for rafkay

hi all, when i run this code (quick sort), i ll get ascending order as output... now i want descending order instead... anybody know how to altert this code..uhuhuh [CODE]void QuickSorting::sort(int a[], int lo, int up) { { int i, j, pivot; while ( up>lo ) { i = lo; …

Member Avatar for rafkay
0
2K
Member Avatar for Brandon515

[CODE]int write() { system("cls"); char text[2000]; char thing[100]; cout << "which file would you like to write to?"; cin.getline (thing, 100); cout << "what would you like to write? (up to two thousand characters)"; cin.getline (text, 20000); ofstream file; file.open(thing); file<<text; file.close(); system("pause"); return haha(); }[/CODE] ok so I'm writing …

Member Avatar for death_oclock
0
105
Member Avatar for PhiberOptik

Hey guys, I want to make a program copy output from a Command Prompt window, any idea how I can accomplish this? In my program I want to have a console type menu so the user can watch what is going on. Thanks PO

Member Avatar for PhiberOptik
0
66
Member Avatar for alaamido

[B]Hi all I have a simple problem in Drawing with GDI I made a button control and wote this code lines in its event handler[ICODE] Graphics d = Form1.ActiveForm.CreateGraphics(); if (openFileDialog1.ShowDialog() == DialogResult.OK) { try { d.DrawImage(Bitmap.FromFile(openFileDialog1.FileName), new Point(0, 0)); } catch { MessageBox.Show("Sorry there is an error"); } } …

Member Avatar for alaamido
0
90
Member Avatar for artmansoft

We have a Visual Basic script that communicates with an application through com. We like to translate it to Python and use win32com.client instead. We have everything working, except for the use of "Nothing" in the VB script for a couple of its function calls. What is the replacement of …

Member Avatar for jrcagle
0
1K

The End.