132,726 Archived Topics
Remove Filter ![]() | |
#include <iostream> #include <fstream> using namespace std; void namefile(ifstream & infile); void openfile(ifstream & infile); void displayScores(int scores); void getData(ifstream & infile, int scores[], int & size); int main() { } void nameFile(ifstream & infile) { cout << "enter the file name"; cin >> infile; } void openfile(ifstream & infile) … Software Development c++ | |
this is my first program ever, my email address is in the program. tell me if anything is too complicated or there are bugs and if you can tell me how to fix them. this program is me playing with fstream and it writes to a txt file or creates … Software Development c++ | |
How can I stop this error, here is my code and there error occurs where i have decimal.TryParse(.... class EstCalc { static void Variables (string[] args) { decimal bl; //blank length decimal bw; //blank width decimal bp; //blank perifery decimal pd; //part depth decimal dq; //die quantity decimal.TryParse(quantityTB.Text, out dq); … Software Development | |
Hi, I have the following structure of my project [code] Copyproject(main folder) | |_____src(folder) | | | |__Nertworkpackage | | | | | |__Storepackage | | | | |__FtpPackage |__module1.py | |__module2.py |____ tests |__ module3.py [/code] Module1 takes some commandline parameters that will do some operation Like If I … | |
I am not too sure about c++. I have this program so i can perform a test on it against java. It looks like [CODE]#include "stdafx.h" #include <iostream> #include <math.h> #include <sys/time.h> using namespace std; double generate(int max) { struct timeval start; struct timezone tz; gettimeofday(&start, &tz); bool *sieve = … | |
Hi, i have a small project in which on selecting a node in treeview displays attributes in listbox.In treeView1_AfterSelect, the text parsing code depends on the textual representation for a node in the tree view, which can be changed at any time and break the entire logic of list display. … Software Development xml | |
hi there, im currently working on my own cd ripping program using c# and wpf and was wondering what the best solution for this problem is? my xaml code is as follows: [code=xml] <ListView x:Name="trackList" VerticalAlignment="Top" Margin="0,100,0,0" Height="200" SelectionChanged="trackSelect" FontFamily="Comic Sans MS"> <ListView.ItemTemplate> <DataTemplate> <StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> <CheckBox Name="checkbox" … | |
Create a class named Order. This class has the following attributes/ data members i) OrderID ii) Items iii) PricesOfItems a) Create the object of this class using parameterized constructor in order to initialize OrderID and Items data members. Default values of both the data members must be equal to 1. … Software Development c++ | |
Hi to all I have the following question, I was wandering if I can use the Web Browser Control(ActiveX) in a C# DLL. I create a win form from the article: [URL="http://www.c-sharpcorner.com/UploadFile/mahesh/WebBrowserInCSMDB12022005001524AM/WebBrowserInCSMDB.aspx"]http://www.c-sharpcorner.com/UploadFile/mahesh/WebBrowserInCSMDB12022005001524AM/WebBrowserInCSMDB.aspx[/URL] And every thing is working OK, I want to write a DLL that includes a Web Browser object … Software Development gui web-browser | |
hello what is the exact code in saving visual basic using ms excel as database? i want to save my data in the form of visual basic into excel as database..what is the exact code in my cmdSave command button? thanks in advance... Software Development visual-basic | |
Hi All, I want to use the data grid as input interface. Can any one help how to start. i need 3 columns date, name, location the location field is drop down field user can select from the list only. the values entered by user should update in the database. … Software Development user-interface visual-basic | |
HI, I am Using VB 6, how do I sent data over the internet to an SQL DataBase Software Development sql visual-basic | |
[code] Computer::Computer() Computer::~Computer() void Computer::setspeed ( int p ) [/code] what is this 3 sentences mean? what is the purpose we use it? i have asked my friend but still a bit blur. pls help.thanks. Software Development c++ | |
[code] Static x As Integer = +TimeLbl.Left Static y As Integer = TimeLbl.Top Static width As Integer = TimeLbl.Width Static height As Integer = TimeLbl.Height If DateTime.Now = "08:00:00" Then Timer1.Enabled = True With Me x += 0.6 If x <= +.TimeLbl.Width Then x = .Width End If .TimeLbl.SetBounds(x, y, … Software Development vb.net | |
Hi, I have a VB6 program that uses several ADO Recordsets to connect to an Access database. In one part of my program I have code for adding a new meeting (uses the meetingRst recordset). When the new meeting is added I requery the meetingRst and populate a ListBox detailing … Software Development visual-basic | |
Hello, I just had a midterm and there was a question where we had to right a program which can calculate all the numbers which form quadruplets. A quadruplet would be x^3+y^3+z^3=a^3 The program should only run till a<25 also, 0<x<y<z<a at the end we had to output how many … | |
Hi, Does anybody know how can I return the time format from the system regional settings ? I need something like "hh mm ss" returned ( or whatever the current system time format is) to pass it as argument for FormatDateTime() function along with a given time; I`m using Delphi … | |
ok this is a really basic question but I just can't seem to wrap my head around it. The basic syntax of how to open a file and check it and whatnot makes sense to me. But how the compiler reads from the file doesn't. For example if I have … Software Development c++ file-stream file-system | |
Ok, so I decided to try and write a simple chat bot. To start, I made it so he will scan the string that you input, and see what emotion you have. (this is just the base, eventually he will read verbs and such) So, here is the code... [CODE]#include … Software Development c++ | |
I have looked all through the open gl website and i cant fine where to download the SDK? can someone give me a download link? i am using c++ btw | |
Write a program that calculates the value of x using these two formulae: w = (22102 * -12)/(18 – 3) x = (12032/w) * (2354 + 34) Use the properly-sized signed or unsigned operands as appropriate. Demonstrate that your answer is correct by using the debugging software to walk through … Software Development assembly | |
I am writing a program that will take input and find whether or not the number you put in is prime. The program works fine, save for one small problem: [code] #include <iostream> using namespace std; int main(){ int num; //the chosen number int i; //potential factors do{ cout<<"Input a … Software Development c++ | |
Hello! I am working on a project in VB.Net .I am Making use of two forms, which consist of a form called Project .It has a Button which is called New Employee on the form itself.When I click this button, I want that this link me to the Employee form.I … Software Development vb.net | |
Hi guys, I wonder if any of you can help me with my problem.... I am trying to write a script that searches a file that describes a grid of letters, like: [code] wergfdghytr bhgiusuwiee popeldorlfse funwrdtywa [/code] The script uses another file for a word list, where each line … Software Development python | |
![]() | Hello everybody I am doing a little code to learn a bit more about C++. Do not be amazed if you find that code useless, it is mainly just for me to improve. :) This is my first C++ program and I started few days ago... [/I]One class is used … ![]() |
hi everyone..... how to create a c compiler using c language.... can anyone explain the steps involved..... thnx in advance | |
Can anyone help me figure out what I'm doing wrong. I'm new to programming and for my class we had to modify the program so that it reads its input from a text file and the output of the program should go to the screen -- only the input is … | |
Wrote this max min problem. The output however gives me the correct max but not the correct min. It simply returns 0 for the min everytime. Any ideas what I need to fix? [code] #include "stdafx.h" #include <iostream.> #include <conio.h> using namespace std; int main() { const int NUM_DAYS = … Software Development c++ | |
I need help with python programing, i finished the first part of my project ans some of the second part, but im really confused about the part where i have to group an entire file into its constituent months and then calaculate the averages. I know how to calculate the … Software Development open-source python session | |
Hi, I have a report that generates personalized letters. How can I attach these personalized letters (in PDF format) to their corresponding e-mails using MS Access 2003? Please help. Thanks. ilokana | |
Okay, don't laugh. I'm [B]very[/B] new to python. Actually to programming all together. I'm doing an exercise where i have to count the number of a string in a word. Ex: count("is", "Mississippi") would be 2. I tried using string.find and was having no luck. So i tried to go … Software Development python | |
Hi folks. I'm getting back into learning Python after a few months off, so I'm still a newbie, hehe. I'm using the free online book Dive Into Python. I ran the first program and it worked just fine, but it returned the output in the opposite order of the one … Software Development python | |
Hey all, I'm new to C++ and struggling to write a program. I am used to writing in VBA and Mathlab but because I need to run a long run simulation have to rewrite my program in C++. What a am trying to do is if I have a list … Software Development c++ | |
Hi, I am trying to pass parameters to my program, but I can't seam to get it to pass specific parameters. I want it like [icode]"C:\Age of Empires III Launcher.exe /x=agex.exe /y=agey.exe /z=age.exe"[/icode]. How would I go about doing that? I can't find a good tutorial on it. Thanks. | |
I have a sql table consisting of dept_name and dept_code.and on the form i have textbox for dept_code and combobox for dept_name.When i select a particular dept_name from the combobox i should get the corrosponding dept_code in the textbox. Software Development vb.net | |
Hey all, I'm new to C++, much more at home with mathlab or VBA so this is probably a simple problem for you guys. I am writing a program and I want to change values at the end of loop but keep answers from previous loop, i.e. in other programs … Software Development c++ | |
The following is a code that my teacher gave me .. I dont know the working of files in c++ :( this program is supposed to copy a datafile into another.. but its is not working ... many many errors.. fname1 and fname2 are already existing files,right? or fname2 is … | |
I just finished another assignment and I can't figure out why this none keeps appearing after you enter a language: [code=Python]while True: print"Hello, how are you?" language=raw_input("Pick a language: french, german, hungarian, dutch: ") if"french"in language: def function(): print"Bonjour, comment allez-vous?" elif"german"in language: def function(): print"Hallo, wie geht es Ihnen?" … Software Development python | |
I have a case statement that evaluates a string in a combo box on a form which is either English or Metric. What I'm finding is that the case statement does not see the pull down box contents which is loaded by default unless it is physically reselected by the … Software Development | |
hey guys, I`m trying to overload operator = in my class in windows application`s form , I`m not sure what is my problem,would you take a look at my code?[CODE]public struct Customer { // Public members // public string Name; public string Name; public string ID; public string Address; public … Software Development | |
how to use push and pop here??? thanks! #include<stdio.h> #include<stdlib.h> void push(char palindrome[20], int *top, int value) { if(*top<=10) { palindrome[*top]=value; *top++; } else { printf("Stack is full!!"); exit(0); } } int value; void pop(char palindrome[10], int *top) { if(*top>=0) { value=palindrome[*top]; *top=*top-1; } else { printf("The stack is empty!!\n"); … Software Development c | |
Hey everyone, So, for a class I am taking, I am building a Lego robot whose main function is to drive around a room and collect data (via a sonar sensor) as to where objects are in its surroundings. Some of the data I will collect is: Current robot position, … | |
1. I work with a database project. Now I want to show all data (from a table like 'student name' column) in a combo box. how can I do this. I connect the database by system DSN and adodc control. plese any body help me. 2. If I select a … Software Development visual-basic | |
I am looking for simple example to handle registry key like add new key,edit available key, delete availadle kay,search for key....... i search for examples but they are complicated to understand...... even simple functions also welcome (without full code) Software Development visual-basic | |
hi, i am new to .net. i wrote the program for getting information from database. when i click the ok button, the above action is called. and its take few seconds to fill into datagridview.. that time i like to show the busy curser in my windows form. (ie after … Software Development | |
hi there i need to make a program that the user using comboboxes chooses the number of guesses and and range of guesses they are allowed using a GUI that looks like this: [url=http://smg.photobucket.com/albums/v321/Howrandom/?action=view¤t=Untitled.jpg]http://smg.photobucket.com/albums/v321/How...nt=Untitled.jpg[/url] i have made all the buttons etc and for the range combobox have used the code: … | |
I am using a tool to connect to mobile phone to fire AT commends . This tool has some ready adaptable .apy files which the user can modify and adapt to his needs. The scripts in the tool are written in Python. I am new to Python. Questions: ------------- 1. … Software Development python | |
Hi guys, I am trying to execute a .jar executable within a java file but nothing happens, no errors, just nothing in general! [CODE=java]public void executeCmd(){ Runtime run = Runtime.getRuntime(); try { Process proc = run.exec(cmd); } catch (IOException e) { //sendmessage saying there was an error } }[/CODE] Software Development java | |
Hi, I am writing a script to get information on disks for Solaris 10, does anyone know of a way to print out the size of each disk on the system in MB i know how to get it in GB and could do some number manipulation however it would … Software Development shell-scripting | |
I've been racking my brain on this problem for like 2 hours. The thing I have to do here is use one single random function for the entire MASH program instead of the usual 4. The problem is, when I get a result, they're all from catagory 1 (married to … Software Development python |
The End.