132,726 Archived Topics
Remove Filter ![]() | |
I'm a newbie at writing DOS batch files. I've tried to look for it, but I can't seem to figure out how to read from an input file. Is there an equivalent of a [I]cin[/I] statement in DOS Batch programming. Software Development | |
Hi everybody. I have a doubt in one of the command which is shown below. 1. I created my own adding and multiplication funtion definitions saved in two separate files named "sum.c" and "mul.c". The function calls are present in "main.c" ofcourse. 2. I got the assembler output files by … Software Development c | |
Hey Guys, first year compsci student and I'm struggling with 2D arrays. Here is my code: [CODE] double classAverage(int assignments, int students) { double average,sum; int row,col; FILE *input_file; input_file=fopen("grades.txt","r"); for (col=0;col<assignments;col++) { sum=0; for (row=0;row<students;row++) { fscanf(input_file,"%lf",&grades[row][col]); while(fgetc(input_file) == ','); sum+=grades[row][col]; printf("%.2lf\n",sum); } } average=sum/students; fclose(input_file); return (average)[/CODE]; int … Software Development c | |
Hi all i am try to pass the text input into the text boxes in form ( OrderScreen) into the text boxes in ( PrintOrderScreen)I don't get any error it just does not pass the text over to the second screen. the text boxes with OS at the end belong … Software Development vb.net ![]() | |
Ok i am having a blond moment(no offense haha). I got on my form textboxes, checboxes but also a groupbox which holds texboxes. The idea is to be able to clear and reset all of these by clicking a reset button. At the moment i got this [CODE] Private Sub … Software Development vb.net | |
I am a newbie, so it might seems a silly question. I have a login form which calls other form where it says .. "please wait while it loads". in form 2 i have a label for that. Now the problem is that the text for that label doesnot appears … Software Development | |
[CODE]#include<iostream.h> int liner(int [], int ,int ); void main () { int a[1000]; int arraysize,element; int searchkey; cout<<"Enter how many elements in your array"; cin>>arraysize; cout<<"enter the elements of the array "; for(int i=0;i<arraysize;i++) cin>>a[i]; cout<<"Enter the searchkey"; cin>>searchkey; element=liner (a,searchkey,arraysize); if (element!=-1) cout<<"::::Found value in index \n"<<element<<"\n"; else cout<<"::::value … Software Development c++ | |
![]() | hey, for an Application I want to let application Communicate with each other but how would that be done? I know of Commandlinearguments but that is only when starting up. I want them to communicate while they are running. how would I do such a thing? Software Development vb.net ![]() |
[I]<<mod edit: answer to [URL="http://www.daniweb.com/software-development/python/threads/32007/1496502#post1496502"]this post[/URL] from the sticky "[URL="http://www.daniweb.com/software-development/python/threads/32007"]projects for the beginner[/URL]">>[/I] [CODE] #1 * 8 + 1 = 9 #12 * 8 + 2 = 98 #123 * 8 + 3 = 987 #1234 * 8 + 4 = 9876 #12345 * 8 + 5 = 98765 #123456 … | |
Hello! Bit new to this and I am only scratching the surface on programming and scripting so forgive me if this is an overasked question! :) Or if this thread is in the wrong location. I am looking to trigger or autorun (not CD) a .bat to run/start by using … Software Development shell-scripting | |
So, I'm making a program that has a "Print" button. I want it to open a PrintDialog, let the user select the printer they want to use, and print the contents in the RichTextBox/TextBox. I was thinking about this: [CODE]Print.RichTextBox1.Text(PrintDialog1)[/CODE] But it didn't work. I also tried: [CODE]PrintDialog1.RichTextBox1()[/CODE] Those came … | |
I'm trying to do a project that uses the trigonometric functions, but I'm having some trouble with them. When I type in this code: [CODE]import math print 0.5+math.cos((2*math.pi)/3)[/CODE] I get the answer 2.22044604925e-016. That's obviously not right. cos((2*pi)/3) is -0.5, so I should get the answer 0. Can anybody help … Software Development python | |
Dear, Currently I am working on VB.Net 3.5 Win Forms. I have few queries about datagridview, I believe your expertise will help me to overcome this. 1) I have DataGridViewComboBoxCell and DataGridViewTextBoxCellinserted into the the datagridview1, which in turn bounded with the datable, Here I want to update/edit the value … Software Development vb.net | |
I was wondering how i would be able to validate a textbox for the E-MAIL address of a person. For example it cant have anything like "`#[]-=+-></~| etc. it MUST have an @ and a .com or .co.uk at the end of the e-mail. anyway i was wondering how i … Software Development vb.net | |
Hey i'm [B]trying[/B] to write code for a word utility program for a uni project and it is bugging the hell out of me. [CODE]#include <stdio.h> #include <string> #include <iostream> #include <fstream> #include <Windows.h> #include <string.h> #include <cctype> #include <algorithm> #include <vector> using namespace std; const int size=300; int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,i1,option,Mirrorimage,spacenumber=0,characternumber=0,averagelength=0,Uppercase; … | |
I got an error saying "There is already an open DataReader associated with this Command which must be closed first". I have only used datareader once while using the same connection for my dataset. Would that make some conflict? Need help. Software Development dataset | |
I have this code but the floats wont print to the file. Everything else prints and works well but the floats i see 0.000. Can someone tell me where im going wrong. I already declare them in the struct as float apaid; float tpaid; [CODE] customer customerinfo(customer info) { FILE … Software Development c file-system | |
Hello everyone, I'm programming genetic processes in java for my project and I want simulate the mitosis of a human cell. A human cell contains 23 pairs of chromosome. Mitosis is basically a cell division, or reproduction, in which a cell gives rise to two genetically identical daughter cells. You … Software Development java | |
Hello Programers, web designers, reverse engineers, coders, game coders [COLOR="Red"]other...[/COLOR] What Language Do i First learn to master all? i have a small knowledge in VB6 and vb.net but what do i need to learn first to master all language im dedicated to study hard and master the languages and … Software Development c++ | |
Hello, I need to a webservice that could be use in c++ and php and easily work on linux and windows compilers (my windows compiler is visual c++ 6) can anyone help me on this? | |
When i run the Java's window applications with default settings, theme is automatically changed from Aero theme to Window 7 basic theme. However, I wish to run Java's window applications without changing theme. I want to run this with current theme. How can I do for this? Please help me.... … Software Development java | |
Hello! I have a little project of my own to convert a memory game puzzle from VB.Net into Delphi (Not a big Delphi fan). I was doing fine so far until a control would not be recognized (outlined in red and green). It is an imagelist containing 8 images. [LIST=1] … | |
hi..who knows how to append the list box to the exist text file? [CODE] FileStream fs2 = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt", FileMode.Append, FileAccess.Write,FileShare.Write);//create text file StreamWriter sw2 = new StreamWriter(fs2, Encoding.Default); string writetext = ListItemCom2.SelectedItems.ToString(); sw2 = File.AppendText(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt"); // write to the text file sw2.Flush(); sw2.Close(); [/CODE] this is my coding.But,it contain … Software Development file-system | |
![]() | Hi! I've been googlin' quite awhile now, and I haven't got any luck finding a C GUI library functions and explanations. Do anybody have a link for this? Or even better? a link on pdf file of GUI for C programming? |
Mary plans a round-world trip in which he would like to visit a number of friends at each city she stops at. She sorts the cities according to the number of friends so she can visit P friends at Pth city of the trip, where k = 1, 2, ...., … Software Development java | |
the goal is to add, delete, display dota heroes, and display specifics, and exit. thanks!! :) #include<stdio.h> #include<conio.h> #include<string.h> #define N 3 typedef struct{ /*Place fields here.*/ }name; typedef struct{ /*Place fields here.*/ }hero; typedef struct{ /*Place fields here.*/ }hero_info; typedef struct{ /*Place fields here.*/ }hero_rec; void displayMenu(void); void initialize(hero_rec … Software Development c | |
Hi all. I hope this is the right place to post this. I am a music technology student and I've recently picked up learning C++ as it would greatly help my career knowing a programming language, especially this one since it is used in the video games industry. Anyways onto … Software Development audio c++ career data-structure ide | |
Hi everyone, My question is: I have two vectors, for example vectorA and vectorB, vectorA is filled with randomics values, like 23, 43, 54, etc, and its have 1000 members, like vectorA[0], vectorA[1], etc. My vectorB descending of vectorA, I use the "push_back" function to take the values of vectorA, … Software Development c++ | |
Hello. I have a two [B][COLOR="Red"]structure[/COLOR][/B] arrays that are sorted. ı wanted to put these arrays into third array as a sorted. and then ı wanted to put these values into the file. into my array one and array two , there is no same number so ı thought something … Software Development c++ | |
I use following code to get all existing sql servers. [CODE] using Microsoft.SqlServer.Management.Smo; DataTable dt = SmoApplication.EnumAvailableSqlServers(false); if (dt.Rows.Count > 0) { cmb_servers.Items.Clear(); foreach (DataRow dr in dt.Rows) { cmb_servers.Items.Add(dr["Name"]); } }[/CODE] In first attempt it's not loading any servers at all but in second it is. I know it's … Software Development sql | |
Hi everyone, I'm new to c# ( I've done java before) and I'm having a problem with one of our tutorials. We have to read some data from an XML file. When doing it with a console application it turned out fine, but when doing it with a Windows forms … Software Development xml | |
Hi Guys i am getting error directory name is invalid.My codeis as follows : [code] private void toolStripButton1_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); parser = new GrammarParser(); parser.showStep += new GrammarParser.ShowStep(parser_showStep); if (dialog.ShowDialog() == DialogResult.OK) { string[] names = Directory.GetFiles(dialog.FileName); for (int i = 0; i … Software Development | |
Guyz, I have been using codeblocks IDE (Latest Version GCC 4.x) for sometime now. For some weeks now Im facing some problem in it. When I build a program for the first time, it runs smoothly. Then I make changes and I build again, then it gives an error saying … | |
Hello, I need a way to wait for threads and I don't think that pthread_join works in my case. Here's the problem. I'm currently working on a very basic space game. We have vehicles that collect resources and must bring them back to the HQ. In order to do this … Software Development c++ client-server | |
"ps aux" outputs the following as the first line: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND how can I preserve this line if I do a "ps aux | grep <someuser>" so that I can still see the header for each column? In essence, I want … Software Development shell-scripting | |
Hi , I have a excel sheet.in that one column called hardcoded. we have sheet as folllows. Name EMp_ID Hardcoded ---------------------------- ABC 1987870 1. EMP_SAL_CD : "2000","1300","Avg100" 2. DEPT_CD : "Manager","clerk","anlyst" 3. DNAME : "SALES","HR" STU 1909890 1.EMP_SAL_CD : "6000","300","A100" 2. DEPT_CD : "Manr","cle","ant" 3. DNAME : "SALES","HR","STUD" --- --- … Software Development shell-scripting | |
hey guys ive been working on this script for this game for like 3 weeks now i just cant get it can someone plz fix this for me its not to far off SetActiveWindow Naruto New Flames 2.8 constants k1 = 0 uparrow = 1 leftarrow = 2 rightarrow = … Software Development shell-scripting | |
Hi, I am trying to pass a string to a MACRO using -D option in gcc. I am not getting desired output, below is snippet, please let me know what I am missing. $ gcc -o finame -D CORE="op1_log.txt" finame.c [CODE] #define STR(x) x int main() { FILE *fp; char … | |
[COLOR="Green"]Hey Everyone, Started Java for couple of months now and still struggling to put things together.Any assistant will be highly appreciated. I wanted to display an initial menu screen with the following set of options: 1. Display the current score for each possible response. 2. Vote 3. Quit the program. … Software Development display java java-swing | |
Ive got some quetions and hope someone has the answere. When I create a project i vs and want to have one gui what do I chose, console application or what? When I in the same project want to add a class do I then chose "add class"? If I … Software Development c# gui visual-studio | |
I am trying to create a simple banking system that reads in data from a text file. Attached is a copy of the text file and another text file explaining the layout. How would i read this information in. I need a class for customers, accounts and transactions and an … Software Development | |
Hi All I have the following XML (which is generated automatically and cannot be modified): [CODE]<ExportQuery> <ELEC01_SOWaitingParts3> <OrderDtl_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></OrderDtl_PartNum> <JobOper_OprSeq><![CDATA[10]]></JobOper_OprSeq> <Part_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></Part_PartNum> <OrderDtl_OrderNum><![CDATA[18432]]></OrderDtl_OrderNum> <OrderHed_OrderNum><![CDATA[18432]]></OrderHed_OrderNum> <JobHead_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></JobHead_PartNum> <JobHead_JobComplete><![CDATA[Yes]]></JobHead_JobComplete> <JobOper_JobNum><![CDATA[018957]]></JobOper_JobNum> <JobOper_OpCode><![CDATA[GB STORE]]></JobOper_OpCode> <JobOper_OpDesc><![CDATA[GET BATCH STORES]]></JobOper_OpDesc> <JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete> <JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted> <FalseJobNum><![CDATA[18957]]></FalseJobNum> </ELEC01_SOWaitingParts3> <ELEC01_SOWaitingParts3> … | |
hi, i have a two datetime picker in a C# form, when i select a earlier date (before today date) there is a caparison i have addded to the validateing event in the date timepicker.below is the code. Question 1: for some reason say that i add 10th may, the … | |
I have to add 2 polynomial equations. Each are stored in linked lists. eq_1 and eq_2 linklists are added and the total is stored in eq_1 linklist. But the problem is when im trying to add both equations, the 2nd for loop(eq_2) is looping once only. I mean when eq_1 … Software Development c linked-list | |
Hey guys, I need to make a program that lists out an average, highest and lowest stock price over a one month period. I'm focusing on the average first but it's already giving me problems. [url]http://omg.wthax.org/error_4.png[/url] Here's what I have so far. [CODE] # include <iostream> using namespace std; int … Software Development c++ | |
Hi guys, keep getting an error: Cannot find the deceleration of element test when writing the xml. I have declared the element test in the schema but it appears to ignore it. The schema is as follows: [CODE]<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Test"/> <xs:simpleType name="Stringtype"> <xs:restriction base="xs:string"/> </xs:simpleType> <xs:simpleType … Software Development xml | |
Hello I need to do a line by line compare between two Msword 07 documents. I've tried the conventional way of using getline and compare but it doesnt work. While step by step execution, the program is unable to recognise the format of the sentences in the word document. I … Software Development c++ |
The End.