199,114 Archived Topics
Remove Filter ![]() | |
void main() { int number; totalCallsPtr pcall=NULL; getData(&pcall,&number); } void getData(totalCallsPtr* pcall,int* number)//get data from the text file { int i,n; FILE *f1; f1=fopen(INPUT, "r"); if (f1==NULL) printf("File not open!\n"); else { fscanf(f1,"%d",&n); *pcall=((totalCallsPtr)malloc(n*sizeof(CALL))); } if((*pcall=(totalCallsPtr)malloc(n*sizeof(CALL)))==NULL) printf("not enough memory to allocate"); for(i=0;i<n;i++) { fscanf(f1,"%d ",&pcall[i]->day); fscanf(f1,"%d:%d:%d ",&pcall[i]->startCall.hours,&pcall[i]->startCall.minutes,&pcall[i]->startCall.seconds); fscanf(f1,"%d:%d:%d ",&pcall[i]->endCall.hours,&pcall[i]->endCall.minutes,&pcall[i]->endCall.seconds); fscanf(f1,"%c",&pcall[i]->type); … | |
Hi there, Can C# code , execute commands we write in the cmd window ? i.e: is there a way to let a C# application interact in somehow the command prompt? example : we use the command prompt line: ipconfig to see info about the IP address of the machine, … | |
Please help me digital image prcessing.Please send Visual Basic code for image sharpning,Bluring and nagation | |
Awhile ago I wrote some functions to convert from isbn10 to isbn13, or from isbn13 to isbn10; and subsequently some function to validate isbn 10/13 numbers. I thought I'd post them here to see what people think of them. So, [code] ' Validates an ISBN13 number. If false, it's invalid, … | |
Error is coming Registry Access is not allowed.While Opening a Key. Can Somebody help me out. [code] Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click NewDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "Sonia") End Sub Private Sub NewDelete(ByVal KeyPath As String, ByVal KeyName As String) Dim sMainKey As String Dim sKeyPath As … | |
Hello sir, I am using VS2008. I am using save file dialogue box and i am saving the contents of richtextbox which is in the form. So i used the coding below. It only creating the empty file but not the text which i typed in the richtextbox. [CODE]Private Sub … | |
Hey guys im making a simple program. I have a while loop that continues while the bool quit ! = true. I am trying to test that in a statement like this: [CODE] String userdecision = ""; while (quit!=true){ //start while System.out.print("Would you like to continue with another transaction?"); [B]userdecision=in.next();[/B] … | |
I am unable to see the grid or the data. Here is my code from my .aspx file. I don't know what I am doing wrong: [code=asp.net]<%@ Page Language="VB" AutoEventWireup="false" CodeFile="resumesearch.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Resume Search</title> <style type="text/css"> .style1 … | |
Hey frnds,someone can just give me a hint from where to start. I want to check the Registry Permission of Subkey programmatically. Whether the Subkey has Read permission,Write Permssion, Delete Permssion. | |
I got referee and project as two of my tables need help finding other based on this and know what kind of relationship it is and what the assumptions are. Leeds Met students and staff have the opportunity to volunteer on community and conservation projects at home and abroad. Projects … | |
hi, can someone help me? i need a hand to get a script for a smal change. iget this kind of structure... 20080926RIM881T.20081127.104856 20080926RIM881T.20081127.104831.done 20080926RIM881T.20081202.084408.done 20080926RIM881T.20081127.104845 20080926RIM881T.20081127.104834 20080926RIM881T.20081216.084909.done 20080926RIM950T.20080929.101124.done 20080926RIM951T.20080929.101124.done 20080926RIM952T.20080929.101125.done i woud like to have a script to find all files with .done then i shoug change all files … | |
Hello, I have a question I should write a program that read words from file text and sort it by ABC letters in array, and ask the user to enter a sentence and chcking if the words in the sentence existing in the array. the program checking all the words … | |
code:: [code] import java.io.*; import java.util.*; public class Global{ public static int flag=0; } interface filebackedfifoqueue { void put(String msg); String get(); } public class trying{ public static void main(String args[])throws IOException{ int ch=1; String msg; msg = new String(); while(ch!=0) { BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); System.out.println("\nMenu"); System.out.println("\n0.EXit"); System.out.println("\n1.Publisher"); System.out.println("\n2.Subscriber"); … | |
i am trying to learn assembly using TASM . How do i make the below program terminate . i.e jump to final: after entering wrong key say 3 times ?? [CODE].model small .data msg1 db "- - - Enter y - - -",0dh,0ah,'$' msg2 db 0dh,0ah, "..Correct...Good luck ..",0dh,0ah,'$' msg3 … | |
sir i want to show only distinct row should come in list box. any help would be greately appreciated. [code] Dim con As adodb.Connection Dim rs As adodb.Recordset Dim i As Integer Dim strReq As String * 10 Dim strName As String * 20 Dim strJob As String * 10 … | |
pretty basic problem but my C++ is pretty far back here's my problem I have to read a text file and parse all the different field ex: 001 R0S11 182983 2009/02/22 45607 002 R0S12 182983 2009/02/23 45707 003 R0S13 182983 2009/02/16 45807 004 R0S14 182983 2009/02/04 45907 .... once I've … | |
i have crated web page usng netbeans .. in my php code i have fetch the data in array now i want that data to be pass that data in js file which in that project please help me... | |
Hi everybody, I want to have a login form in Java, which comparing the username and password, according to MySQL database data, so I have the following code, just don't know where to add the select statement and how verify the username and password from MySQL with the JTextfield of … | |
Hello Everyone, Few days ago, There was active thread on creating own DBMS in Java. Its not an easy task so i decided to create Object-Relational Mapping Framework and i have done so. I have tested all methods and its working perfectly. Now i have decided to make it available … | |
Hi everybody, I am unable to get the index of the row which is selected by the user through checking a checkbox. After getting the index I want to delete the row directly from the datagrid on that particular index. Please help me out.Its urgent... cheers, sneha | |
Hi, I'm currently working on a project in Python 2.6.1 using the Tkinter interface, and being new to both Python and Tkinter I've quickly found a problem that keen internet trawling hasn't seemed to help. I'm sure its not a particularly difficult problem or anything, but instead of spending probably … | |
I want to retrieve the username and password of the current user from a shell script .... how to do this? | |
i need help regarding determining the longest word of a string..we would enter a sentence and the program would display the longest word/s i have read ideas about the strtok but i cant seem to understand it that much..and we havent discussed that yet so my prof might question it..i … | |
Hi. I'm David a newbie. I have just started Classes in C++ and I'm doing a GPA Calculator program. I have most of the program working but the average calculator seems to be giving me trouble. Please help. This is open to constructive criticism. All inputs will be gladly appreciated. … | |
Which is in higher demand in the job market right now??? | |
[code] #include <iostream> using namespace std; struct Mytime { int hours; int mins; }; int timecmp( Mytime t1, Mytime t2 ) // compares two Mytime values { if (t1.hours == t2.hours) { if (t1.mins == t2.mins) { return 0; // returns 0 if times are same } else // mins … | |
Please does anybody has a solution to the following topic: Application of first order homogeneous differential Equation to life situation such as Capacitor discharge. . (1) Describes the steps involved in the problem solution (2) Create the algorithm to solve the problem (3) Analyze the algorithm design (4) Implement the … | |
hi can anyone help me about my problem how can i come up w/ this solution for example 1 + 2.00 the answer should 3.00 or like this 1.35+2.00 the answer should 3.35 how can i do this? | |
Hello! Wondering if someone could give me a hand.. Im looking to make a form kind of like this one.. "http://www.nvidia.com/Download/index.aspx?lang=en-us" Where the fields change depending on what is slected.. I would like to link the values of the of the form to a mySQL DB. So the form when … | |
hello everyone, im using php 5.2.6 , apache 2.2.10 and mysql 5 for my server.everything works fine excepts sessions.i have configure the php.ini file for sessions.but still its not working.im using windows platform.can anyone help me to settle this? | |
i am designing a few pages. the pages have a few main divs and that is how i am inserting the background(with css) i can render the whole background to the browser but i dont get how to nest divs inside divs with OOP. any help would be greatly apreciated! … | |
I wrote this program and I need to know if I didn't make a mistake Let arr be an array of 20 integers. Write a program that first fill the array with up to 20 input values and then finds and displays both the subscript of thee largest item in … | |
I have 2 forms. Form2 has no minimum, max, close icons. Form2 have to control by form1. i.e minimize of form1 becomes form2 minimize. normal of form1 becomes form2 normal. closing of form1 becomes form2 close. All these are working. but when form1 is behind the screen, i.e if form1 … | |
hello,, i need help on how to open files by using variable names.. here's my function: [QUOTE][icode]void stringSearcher(string filename, string search) { ifstream file; file.open(filename); if(!file.is_open()) { cerr<<"File can't be open..."<<endl; exit(1); } string line; while(!file.eof()) { getline(file, line); if(line.find(search)==0) { displayTitle(line); exit(1); } } }[/icode][/QUOTE] my problem is that … | |
what does everyone else use? Another question i have is if there are any significant advantages of VC over Dev? I was figuring out if i should make the switch or not. | |
Hi, In my $str="DAniweb it DISCUSSION Community" I want "Each First" character is capital and rest of lower case " If String is $str="[COLOR="Red"]DAniweb it DISCUSSION Community[/COLOR]" Ans-> [COLOR="Green"]Daniweb It Discussion Community[/COLOR] How to do this?? | |
hello guys, is there any one good enough to tell me how to show random pics in a frame each time my home page is loaded. i would appreciate if you tell me how to do it either in javascript or php. thanks a million times | |
At my lab the professor bought a camera that came with a c library to control it from a computer. Right now he wants me to create a gui in matlab to control it but I'm such a python zealot I'd rather do it in that, and then call it … | |
Greetings folks, I need to load a word document file into a RichTextBox component, It can't be done directly, so, I need first, convert it to a RichText Format File and then load it to the component. Any Ideas? Thanks Omar | |
Hi, I'm pretty new to windows programming, and I'm trying to learn from an example. However, I'm encountering some compiler errors that I think are caused by my strings not being made up of wide characters. (correct me, i could very easily be WAY off) winMain() requires parameters of the … | |
Hello, I am trying to write a program where i have to read a CSV file(obtained by converting an excel file having only 1 column of integers) into an array and then to display the same array as another CSV file. I am using Turbo C++ 4.5. I've tried, but … | |
Hello., Im very new to C++ but im trying to resolve a fragment of the following code: [CODE] #include <iostream> using namespace std; const int NO_STEPS = 4; void s(int* a, int i); int main ( ) { int i, a[NO_STEPS] = {2, 4, 1, 3}; for ( i = … | |
I have a text file containing several lines of IP's and Ports with 3 sets per line. For example: [CODE]IP1=1.2.3.4 PRT1=100 IP2=2.3.4.5 PRT2=200 IP3=3.4.5.6 PRT3=300 IP1=12.34.56 PRT1=1000 IP2=2.3.4.5 PRT2=200 IP3=3.4.5.6 PRT3=300[/CODE] I want to read in each line, see if PRT1 matches a specific port, if so then print out … | |
I have an array which collects a name and a mark,I want to use a method to get the total of the array, I assume this can be done I have googled it but it doesn't really give me an answer. heres Main [code] static void Main(string[] args) { Student[] … | |
Hi! I am creating a simple website, and I would like to have an option on one page to print the contents of the page by clicking a button, or seeing it in PDF format by clicking another. What is the simplest way of doing this? Mladen | |
I am doing a Java project and in my gui I want to use Buttons. I want to put a class' internal parts code as a button action. Because the class Throws Exception when I copy the contents of the class under the button definition I encounter unreported exception error. … | |
I have been working on flatfile and directory system in PHP and not that I have got the script working I want to make it more secure. What I have is one directory with sub-directorys insided them and insided the subdirectorys are about 20 files each. Forexample: [code]directory/ sub1/ sub2/[/code] … | |
i hav a problem m new to php nd i started with writin my first page but whenever i start my browser i see the complete code and nt the output i need i wrote [code=php]<html> <title>my php page</title> <body> <?php echo "hello there!"; ?> </body> </html>[/code] the output is … | |
Hello, Is there a way to read the sort criteria from an Excel file using C#?? as an example, if you sorted a cell range by country, is there a way to read "country" using C#? Thanks. | |
hi Frends, I am a NetBeans user, I show an error in My project when i click on Design view of JFrame. Error is:-"The File Formate is Not Recognized" this is my project database's JFrame. i can't see the design view but ican write code in it. In code window. … |
The End.