199,114 Archived Topics
Remove Filter ![]() | |
Hey, i was thinking these may help me if I made these little programs etc, but i've came to a situation, I've go no error but have to use [CODE]cin.get();[/CODE] twice, here's the whole program.. [code=c++]#include <iostream> using namespace std; int main() { system("title Simple use of if else if … | |
I want to Define class name MutiItemSale that represents a sale of multiple items of type Sale. The class MutiItemSale that have instance variable whose type is Sale[], which will be used as a partially filled array. There will also anther instance variable of type int that keep track of … | |
Welcome I have small project but I can't understand it. I hope from the members help me in this. thank you -------------------------------------------------------- Q: Problem: You’re writing code for an embedded processor for automobile safety. In the final system the car speed will be detected automatically, but in your sample program … | |
I have written a code for maximum power point tracking. The purpose was to create DLL file and use it in a circuit base simulation program. I used Microsoft visual c++ 2008 express and created that DLL file but I only get first value from the created array in C. … | |
These are the only answers I could not find can anyone help me out please public class TestA { public static void main( String args[] ) { int x = 2, y = 20, counter = 0; for ( int j = y % x; j < 100; j += … | |
[QUOTE=Kumar Arun;603385]I am exploring the RS232 communication possibilities. I am faced with problems when i try to send file across the rs232 port. Please help...[/QUOTE] I am really sorry if i was not expressive enough. I will explain the situation. I have implemented the RS232 communication, At System A, i … | |
A while ago i had requested help for a Marital and Federal tax program. Unfortunately I'm making this program for a particularly picky person. So I ended up having to remake it somewhat. If someone could take a look and help me with this that'd be cool. Here's what I … | |
most oftenly u have said or heard the word JAVA BUT I WANT U TO EXPLAIN WHAT ACTUALLY JAVA IS I AM EAGER TO KNOW PLEASE NO SMART ANSWERS ANSWERS FROM PRO | |
Hi, I have created a website that has a page where you can drag layers around to different areas on the page. Is there any way that I can find the new coordinates of a layer after I drag it? What I ultimately need to do is store the coordinates … | |
ok i got past that part i posted about before, now im having some more trouble. i can add 2 patients easily to the file. then i try to display them. it displays the first one just fine, but the second it tries to display the first value in the … | |
Can C++ make a function that returns two values ? | |
when i print out a big answers 13100000000000000 i wanted to say 13.1e12 this should happen to all different answers that come out | |
hi i am very new to home hosting i have wampserver 2.0 on my computer but i dont no how to put the domain name in to the wampserver can any one give me some help or info please thanks william | |
I wonder how it is possible to create a "Folder". I know how to create files like this. How could this be possible with ofstream. I am not sure if I find any members to ofstream that could be associated with "Folders" ? [code] ofstream OutFile1; OutFile1.open("C:\\File1.txt"); OutFile1; [/code] | |
i ended up doing it woithout that function. nov ive got a bigger issue,im trying to make a database of patients and i am working on writing 2 of 8 of the functions in the menu. displaypatients is supposed to display all the info for the patients 1 by 1, … | |
Hai guys, I have quite a large program here that I don't seem to understand. The program, Bow Vice Jet (an anagram for object view) is meant to display WaveFront .obj files. However, it quits when it loads a specific file while on my computer, while on another it does … | |
With these codes [CODE]public boolean rogue() { if(rogue = true) { playerEquipment[playerHat]=5554; // set armor playerEquipment[playerCape]=6570; playerEquipment[playerAmulet]=6585; playerEquipment[playerChest]=1; playerEquipment[playerShield]=1; playerEquipment[playerLegs]=5555; playerEquipment[playerHands]=5556; playerEquipment[playerFeet]=5557; playerEquipment[playerRing]=1; playerEquipment[playerArrows]=1; playerEquipment[playerWeapon]=1; } } public booletan hunter() { if(hunter = true) { playerEquipment[playerHat]=1038; // set armor playerEquipment[playerCape]=6570; playerEquipment[playerAmulet]=6585; playerEquipment[playerChest]=-1; playerEquipment[playerShield]=-1; playerEquipment[playerLegs]=-1; playerEquipment[playerHands]=7462; playerEquipment[playerFeet]=-1; playerEquipment[playerRing]=6735; playerEquipment[playerArrows]=-1; playerEquipment[playerWeapon]=4151; } … | |
Hi, My assignment is to read in data from a file(first name, last name, and grade) and then output it. i have my code and i beleive the problem lies within the function readData, but i cant figure out what it is. I run the program and i get an … | |
I am quite the beginner at python (and programming altogether), but I'm attempting to learn (slowly but surely). Anyway, I am attempting to make a standalone python program that will interact with firefox (opening links, etc.). I've figured out how to open FF and open links. However, for the life … | |
How can i create a function which sort a list in this way for example if list 4,4,2 4,4,2 3,3,1,3 2,2,0,2,4 1,1,0,1,3,4 0,0,0,0,2,3,4 0,0,0,0,0,1,2,3,4 If the list is impossible to sort then the program have to try it 15 times not more. The function which I wrote does it only … | |
Does anyone know how to change the value of FS.Length? I keep getting that it's read only. I need to read a file, let's say it's 100 bytes in size. After some data manipulation, the file becomes 40 bytes. When I write the file back , it writes the 40 … | |
I am using saveFileDialog1 and are trying to recognice what path that was selected when "Save" the file. I have begun some code below but are not sure what and if I will write something after saveFileDialog1-> ? [code] //Get The Path that was selected when saving the file String^ … | |
HI .... I am a beginner programmer and we are required at college to create a very simple game as a console application :( We found a graphics library for that... thank God.... But we need a sound and video library... but please consider that it should be: 1. For … | |
Hello everyone! I haven't programmed in quite a while and now that I'm getting back into the programming environment for my robotics project again, I'm a little stumped on something: I'm getting this error message for an exception raised in my VAST python script for my robot. It goes like … | |
What are some limitations imposed by a fixed array size? can you please tell me A limitation of arrays is that they have fixed lengths. what does it means ? | |
int patientstomemory(patientstruct (*patientstructpointer)[maxpatients]) { patientstruct patientstruct1[maxpatients]; patientstruct1= (*patientstructpointer); 1>c:\documents and settings\patrick\my documents\hgkbklhb\hgkbklhb\hgkbklhb.cpp(88) : error C2106: '=' : left operand must be l-value whats wrong? very important, working on semester project due monday | |
If I am reading a .txt file with ifstream, what is the syntax to recognice if I have reached the end of file. From what I have heard somewhere before, I think it has with eof to do ? [code] ifstream File("C:\\File1\\"); std::string Line; while( getline(File, Line, ',') ) { … | |
Hi everyone, I've been trying to use an RMI Service from a JSP page, but whenever I try it I get an error of not finding the object. I've started the rmiregistry service, and the Services Implementations registers it, and when I run a class client I have for it, … | |
I am working with the tutorial at: [url]http://www.netbeans.org/kb/articles/mysql.html[/url] The program works great. untouched the program displays the entire database that is a result of of query.getResultSet(). I added a combobox,textfield,and a button with an action. I dragged and droped an additional: searchEnityManager1 bound to the preexisting splashbookdbPU searchQuery1 (bound to … | |
Hi everybody, I am using a java script function which redirect to the page according to the given parameter, and it is working as desired in IE, but I found that it not work with Firefox browsers, so some one plz guide me how it is possible to have the … | |
Hi, (using MS VS2005) Recently I've found that in order for a function to be exported, dllexport *must* be placed in the same file of the function body. E.g. see the following case: [U]File a.cpp[/U] [code=C++] void dllexport a(); a(); [/code] [U]File b.cpp[/U] [code=C++] void a() { // function body … | |
[CODE=C]FILE* f = NULL; fclose(f);[/CODE] Terminates with: 'No source available for "fclose@@GLIBC_2.1() " ' [CODE=C]FILE* f = NULL; ftell(f);[/CODE] Terminates with: 'No source available for "ftell()"' Why those functions does not return error value but terminate whole program? How can I safely tell if file is opened in C and … | |
hi, im learning to use python at the moment and i came over a question where it gives me a large csv file with names of companies and how much they are earning and i was asked to find the top 10 companies..i orignially did this: [code] import urllib import … | |
In this work you will materialise a algorithm that solves the problem of Stable Marriage. In this problem we aim at "n" men and "n" women and our goal is the contracting of constant marriages between men and women. Obviously each man can be wedded only one woman and one … | |
answer the txt question but please don`t use using namespace std; and stuff like that because i think my compiler dosent work with new standards | |
Hey guys, i have done C++ before but gave up on it :P. But i've came back to it and i'm wondering what is a good way to simulate a left and right click? i guess you would start with this: [CODE]#include <iostream> #include <windows.h> using namespace std; int main … | |
Before uploading files via a HTML-form, I want to do some client-side validating. E.g. to check the filesize of the file selected by the user to upload. Filesize should be,say, between 5MB and 50 MB. My 'feeling' says there should be such an instruction in Javascript, but I can't find … | |
how does the code thing work in order to put up a program? | |
Well I tried to look for any posts on ranking arrays, but all I ever really got were stuff about Google's ranking system. Anyway, I have two arrays. One is arr[] which is the original array, and rank[] is the indexing array. So if I were to print arr[rank[0]], it … | |
can u help me with this: write a program that u can write in it and evrey time u press (F1) program will tell u number of capital letters in txt if u press (F2) it tells u number of words(for exampel: 23 erf 3e has 3 words) if u … | |
hi all, i need javascript function to validate the Date of birth field...it should check,leap year condition and also the year should nt be the future one.. Thank u... | |
Is it possible to load two web pages at the same time without using a javascript? I want a pop up webpage to appear and I usually do it using javascript. But my problem is when a clients computer blocks a javascript, the page is unable to load. Is there … | |
Well, i am facing this problem when i try to configure my ODBC 3.51 Driver. I had successfully installed MySQL. Then i try to install and configure my ODBC 3.51 driver. I add a new user DSN, filling with the correct username and password, with the data source name. However … | |
Hi There. I'm new in java script , and I want to know somthing in it. I'm asking if i have a variable and i want to know the data type for the data in it. I'm not sure if you understand me well , but i will give you … | |
hi, i am trying to put an image into the title. i mean like daniweb's title icon is the blue "db" and google's "G", you know...the image in the location bar? sorry i dont know how to explain it properly cuz i dont know what it's called. Thanks | |
can any body tell me the sequence of form events in VB.Net. What is the systematic order of them and how one can handle them in an efficient manner. | |
I m retreiving some data by using cursor inside which i m calling one recursive user defind function to retrive all child data which is linked to parent. While executing i m getting error stating : [B]Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)[/B] How can … | |
Hi everyone. I'm thiiis close to losing my wits over this. I'm working on carrying Session ID via the url (not secure, I know, but it's not meant to be) and I cannot for the life of me get this to work. This is a hangman script (pre-written by someone … | |
For the final project of the year i need to create a digital image processor that removes the noise and increase the contrast in a digital image. Here are the requirements for the project: Program Requirements Input data: The values for the two-dimensional array will come from a file (rawimage.txt) … | |
Hi All, I am need of using a excel file as a standard template and then use a list of .csv files to populate certain rows and columns of this standard template and save it with a different name so that I can always reuse the standard template and it … |
The End.