199,114 Archived Topics
Remove Filter ![]() | |
Hi! Im a newbie here.... I got a problem with my program...My linked list is ok but everytime I export the data to the file, things don't work in a proper way..I will show my code...pls help me...thanks... [code] labname[20]="lab445.txt"; /****************FWRITE FUNCTION**********************/ void save_data(information *lab,char labname[]) { FILE *fp; int … | |
Hello all, I have a text file called: concentrations.dat The file contains a lot of different data. Here's the data that I'm interested in: # ET: list of elements <ET> 'Cu' 'C' 'Sr' 'He' 'Mg' 'O' 'Cr' What I want to do is read the elements into a vector called … | |
Hi there I am new here and wanted to ask question I have this simple code to put elements into an array [CODE]<html> <body> <script type="text/javascript"> var numb =2; var tempstr="-26.18101|-26.161011|"; var latstr=new Array(tempstr.split("|")); document.write((latstr[0]) + "<br />"); document.write((latstr[1]) + "<br />"); document.write((latstr[2]) + "<br />"); </script> </body> </html> [/CODE] … | |
Hello. How can i make count-down timer on MFC program? Thank you | |
Is there a way to list all open file handles for a certain process using the pid? | |
Hi Guys! I Need some Help here please: I'm Trying to Make some Improvements on an Existing Site, so I Copied all the Files to a New Directory in the same Path And Started Working On the Files Over there. When I Tried to Access the login.aspx Page, I Get … | |
Write an application that reads a line of text from the keyboard and prints a table indicating the number of occurrences of each letter of the alphabet in the text. For example, the phrase To be, or not to be: that is the question: contains one "a," two "b's," no … | |
I have a dropwdown where I select a name from the dropdown list. This populates a grid view with that record. Once I select that record it will populate a form with textboxes of info for that record. There is a delete button in that form and when I click … | |
I use an xslt to get some ID attribute..when new xml file is built.. Here is a input xml file.. <page num="App. A-1"/> <title>Appendix A</title> <subtitle>The Thompson Memorandum</subtitle> <para align="left"><content-style font-style="bold">U.S. Department of Justice</content-style></para> <para>Office of the Deputy Attorney General</para> <para>The Deputy Attorney General</para> <para>January 20, 2003</para> <table frame="none" width="100%"> … | |
Here is my code: [code] import java.util.*; public class SavingAccount extends BankAccount { // Begin public class SavingAccount extends BankAccount private double minAmount; public boolean withdraw(double amount) { // Begin public boolean withdraw(double amount) if (getbalance() >= amount + minAmount) { // Begin if statement super.withdraw(amount); return true; } // … | |
hi.... can anybody give me link for php compiler exe file???? and mysql...whateva needed to build a web application.... i'll be thankfull.... | |
There are many decent sites for C++. However, some of Dev, including me, works most of the time offline. So I need to have one for reference. If anyone knows a decent one then please post a link Thanks | |
Hello. Can anyone please explain why the following code is not producing any runtime error? [CODE]int a[] = {1, 0}; printf("%d", a[-1]); [/CODE] PS:im using VC++ 2008. Thanks. | |
hey i had started coding in java.I want to display the pixels format of image with the following code but i get errors...Can anyone suggest my code?? [code]public void Pixelvalue(Image img){ int[] pixelss = new int[w * h]; PixelGrabber pg = new PixelGrabber(img, 0, 0, w, h, pixelss, 0, w); … | |
I think I have a hard time understanding the return() statement. I have to make a program where a user gives the lower limit and upper limit as input. After that, the program should give all prime numbers that are between those 2 numbers. A testcase would be: input: 10 … | |
Hi , can any one explain me this code public class Howcome { public static void main(String[] args) { System.out.println(“Bank of America”); [B][url]https://www.bankofamerica.com[/url][/B] System.out.println(“Online Banking”); } even though https:// BofA lyin as orphan string in between this codes compiles and executes fine..??? | |
My friend said me a document that contains a large no. of spaces for eg- Where is the CeBit computer show held annually Hannover, Germany What is Error 403 ? Site Access Forbidden/Password Protected What is Error 404 ? Page/Site not found -in HTTP What is HotJava First web browser … | |
Hey Guys, I am pretty new to C#. Below is some code that i am using to send data serially to an Arduino controller. It just has some push buttons which move the wheels/motors etc of an RC car i have. I have put some text boxes onto the form … | |
[CODE]import java.util.*; public class EmployeeNames{ private String EmpYee []; private int count; int x; public EmployeeNames(int size){ String EmpYee []=new String [size]; count=0; } public EmployeeNames(){ this(10); } public boolean isFull(){ return count= EmpYee.length; } public boolean isEmpty(){ return count=0; } public void add(int x){ if(! isFull()) EmpYee[count++]=x; else System.out.println("\n … | |
Hi Everyone, Do you know how i can get the values using Regular Expression between the opening and closing tags of xml files? I need to process xml files using python and i just need to get the values between tags. For example: [CODE]<name value>my name is </name value>[/CODE] i … | |
I am new to Microprocessor 8086. i should submit this assignment by monday evening. Can anybody help me with this question? Q1 Write an 8086 assembly language program that will compute: 2.0 * log10 X for x = 0.1, 1.0, 10.0, 100.5, 1000.0, and six other values using a loop. … | |
I made a quick program as my first venture into c++ but it seems to be buggy. As far as i can see my code seems logical, but the endl; above firaddress seems to be interfeering. Can anyone help please? [CODE]#include <iostream> #include <string> using namespace std; int main() { … | |
hi all... whats the difference between os.popen and subprocess.popen?? what does shell=True in subprocess.call really mean? if os.popen is used for snmpwalk, will there be any problem such as exceeding pipe capacity? what is the capacity of the file objcet connected to pipe using os.popen?/ how much data can it … | |
I have 10 buttons and a textbox on my widow form. 11th button to fire the operation. Task is that i need to input a no. in the textbox ranging from 1-10, and press the fire button. This should change the forecolor of the respective button in the form. Suppose … | |
Hello, I have made a program based rs 232 port with MFC. I want to get system call which gives me state, wether power is turn on or off. is there any system call which gives information of powerstatus? Thanks to all. | |
Hi all, I am trying to use Ajax and Jquery on master page. In my existing project i have used the Ajaxpro2.dll it's working fine. but when i am trying to use jquery then its not working. Then in jquery script instead of `$` i have used 'jquery' keyword then … | |
| |
Can anyone help me in join the 3 combo boxes with filters The main idea is there are 3 combo boxes when we select an item in the first combo box the related items should apper on the remaining 3 combo boxes and when we select an item on the … | |
Hey guys/gals for some reason in my main function my first while loop will not take in more than two values. any reasons why that wont happen? and just to be on the safe side, did I implement my remove function properly? [CODE]#ifndef SORTEDLIST_H #define SORTEDLIST_H #include<iostream> using namespace std; … | |
Hey! I want to create a program that should be able to run Android OS like VMWare does, is this possible in C#? I do not have very much knowledge in C#, but is this possible? - Have you got any examples? - Could you point me to a direction … | |
Hi everyone Im just a new student in c++ and im trying to read data from a file this file looks like 36 69 115 226 278 343 345 358 368 370 401 450 489 494 573 577 581 583 610 682 692 705 722 832 862 886 908 923 … | |
I was following this tut. on how to install Apache, PHP, Mysql, and PHPmyadmin. I need a bit of help! I get a [B]"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mysql_test.php on line 15"[/B] everytime I test the mysql thing. What ive … | |
Hi guys, Please help me when i install my application on clients it only connect with one user like Naveed/Password on domain but when i login on domain by using other user it gives me connection error what should i modify in my connecting string. [CODE]"PMS.My.MySettings.ConnectionString" connectionString="Provider=SQLOLEDB;Data Source=ITS;Integrated Security=SSPI;Initial Catalog=Payment"[/CODE] … | |
hi all can u pls help me regarding iterating through an integer variable within a subprocess call here is what i exactly want to do for n in range(1,16): subprocess.call(['snmpset', '-v2c', '-c arct1c', '192.168.5.157', '.1.3.6.1.4.1.18489.1.2.1.5.1.2.0', 'i ','n']) i.e., i want to iterate through snmpwalk..but its not working:( it shows 'bad … | |
So what I am trying to do is to have a header file which declares lists in it. Everytime I complie it, it does not know what a list is. Here is my header file called MergeSort.h [code] #include<list> class MergeSort{ public: MergeSort(); bool sortedIsEmpty(); int sortedGetLenght(); bool sortedInsert(int); bool … | |
Ok, i have this form which contains a Datagrid control, i have fix the 1st problem i encountered which is how to connect it to my Dbase to display the content of one of my tables. Now my problem is, i cant delete records in my Dbase thru selecting it … | |
[CODE]for i in range(len(sumprop3)): for j in range(len(x2)): if j==i: print x2[j], atomnumber[i:i+8] [/CODE] For atomnumber[i:i+8] it is printing the range ie [1,2,3,4,5,6,7,8]. I want it to print just [1,8]. How would I do this? | |
Hi i am using C# to connect to Access database. The problem i am facing is not with database though. I have used a statement like [CODE]string.Format("UPDATE TABLENAME SET FIELDNAME = '{0}' ", txtMembers.Text);[/CODE] the problem i am facing is if the user enters 'hello', the whole text along with … | |
I haven't noticed this until I tried it today and boom! Compiler complained: [COLOR="Red"] error: constructors cannot be declared virtual[/COLOR] Why then Constructor is not okay while destructor is, in such as class as this? Thanks [CODE=C++]class MyAbstractClass{ public: virtual MyAbstractClass(std::string username, std::string password)=0; virtual ~MyAbstractClass(std::string username, std::string password)=0; virtual … | |
I'm on a shared computer and i'm using sql server 2005. I'm in a limited user account, everytime I click a database it says 'database not accessible', also there's a error 916 when I tried attaching a database. How to fix this? | |
Hi! i am trying to compile/link a simple application that uses a library called OpenDBX. I have already compiled and installed that library. Now, i am trying to do a simple client of it. The client (Prueba.c) is just like this: [CODE] #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <odbx.h> … | |
I want to begin working on a project and I'm not sure which programming language is best suited for the job. This application will be a GUI based project, so something that can easily design forms and such would be ideal. This project would be something similar to an office … | |
Can someone tell me what wrong with this code i am supposed to create an array of struct of cars and then add 1 to the car sold then find the inventory value comprising of all car values this is my infile lexus IS 35000 10 bmw 740 90000 5 … | |
Hi everyone! How do I make a drop-down menu in vb 2008. This menu would appear when the user right-click anywhere in the form. The menu that I am referring to is just like in windows when you want to refresh your computer, open a file, copy or cut some … | |
I m new in c#.net, i m working on project which generate menu dynamically, i have done this point, but not retrieve menu text at menu click, i just want to get text of menu. my code is follows: namespace myProg { public partial class frmMenu : Form { DataTable … | |
hi friends, i am doing a project which is based on smtp mail server.. i need a class that ho we are accessing an message header or custom header for an incoming mails... | |
the following are my utility.h which i got from my professor there is error 2332 on line 5 & 6 after doing a bit of searching i do understand what does the error means but i just not quite sure how to fix it! can someone explain it to me?? … | |
Can anyone give me an idea of peralel program using mp.i and shared memory | |
Im honestly going to die in this class! We have a project that we need to do on adding binary numbers and I cannot manage to get past the first step...checking the users strings for 1's and 0's. If it contains anything else...the code is supposed to reject the users … |
The End.