199,114 Archived Topics
Remove Filter ![]() | |
hi all Can we (compile and execute) or just execute a c file from another c file? am asked this question and i am unable to find any solution to this problem. A 'c' file is executed and it must contain code that will execute another 'c' program olease help … | |
Hello, I am trying to build a GUI with 2 textfields (1 for tutoring time & 1 for payment for session), a textarea (display the inputs in 2-D array & show report), and a few buttons (ENTER, RUN REPORT & QUIT). The two textfields are for the user to enter … | |
Hi all! I am quite new to C++ and just been hacking with stdlib. When I want to start hacking other things outside stdlib, like network aso. I get confused and can not find what I am looking for. I use GNU/Linux and want to use "native" libs for that. … | |
Hi I am using the following code to logout: my logout button calls logout.php [U][B]logout.php[/B][/U] <? session_start(); session_destroy(); header("location:site.php"); ?> This doesnt seem to reidrect to my site.php page, it just loads a blank logout.php page, any ideas? | |
Any one help me to create a chat box (HTML/JS)for my site. Many web sites provide the chat box which referring their site. I don't want that kind of chat box. I need a complete code for chat with all functions. If i get the code to login with nick … ![]() | |
Hello friends, I have a small problem and I need your help/hint... I want to compare two strings with ignoring cases but my program not works as I want... The program should compare if two strings contains same characters ignoring lower/upper and their order... For example, how should works my … | |
Hello Having trouble reading in some 8-bit data (not text) from serial port using pyserial module. Am storing the data in a string buffer as it comes in, that's working fine. Problem is that I'm printing the buffer out to the terminal screen, after a wee bit of data (30~200 … | |
Does anyone know of a good site or doc that describes the ways to use a TStringGrid? I'm trying to figure out how to right-justify some of the items that are going to be placed into a TStringGrid, and none of the docs I've found so far seem to have … ![]() | |
So, I have a two part question for you... I'm going to be writing several lines of code to a .txt file, but I won't know what each line is, or how many there will be. There could easily be hundreds of lines. I need to add a prefix to … | |
Suppose the xMethod() is invoked in the following constructor in a class, xMethod() is _________ in the class. public MyClass() { xMethod(); } A. a static method B. an instance method C. a static method or an instance method what is the answer a or b or c | |
[CODE] <?php $oldumask = umask(0); mkdir($url, 0777); umask($oldumask); $myFile = $url."/index.php"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData ="lots of things"; ?> [/CODE] Why am I not being allowed to write files to my website, it was recently working, my host had some technical issues yesterday,, and now … | |
I need this program to encrypt by making letter a letter z and b, y and so on. The proffesor got us started by giving us this program and for the life of me i can't figure out how to change it. [CODE] public class ceaser { public static void … | |
Hi! Im a beginner in programming, and I have been given an assignment to program a TicTacToe game. I could not find any programs as such for reference over the Interwebs thus would want the expertise of daniweb users to help. The problem im having: 1. How do i transfer … | |
Hi all, I'm working on a system that does a bunch of stuff, as well as monitors the current date on a system, checks it against a stored date in a database, and if both dates are exactly the same, sends an email automatically to a bunch of users. Now, … | |
Hi Guys , this questioned has been asked before , but the answers haven helped me . I want to seperate lines when i am appending the text control. But "\n" is simply not working . I am using Python 2.7 , on Windows 7. Please help. I want to … | |
Hello, as i know java source code is visible to ppl, i talk about Desktop Applets, i'm interested to start learn Java/Web Developing, that i want to know is, Can ppl see code of java applet in brwoser? like he can with Java Desktop Appis. | |
Hey guys! I created a facebook type program. The user may load an image, tag the image, and remove tags. I've done the loading of an image, now I'm working on tagging the image. My problem is how do i make it so that when I click the "Tag photo" … | |
please help me by answereing my three question 1)page redirection is possible through which methods? 2) another question which is the default port number of jws? 3)we can write servlet programs by using http packages only ah? | |
Guys, need help again, I cant get my mail script working... here is my code [CODE]<?php require_once "Mail.php"; $from = "Sandra Sender <sender@example.com>"; $to = "Ramona Recipient <recipient@example.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "ssl://mail.example.com"; $port = "465"; $username = "smtp_username"; $password = "smtp_password"; $headers = … | |
Python does not have a type like struct in C or record in Pascal, but it can be easily implemented with a class. This little code snippet shows you how to do it. | |
I am trying to extract data from multiple files into one output file. At the moment I am able to extract the columns I want into a vector in a vector: [code] vector< vector<double> > out; //2D vector ofstream myfile ("example.txt"); //outputfile //the data contained in data[n][6] is put into … | |
Hi Again All, I have a Datasource which I query, works fine but when I package the application it can't find the datasource (which is an mdb file) how do I set the datasource to always look in the application path. I have tried [ICODE]str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= App.Path + … | |
[CODE]#include<iostream.h> #include<conio.h> #include<process.h> struct node{ int data; node *next; }; class Linklist{ node *ptr,*save, *head, *tail; public: void ncreate(); void display(); void insert(); }; void Linklist:: ncreate() { while(1) { ptr = new node; cout<<"enter info:"; cin>>ptr->data; if(ptr->data==-999) { return; } if(head==NULL) { head=ptr; tail=ptr; } else { tail->next=ptr; tail=ptr; … | |
i have to create a city application that prompts the user for a series of city names and then displays the number of city names entered and then the name of the city with the most characters in uppercase letters. how come it always output the last name entered ? … | |
Simple Q. I have... Why is there a need have multiple forms with in a database? Does it just make it more simpler and more organized? | |
I can not get labels to print on a Windows 7 64 bit machine. The program works on windows 7 32 bit. The error is [B]Can not Create OLE Objects[/B] [CODE]Public Class ArmsInput Dim strAssemblyCode As String Dim strLineID As String Dim strLabelPrinter As String Public strConnection As String = … | |
Hi, I have a WCF Webservice, and I have an asp.net application that uses this web service. I Have them both running on the same machine, but get a time out. Is there something I have to specify myself in the web.config? I am fairly new in WCF, as this … | |
Hi all, Sorry if this is a stupid question. Assume I have a code like this. [CODE] char *temp = "poiuytrewq"; std::cout<<*temp<<std::endl; //should print p function(temp); std::cout<<*temp<<std::endl; //should print i [/CODE] Basically my function() in the above snippet increments the pointer twice so that temp point to 'i' now. I … | |
Hi, How to avoid webbrowser data copy, paste to word or notepad in vb.net. Disable right click on webbrowser by using [ICODE]IswebbrowserContextmenuEnabled =false[/ICODE] Thanks in Advance... | |
The form is supposed to be able to take your their percentage grade out of 100 and the number of hours per week of each of their courses. The application will determine and output the GPA equivalent of each grade entered as well as the CGPA of all the courses … | |
I'll keep it simple and hopefully whatever simple error I keep overlooking can be used as a learning experience for others. This program uses a user created file called patient.dat that contains the following: Smith Eleanore 110/73 Jones Tom 200/78 The error I am having is that Mr Tom Jones … | |
Hello everyone.. .. Plz help me ..How to work for a payment through net banking.. in PHP.... So that client client can pay through net banking and amount will be transferred into my bank account.. I hear that it requires a payment gateway.. . If is it so then how … | |
hi... i'm getting a null reference exception unhandled error..... i have inserted the code snippet and a screenshot... please tell me where i'm going wrong..... [CODE] DataSources[] dataSources; int i = 0; _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode tempNode in _list) { //MessageBox.Show(tempNode.Attributes["Name"].Value.ToString()); //MessageBox.Show(tempNode.InnerXml.ToString()); dataSources[i]=new DataSources(); dataSources[i].getContent(tempNode); i++; }[/CODE] the class … | |
Hello everyone, Like the headline says, my computer goes crazy when I run this program. The problem did not occur until I added lines 80-83. When the program is run, my computer starts beeping and weird characters show up on the console. Any thoughts on the problem and why it … | |
I don't know what this problem is asking me to do : initialize both i and n in the same line. Initialize n to 0, and i to 0. This problem is in the Loop Chapter: for (int i = 0; i <= 5; i++) cout << i << " … | |
hi! can someone help debug my codes? getline() works properly in my main() but if i'm putting it to another function, it ignores the first getline() w/o entering any words and goes to the 2nd getline. my program works like this: i have a menu() that lets the user to … | |
Here is the link to download my database with sample data (Management Inventory): [url]http://www.mediafire.com/?9o5ycrqot2risa8[/url] I am making a query to access redundant or missing quatity of material. [B]Report[/B] MatId CusMatName TDK NTK XTK ... . . . . . . . . with: TDK: [CODE]select detail.MatId as ID_Nhap, SUM(Quantity) as … | |
Hello, I am currently doing an assignment where I have to read numbers from a .txt document into an array and later find the average of different lines of the .txt document sort them and what not. I'm not even close to the ladder parts of this assignment and I … | |
get error cannot find table although database already in correct path!. I also already put [B]SQLite.Interop.dll[/B] on my project file | |
I have to create a simulation to repeatedly play the Monty Hall game. I've created a class. This is what I have so far. I have created the buttons, activated them, deactivated the stay and quit buttons. I have a button class that is used to activate and deactivate buttons … | |
Hello, I have a php variable $birthday, I am showing it's value like this: [icode] <div id= "dob" class="pick_number">Day of Birth: <?php echo $birthday ?></div> <div id="test"></div> // value should be printed back in here. [/icode] I need to pass the value of $birthday via ajax, I had the following … | |
[CODE]using System; using System.Collections.Generic; using System.Text; class BaseClass { public virtual void method() { Console.WriteLine("BaseClass method"); } } class SubClass : BaseClass { public override void method() { Console.WriteLine("SubClass method"); } public void someMethod() { Console.WriteLine(); } static void Main(string[] args) { BaseClass var = new SubClass(); var.method(); var.someMethod(); } … | |
I am trying to write a few very dynamic procedures and functions and wonder about transferring parameters to a procedure as an Array. This is actually easy enough done.... just that I would like to pass something like [CODE] VAR a,b,c : INTEGER; Name, Text1,Text2 : STRING; todaysDate : TDate; … | |
I wrote this program and am trying to simplifying by creating a character array. How can this be done please? I found some help here [URL="http://www.java2s.com/Code/C/Data-Type/Forloopachararrayusingpointer.htm"]http://www.java2s.com/Code/C/Data-Type/Forloopachararrayusingpointer.htm[/URL] but couldn't really implement that in my program. [CODE] //inputs five strings representing integers, converts the strings to //integers, sums the values and prints … | |
ok so in my program i'm supposed to read data from a text file and store it in arrays then make calculations from my array. so there will be three functions for the program 1 will be the readfile() which will read the file the other will be calculatedata() which … | |
![]() | Hi guys i am trying to write a program that uses two classes, Board and Game, to run the Game Of Life. Currently my output is in the console, as a GUI is going to take too long. I am having some trouble writing my nextGeneration method in the Game … ![]() |
give me reasons why JVM is platform dependent? i dont find convincing answers. The ultimate aim of a compiler is to make codes that are to be understood by native machine processor ? if this is the case why there is an interference of operating system(platform)? ![]() | |
I am trying to filter a 2nd Combobox based on the selected value of the 1st Comboxbox. For example, when the user choses "BMW" from the cbxmanufacturer control, I need the cbxModel control to display all models associated to "BMW". I am almost there but I get an error "Cannot … |
The End.