199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for apanimesh061

1.[CODE]int _tmain(int argc, _TCHAR* argv[])[/CODE] 2.[CODE]wprintf(L" ----------\n");[/CODE] This is syntax that I get when I make any Win32 Console Application in Visual C++. I cannot understand what are _tmain(), argc, _TCHAR* argv[]. Till now I have been dealing with void main() and int main(). I also want to know what …

Member Avatar for Narue
0
193
Member Avatar for vedro-compota

Hello, athletes and champions ! )) Please tell me - what's wrong here - [CODE] public class LinkedSet<T> : ISet<T> { public LinkedListElement<T> Root; public LinkedListElement<T> Focus; public class LinkedListElement[B][U]<[COLOR="Red"]T[/COLOR]>[/U][/B] { public LinkedListElement(T value) { this.Value = value; } public T Value; public LinkedListElement<T> NextElement; public LinkedListElement<T> PreviousElement; } } …

Member Avatar for vedro-compota
0
759
Member Avatar for Howdydoody

I have this program and im trying to get the addVertex method to access the list within the class and return the object "Vertex" whenever i use the brackets. Everything works fine but i cant modify the structure now when i use the brackets. I get an error dealing with …

Member Avatar for Howdydoody
0
108
Member Avatar for umeshMCA

hi i am a new user of webdevelopment. i work with php mysql and load site about 8 months ago i face a problem that google not search my sites. how i overcome from this problem. as i search on google how to do its but not working. please sugeest …

Member Avatar for diafol
0
167
Member Avatar for TeddyBear2155

Need to create a function Hands‐On Assignment 6‐4 with modifications: Identifying the day of the week for the order date The day of the week that baskets are created is quite often analyzed to determine consumer shopping patterns. Create a function named DAY_ORD_SF that accepts an order date and returns …

Member Avatar for pratik_garg
0
848
Member Avatar for lochnessmonster

I dont understand how the C/C++ language is portable? 1.) What makes a program compilable on 2 different O/S's? 2.) Doesn't this depend on the O/S manufacturer? How does Microsoft do this? 3.) What determines wether a language is portable or will only work on one operating system?

Member Avatar for JasonHippy
0
497
Member Avatar for maybnxtseasn

Is there ANY EVER reason why i would return an object or variable by reference? to me this doesn't make sense and is very bad.

Member Avatar for Narue
0
160
Member Avatar for ivan3510

Hi! I have a page and it's on 000webhost.com. But they don't allowed to add upload script. So, I thought, is it possible to make a php script that will upload file to one other server (this other server doesn't have installed php). Is this possible? If so, how? Thanks …

Member Avatar for ivan3510
0
102
Member Avatar for karthik_ppts
Member Avatar for EmilyJohnson
0
158
Member Avatar for maybnxtseasn

i have a question where i should place #includes in a file? Here is what i tend to have example.h #include <iostream> #include <string> example.cpp #include <iostream> #include "example.h" ------------------------------------------------ Is This what i want? example.h #include <iostream> #include <string> example.cpp #include "example.h" What should i strive to achieve? 1.) …

Member Avatar for Narue
0
112
Member Avatar for hannon565

This is old college assignment am doing to sharpen my sql skills, its cat test centre and this funtion is checking if the mechanic is available on certain date which is input from user in the anonymous block. the problem i m having durning testing is that the function result …

Member Avatar for pratik_garg
0
193
Member Avatar for vanpersie

Hi I have a gridview that based on a table of 18 column which makes the web page of too large width. how to make a gridview in a more acceptable to final user in shape? or is there a better control of the same proprties

Member Avatar for pinkygirl
0
106
Member Avatar for aaraf

hi I want to set an authentication in two different computers if the master is logedin then the slave authentication can login else the slave authentication on the other computer in a network can not enter to the authentication page. [B]I can not use database to store the authentication as …

Member Avatar for diafol
0
89
Member Avatar for umeshMCA

hi i would like to do like this +2007 +2008 -2009 +BCA-I +BCA-II -BCA-III Advance Web PRogramming.pdf JAVA.pdf OB.pdf +PGDCA +M.Sc. +2010 like this code i want as when user click on + then open like 2009 example and open classes like BCA etc. and after click on bca than …

Member Avatar for diafol
0
293
Member Avatar for jeff4L

I'm suppose to translate a virtual address to a physical address with the use of a fully-associative page table. It compiles but it won't run. Can anyone help me and point out the errors :P THANK YOU! [CODE]# include<stdio.h> # include<stdlib.h> /* Declare global vars */ int ms; int ps; …

Member Avatar for abhimanipal
0
246
Member Avatar for MSoft

What are the drawing functions in Java If possible explanation of these functions:icon_rolleyes:

Member Avatar for cretaros
0
98
Member Avatar for clickspiker23

I am having trouble on figureing out on how to return more than one value for x and Y. I know you can only have one return statement but i need to return a value for x and y. I am a little lost on how to do this. This …

Member Avatar for JasonHippy
0
140
Member Avatar for sachintha81

I want to add a custom configuration section to my App.Config file in my C# 2010 project. I want the section to look like the following. [CODE]<DmModules> <Module Name="Module1"> <add key="DbType" value="..."> <add key="ConnType" value="..."> </Module> <Module Name="Module2"> <add key="DbType" value="..."> <add key="ConnType" value="..."> </Module> </DmModules>[/CODE] Of course there can …

Member Avatar for sachintha81
0
319
Member Avatar for novice20

Hi all, Is there any way to do forward referencing or function prototyping in python..? Being an interpreted language, is lack of forward referencing a drawback of python?

Member Avatar for novice20
0
4K
Member Avatar for fidolas7

1.<?php 2.session_start(); 3.$con = mysql_connect("localhost","root","") or die(mysql_error()); 4.$db = mysql_select_db("registration", $con)or die(mysql_error()); 5.function mss($value){ 6. return mysql_real_escape_string(trim(strip_tags($value))); 7.} 8.function s($value){ 9. return stripslashes($value); 10.} 11.function topic($input){ 12. return nl2br(strip_tags(stripslashes(htmlentities(htmlspecialchars($input))))); 13.} 14.if($_SESSION['uid']){ 15.if(mysql_query("UPDATE signup SET gender='".$_POST['gender']."',status='".$_POST['status']."',date='".$date."',option='".$_POST['option']."',religion='".$_POST['religion']."',description='".$_POST['description']."',political='".$_POST['political']."',location='".$_POST['location']."',home='".$_POST['home']."',other='".$_POST['other']."' WHERE id='."$_SESSION['uid']."'")){ 16.echo"<p>updated successfull</p>"; 17.} 18.} 19.else { 20. if (!$_SESSION["uid"]){ 21. header("Location:unregistered.php"); 22. exit(); …

Member Avatar for tomato.pgn
0
133
Member Avatar for rithish

consider a instance jtextfield t=new jtextfield(); jtextfield t1=new jtextfield(); jtextfield t2=new jtextfield(); i want to get the values of textfield t and t1 and display in t2 like i want to add values of t and t1 and store in t2

Member Avatar for JamesCherrill
0
161
Member Avatar for e-papa

I've tried to make a program that will sort the results of a competition, by asking the user the number of competitors, then the name and score of each one. It worked but now i have to make it recognize when two or more people get the same score (that …

Member Avatar for e-papa
0
221
Member Avatar for Insensus

Hello there forum, After a pretty thorough C++ course I've tried my hands at coding an actual project but have stumbled on a pretty big problem and here I am asking for your help. What I'm trying to make right now is a class which communicates with a gameserver through …

Member Avatar for Insensus
0
150
Member Avatar for thetwig

Hey guys, I have an integer validation problem.. i wanna validate integers for fractions where the numerator must be 0 <= num <= 20, and the denominator must be 1<= den <= 20.. and later on i want to multiply them together and simplify, but only the validation has a …

Member Avatar for BarSed
0
158
Member Avatar for lynnajoe

Hi, I have checked examples and tutorials but never seem to get a direct answer to a couple of questions. When using a Gui with a JButton (Netbeans)where does the code for the array go in order to be displayed? Here is the code for the array and I just …

Member Avatar for JamesCherrill
0
97
Member Avatar for KazenoZ

Hello, I've been looking into implementing a simple networking option to a program I'm working on, and have looked around at what my options are. The program is made in Managed C++(.NET), and so far have worked great. Browsing my options, I've found that .NET is also capable of networking, …

Member Avatar for KazenoZ
0
224
Member Avatar for yongj

I'm trying to create a C console program that produces a directory listing (one filename per line) of all files matching a specified filename pattern. I'm kind of clueless as to where to start and was wondering if someone could give me a boost? I'm mainly a C++ coder but …

Member Avatar for Ancient Dragon
0
164
Member Avatar for ivan3510

I saw one page where image was loading. First, there was something like this image (in this text: first image): [URL="http://www.lutrijabih.ba/images/loading.gif"]click[/URL]. And then, when image (real) loaded, it replace first image. Do you maybe know how to do that? (I don't remember the URL of this page.). Thanks!

Member Avatar for ivan3510
0
98
Member Avatar for akki_k

I want to create a file by entering its name at runtime through command line argument..But i am not getting any idea about how to do that?? Please provide some help.. THANKS

Member Avatar for JamesCherrill
0
114
Member Avatar for lochnessmonster

log.h [CODE] namespace stuff { class log { .......... friend std::wostream& operator<<( std::wostream& oss, const log& error ); }; } [/CODE] log.cpp [CODE]std::wostream& stuff::operator<<( std::wostream& oss, const stuff::log& error ) { oss << log.m_message; // log.m_message is a std::wstring return oss; } [/CODE] 1>c:\users\oso\documents\visual studio 2010\projects\moduleinjector\moduleinjector\cdllinjection.cpp(147): error C2679: binary '<<' …

Member Avatar for NicAx64
0
133
Member Avatar for cmabill

This contact.php will process the data and send it to my email. I want to achieve this effect, when user submit the form correctly, it will display a alert, and then redirect the page to : thankyou.html. When there is some error, it will display another alert, and then redirect …

Member Avatar for cmabill
0
278
Member Avatar for severman

Hi all I really need your help! i'm trying to debug my application for anroid on my cell phone(HTC DHD) it worked fine, but now i'm getting this error: Adb connection Error:An existing connection was forcibly closed by the remote host i've tried everything, including adb kill-server, adb start-server. also …

Member Avatar for severman
0
132
Member Avatar for sneha mehta

I have made two programs in servlet....one for setting attribute and another for getting that attribute.... Here are those programs... /* For Setting Attribute */ [code=Java]import javax.servlet.*; import java.io.*; public class SettingCntx extends GenericServlet { ServletContext ctx; public void init(ServletConfig cfig) { /*Obtain the ServletContext object*/ ctx = cfig.getServletContext(); } …

Member Avatar for sneha mehta
0
99
Member Avatar for smrati.katiyar

i have written a class to add matrices ,line 51 of the code has problem. debugger is showing segmentation fault there . please suggest the correction. [CODE] #include <iostream> using namespace std; class mat { int row; int column; double **a; public: mat(){} mat(int r,int c) { row = r; …

Member Avatar for smrati.katiyar
0
122
Member Avatar for scarcella

Hey guys, I am wanting to find to see if a variable is in the array: Here is my code: [CODE] $domainlist = array(".com.au",".com",".co.nz",".net.au",".net",".net.nz",".org.au",".org",".org.nz"); $serverlist = array( ".co.nz=whois.srs.net.nz|220 Available", ".com=whois.crsnic.net|No match for", ".net=whois.crsnic.net|No match for", ".org=whois.publicinterestregistry.net|NOT FOUND", ".com.au=whois.aunic.net|No Data Found", ".net.au=whois.aunic.net|No Data Found", ".org.au=whois.aunic.net|No Data Found", ); foreach ($serverlist as …

Member Avatar for scarcella
0
158
Member Avatar for vukidrock

Hi there This is my problem: - Upload image (not important) - Store its in [filename].php - Show [filename].php like image.jpg in show.php (gallery) Can you solve? Thank you so much

Member Avatar for vukidrock
0
122
Member Avatar for akki_k

import java.lang.reflect.*; import java.awt.*; import java.lang.*; class SampleField { public static void getField(Class c) { //Class c= Class.forName(s); Field f[]=c.getFields(); for(int i=0;i<f.length;i++) { System.out.println(" "); Class type=f[i].getType(); System.out.print(type.getName()); System.out.print(""+f[i].getName()); } } public static void main(String... s1) { try{ Class c= Class.forName(s1[0]); getField(c); }catch(Exception e){System.out.println(e);} } } I have written the …

0
65
Member Avatar for vedro-compota

hi there!) mates, I had a class - something like that - [CODE]public class asd() { public int filed; }[/CODE] please tell me - what is the difference between next two ways of memory allocation (as I undestand they both can be compiled...) - 1) [CODE] static void Main() { …

Member Avatar for vedro-compota
0
96
Member Avatar for monta2020

i have a hyperlink that when i click then will show me an output of listed names. i want to have this list arranged from A to Z in . thanks. um using PHP.

Member Avatar for tomato.pgn
0
301
Member Avatar for Danny_501

Hi all, I have a html page with html form input boxes in it. What I want to do is validate these input boxes with javascript. I have a span element(error message) next to the text boxes which will only be visible when the user submits the form without entering …

Member Avatar for Danny_501
0
102
Member Avatar for backalley

i've been attempting to execute this code , all i got was an error. [CODE]<?php $connect = mysql_connect("localhost","root","") or die ("connection failed!"); mysql_select_db("users") or die (mysql_error()); echo "connected!" $extract = mysql_query("select * from member order by id ASC") or die mysql_error(); ?>[/CODE] and this error appeared : [ICODE]Parse error: syntax …

Member Avatar for tomato.pgn
0
176
Member Avatar for oliviars22

I need to read data from a file into an array of structs. The info is arranged in the file like so... Spear of Extreme Whaling January 1851 Captain Ahab Each member of the array has a name, month, year, and first and last name of creator. This is the …

Member Avatar for thelamb
0
259
Member Avatar for chester1908

Hello all. I seriously need some help with eclipse for C installation because i haven't got this stuck and angry since 10 years ago when i was a kid and got my first pc,and couldn't install audio drivers :P. Okay,lets get to the point.Here are the issues: I used to …

Member Avatar for yashsaxena
0
203
Member Avatar for shawn130c

Hello, I need help saving data into an access 2007 database from a program created in vb 2008. I am making a basic "game" that allows you to move a "robot" up,down,left, right and will save the movements/positions into an access 2007 database. I already have the basic movement created …

Member Avatar for shawn130c
0
230
Member Avatar for erza26

can somebody check my code...i really don't know what's the problem is... <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css"> <!-- body { margin-top: 50mm; } --> </style> <script src="gen_validatorv4.js" type="text/javascript"></script> <script type="text/javascript"> function upperCase() { var x=document.getElementById("specification").value; document.getElementById("specification").value=x.toUpperCase(); …

Member Avatar for erza26
0
135
Member Avatar for ghost_from_sa

Hi guys, Im pretty dam stuck at the moment on an assignment Im meant to do. Its my last question so everything is pretty laid out, but the question (to me is not useful) so if you could just help me out it'd be much appreciated Ok so what i …

Member Avatar for ghost_from_sa
0
978
Member Avatar for dyingatmidnight

Hello, I'm building a database using SQL and PHP and I've started on the user interface first rather than the database queries and everything - a little backwards perhaps. I have a login button that disappears for some reason when I add in a function for my search button. Here's …

Member Avatar for KadajXII
0
226
Member Avatar for msqueen082

Hello In my code I am trying to come up with the following messages using a try/catch Unhandled exception has occurred in your application. If you click continue, the application will ignore this error adn attemp to continue. If you click Quit, the application will close immediately. conversion from string …

Member Avatar for msqueen082
0
160
Member Avatar for adot76

I cannot figure out number 3 and 4. Median and standard deviation. I think i am close but not getting the right answer. Any ideas? Thanks. /* 37 April 2011 Assingment: Project 2 I revision 1,2,5,6,7 and comments and formatinng done.. need 3,4 Description: Implement a menu system managing an …

Member Avatar for abhimanipal
0
984
Member Avatar for Amr87
0
59

The End.