199,114 Archived Topics
Remove Filter ![]() | |
If the main() takes 3 arguments i.e. int argc,char * argv[],char *env[] and SINCE C DOES NOT SUPPORT FUNCTION OVERLOADING ,y does the c compiler does not give error for simply void main() //that is no arguments at all OR void main(int argc,char *argv[]) //2 arguments | |
Hi everyone. I'm facing a tricky problem with keyboard hooks in visual c++ (MFC). I have two global keyboard hooks set in my application and everything works smoothly when windows explorer is running. But my application needs to run without windows explorer (in kiosk mode), so i replace explorer.exe with … | |
Hello guys, this is my first jsp thread ever so excuse me if it's a bit retarded, anyways, me and my mate are creating a webpage in .jsp , a project in IntellaJ 10.0 and we've been using apache tomcat to view the progress of the webpage but now it … | |
I have the database movies (movie_id INT, actor VARCHAR(80)) and i want to answer to this question ’Six degrees of separation’: Given two actor names, determine their ’degree of separation’, defined as 1 follows: Two actors ’A’ and ’B’ are 1-degree away if they played in at least one movie … | |
Hello. How can I protect my application against Memory Editors? Like, Cheat Engine, Debuggers, etc. ![]() | |
Can any one please tell me how to display the result in notepad For Example My code : import urllib a = urllib.urlopen("https://www.google.com") Source = a.read() a.close() print Source raw_input("*************Press Enter to Exit****************"); i have to display the result of it in a note pad. | |
Hello everyone. I've been trying to implement a linked list in C++. I found this implementation on the web, where they created a struct for the list's nodes. When trying to add a new node to the list, I get this error: [B]List.C: In member function `bool Linked::addNode(Point)': List.C:23: error: … | |
hello people i am new to oop , well , i am good in the normal php but i started oop today and now i am getting too many errors . check the class_lib.php bellow , it has my classes and mainly the database connectors .: [CODE] <?php class db … ![]() | |
Hi everyone! :) Can somebody pls help me out here. Im still a noob at programming. Im creating this program in vb.net which is supposed to be used on a lan, say we have PC 1, PC 2 and PC 3. The thing is, after the user selects which pc … | |
Dear all, I need your help on tis programming assignment I have. I need to save all the atrributes information to a signle file. I need to have 2 options : Save to a default name backup.bak and to a users filename choice. I have found this code in an … | |
Code given below, suppose to give hourly pay * number of hours + if hours greator then 37 then calculate rest with given rate (overtime) and display final result but its just multiplying pay rate hourly with pay rate for overtime hourly and i made it in VS 2010 windows … | |
I am new to php (sorry). I cannot figure out how to make 'field_4' below display as a click-able URL. It is stored in my mysql db in a varchar field. Any help would be great, thanks. [CODE] $result = mysql_query("SELECT * FROM units ORDER BY `field_1`, `field_2`"); echo "<table … | |
hi! im a newbie and i want to learn more on C i have a problem and i have no idea on how to add a 5 digit number example: input is 12345 and the output of 12345 is 15. please help on this one. | |
hi guys, i already have and can make a autocomplete form using jquery plugin..it works fine..but the problem now is, i want the data to be stored in the database now, and not only in a javascript file..is it possible>? could you help me? here is my code.. [CODE] <script … | |
Hi everybody, I really need that code, I have a text file 32 4 12 13 4 12 0 0 0 0 0 3 2 3 4 and I want to convert it vector or array like A[2]={32,4} B[4]={12,13,4,12} C[9]={0,0,0,0,0,3,2,3,4} The size of the vector or array can be changed … | |
Hello out there. I had a professor who had a login section for his course website that allowed the student to enter a unique id# and submit to get there course grade. Now that professor is no longer here but I know the page was of type .asp. Now I … | |
Hello community im new! I am really rusty at C# but i do not want to learn the basics all over again so i hit the ground running and ran into a hurdle. I want to use an xml file for a database. Its a car repair tracking system i … | |
Hello, I am trying to do the student evaluation and stuck in this problem. Each student evaluates himself and all his friends in the same class. I have a sample table below. On the query, I tried to join the table to itself to get a new column calls "StudentID-Change" … | |
hi I need to this program I didn't understand this program and I couldn't anywhere someone is help me A Salesperson at a company receives a set salary each month plus commission based on the number of products sold during the month Create a Payroll Program that can do the … | |
Hi. I have this code but I want it to store the same data and function using objects. However, I would like to also know how to get information from the objects in an ArrayList. Currently the information is stored directly without the using of objects. I also want to … | |
Hi guys, can some one help to see what is problem with below code. I am newbie to C#: Thanks ================================================================================= [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lesson4Inheritance2 { class Student { public static void Main(string[] args) { private int registrationNumber; private string name; private DateTime … | |
Hi guys.. I am very new to PHP and generally in Web development. I'm trying to develop a big project and i was wondering if anyone of you can help me according to what tools should i use. At the beginning i thought Asp.net would be appropriate but after reading … | |
Can anyone please give me an example of passing information FROM java to PHP and vise versa. | |
I am trying to create a simple recursive prime number function. I am not sure why this is not working. I originally was using remainder division but changed it to integer division. **** if n ==0: # This runs infinitely, The recursive call does not seem to roll down. Output … | |
Hi, here is a simple puzzle to which I have made a program, A C program to take bondectory name as command line argument and print last 3 directories and 3 my_files in all subdirectories without using api 'system' inside it. suppose directory bond0 contains bond1, di2, bond3, bond4, bond5 … | |
Hi, I'm fighting with [B]make[/B] for hours and I rly don't know where is my problem. I need to have a static lib libxml.a and an application (make.c) which uses it. I tried to compile it under GCC 4.4.5 and 4.5.0 and the compilation run fine. But under GCC 4.3.2 … | |
So a child form calls it's Show() method, and i need it to close it but be available for reuse and i need the controls to be in the same state they were before it was closed. I was using the Close() method but when i try to reuse one … | |
Hi How is it possible to write Ajax code using var timerId = setTimeout("test_function();", 250); and xmlhttp.onreadystatechange=function() but without the user doing anything. Thanks in advance, Lawrence | |
look at the code first, [CODE]<?php $name=$_POST['name']; ?> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"> <input type="submit" value="GO" name="submit"> </form> <?php include ('db.php'); if(isset($_POST['submit'])) { mysql_query ("INSERT INTO example (name) VALUES('$name')") or die(mysql_error()); } if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { $startrow = (int)$_GET['startrow']; … ![]() | |
Hi all, I am trying to apply Hamming window on my lengthy sound data soundSample[1000] with window length 100. Then proceed with FFT. And i found that java does have the package for Hamming window and FFT. As below, [url]http://code.compartmental.net/minim/javadoc/ddf/minim/analysis/FFT.html[/url] [url]http://marf.sourceforge.net/api/marf/math/Algorithms.Hamming.html[/url] But i hardly find an example that illustrate how … | |
i cannot find any information on this topic, but im curious as to the point in chaining hardware breakpoints and how it can be done! any information is greatly appreciated! -thx | |
[CODE]import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class getname extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); } public void destroy() { } public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { String name = null; PrintWriter out = response.getWriter(); if(request.getParameter("txtname") != null) … | |
Hi, I have two forms, Form1 with a datagridview and Form2 that is meant to add a new record to the linked database in access. How can i get the datagrid on Form1 to refresh as soon as this is created? (created once 'Add' button is clicked). Thanks | |
I am working on this exercise: Write an application that asks its user to type a complete sentence on one line. The application then displays in the console window the words in the sentence, one word per line, less any punctuation. I have the following code: [CODE] import javax.swing.*; import … | |
Hello everyone, I'm having some trouble converting from cell values in excel to datetime in sql queries. BTW I'm using AdvantageDatabase and Excel 2010 Let's say I have a cell value D4 "12/12/2010" Inside Microsoft query I have the following: SELECT * FROM mytable WHERE mytable.Firstdate =? Microsoft Query then … | |
I'm working on a python code to solve a PDE (Partial Differential Equation) backward in time (i.e. from t = T to t = 0.0). The code is made up of two functions: the first function ([COLOR="Red"]def Solve_for_U_values_at_Time_T()[/COLOR]) solves a PDE (PDE1) forward in time, and returns an array of … | |
Allright dudes ,listen up .. i am programming C++ about 2 days now , so i am not into it , in any way , so the problem is that the preproceccor macro #define should trigger the constructor , but the problem is that i got that annoying compiler error … | |
Hi.. I want to get the memory addresses of an array.i'm having a compilation error with this code. [CODE] #include<stdio.h> #include<stdlib.h> #include<unistd.h> int isu[1000]; void dhanu(void *(isu+996), void *(isu+995)); int main(){ *(isu+998)=isu; *(isu+997)=(isu+10); printf("%d\n",*(isu+998)); printf("%d\n",isu); dhanu((isu+998),(isu+997)); } void dhanu(void *(isu+996), void *(isu+995)){ printf("%d \n",(int *)(isu+996)); printf("%d \n",(int *)(isu+995)); [/CODE] error … | |
Hi everyone. I know how to make a calculator, with basics and a little more complex functions, that's not my problem. My problem relies in that, the only way I can make a calculator is by 2 terms at a time, i.e: I can't make this operation (12 + 21 … | |
Hi, I've decided to make a hangman game. I made this in Python last year, however I'm a little bit stick in Java, since I'm quite new to as well as Swing. Anyway, the problem I'm having is that my while loop keeps terminating if I enter 1 incorrect letter, … | |
can l plz ask you something ... l hav a database with 4 tables i.e User(fname, lname,email and userid ------primary key{userid} ) Exam( examid, examname-------primary Key{userid}) Exam_user(examid, userid------primary key{examid}) Exam_category(categoryid, categoryname----prmary key{categoryid}) HOW CAN YOU WRITE AN SQL QUERY THAT ALLOWS U TO CREATE/retrieve A NEW TABLE WITH FIELDS;;;; (fname, … | |
I need to calculate the network bandwidth in LAN. But i don't have any idea about it .Help me how to calculate it. Thanks in advance. | |
please help me,, i have made a submit button in my contact us form,, but the problem is that when i have put echo "Successfuly sent"; it is aligned on the left , and it doesnt look good as a design how i can add inside echo string something like … | |
hi guys! i've a mapped image and jquery in the following code, works fine with Chrome and Safari, but Firefox doesn't recognize the onclick function and I'm wondering why! [CODE]<img id="menu" src="/imgs/home/menuOK.png" border="0" align="left" usemap="Map_Menu"/> <map name="Map_Menu" id="Map"> <area shape="poly" coords="16,189,103,155,99,149,5,169" href="#" onclick="$('#contenuto').html('<iframe src=bio.php frameborder=no width=100% height=100% scrolling=no id=icontent><p>Your browser … | |
in vb.net to store this query in dataset ..In Sql query I have a Employee Id M 1 M 31 M 41 M 58 M 6 M 60 M 67 S 10 S 118 S 133 S 143 S 151 S 155 S 157 S 158 S 25 S 28 … | |
can l plz ask you something ... l hav a database with 4 tables i.e User(fname, lname,email and userid ------primary key{userid} ) Exam( examid, examname-------primary Key{userid}) Exam_user(examid, userid------primary key{examid}) Exam_category(categoryid, categoryname----prmary key{categoryid}) HOW CAN YOU WRITE AN SQL QUERY THAT ALLOWS U TO CREATE/retrieve A NEW TABLE WITH FIELDS;;;; (fname, … | |
I have an xhtml document that contains many lines that look like: <div style="position:absolute;top:224;left:108">The line was longer than we expected</div> For my first trick I need to be able to match or select this node and others like it, where like it means that it is a div tag with … | |
I searched on Google for hours and couldn't find anything useful. Thank you for any reply. | |
We have been working to solve the issue early in the morning. This is a sample code to clearly show the situation. There are also more than 100 tables are waiting to get their records to calculate the results . Any idea ? conn.h #include "stdafx.h" static double global ; … |
The End.