199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for group256

Hi everyone, I have the implementation for a linked-list based Stack. I believe the entire code is correct, but only the way I call the push and pop function mighe be wrong. Any idea how they should be called? Mine returns garbage: #include <iostream> using namespace std; typedef struct Elements …

Member Avatar for deceptikon
0
285
Member Avatar for nah094020

I cant figure why my program is not running it compiles with no errors but doesnt run, am bearly starting to learn c , am more proefficient in java but its wierd changing, i use vi to write my code. heres a snipet #include <stdio.h> #include <stdlib.h> #include <time.h> #include …

Member Avatar for Ancient Dragon
0
157
Member Avatar for shah.harsh.m

I am a novice in programming. I have a project where I have to get data from a website (I ll be posting the website below). But it happens that I first have to select a date and press a 'Go' button and then click on another Button/Link 'View in …

Member Avatar for shah.harsh.m
0
275
Member Avatar for ConfusedLearner

I created a program that will find the biggest number when give 3 different numbers. But when I want to change the program to find the biggest number when you enter 4 integer number I continue to run into problems. I can get it to find the biggest number when …

Member Avatar for Ancient Dragon
0
133
Member Avatar for sumitrapaul123

Hi, I have a class which implements dispose patteren. Please see the sample code below. public class MyClass : IDisposable { private readonly IBanking mybanking; public MyClass(IBanking banking) { if (banking == null) { throw new ArgumentNullException("banking"); } mybanking = banking; } ~MyClass() { Dispose(false); } #region IDisposable Members public …

Member Avatar for deceptikon
0
128
Member Avatar for Labdabeta

Hello, I was partaking in the global game jam (where you have to try to make a game in 48 hours). I got my game pseudo-finished, but I cannot get it to render the scene properly. Here is the code related to the rendering: Code for opengl initialization: glClearColor(0.5f,0.5f,0.5f,1.0f); float …

Member Avatar for Ketsuekiame
0
271
Member Avatar for kingkong142

Hi, I am having error in following code, <!-- START --> <p class="date-head"> <?php $sql_online_mem = "SELECT membername FROM ` trade_messengerd` WHERE status = 'Online'"; $db_sql_mem = mysql_query($sql_online_mem); while($online_mem = mysql_fetch_array($db_sql_mem)){ $members_online[] = $online_mem['membername']; } for($o=0; $o<count($members_online); $o++){ if($members_online[$o] == $uid){ $mem_online = "Online"; } } ?> <a href="#" onClick="window.open('<?=$domain_url?>/messenger/members/_login.php','login','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=368,height=600,left=380,top=60');return …

Member Avatar for kingkong142
0
220
Member Avatar for tunisia

I'm trying to expedite the process of manually opening up an XML file and searching for some info in it. I want to store some of the data, etc. Nothing elaborate. But I'm not clear on some of the file structure. For the seasoned XML data wrangler, can you instantly …

Member Avatar for tunisia
0
460
Member Avatar for McLaren

Is it posible to preload video for the user but so that he would not be able to see it? I mean I want to preload video - its for a gaming. And then when the time comes to play the video, send some key to decrypt and he could …

Member Avatar for McLaren
0
143
Member Avatar for eiramana06

Doe anyone here know the ascii code for the enter(newline)?? im not looking for the '\n' answer.. thanks..:)

Member Avatar for diafol
0
2K
Member Avatar for anony

Hello I am trying to load a select option depending on the value selected on another select option <select id="state" onchange="SelectValue();"> <option value="State1">State1</option> <option value="State2">State2</option> <option value="State3">State3</option> </select> <select id="district"></select> <script type="text/javascript"> function SelectValue() { var e = document.getElementById("mfr"); var Val = e.options[e.selectedIndex].value; } </script> I want to call this …

Member Avatar for AARTI SHRIVAS
0
148
Member Avatar for BobFX

Hi, The Windows API function to select a directory is really bad, so I'm trying to use GetOpenFileName() instead. For that, the idea is to set a hook function, so that when the user hits the OK button without having actually selected a file, the hook function retrieves the currently …

Member Avatar for BobFX
0
3K
Member Avatar for VEL Hassan

I am in need of SDK ME development kit for creating Mobile applications using Netbeans IDE 7.1.1. Favour me in this regard. Velhassan.

Member Avatar for peter_budo
0
212
Member Avatar for chira.laura.9

If I have relation schema R(A, B, C, D, E) with functional dependencies: AB->C, CD->E, C->A, E->D: a)find all the (minimal) keys for R b)state the normal form for R and describe functional dependencies that violate higher NF c)decompose R into 2 (or more) relations that are in highest possible …

Member Avatar for peter_budo
0
97
Member Avatar for bikashjit

java and j2me are same or what ? Can I make j2me app. After learning java ? If yes Suggest some good free website to learn java which gives complete a2z course ?

Member Avatar for peter_budo
0
181
Member Avatar for adishardis

I'm trying to get an xml file from an ftp and then insert select data into mysql db. I'm shooting in the dark but from googling this is what i've tried so far: $curl = curl_init(); $file = fopen("import.xml", 'w'); curl_setopt($curl, CURLOPT_URL, "ftp://company@company.company.se/company/import.xml"); #input curl_setopt($curl, CURLOPT_FILE, $file); #output curl_setopt($curl, CURLOPT_USERPWD, …

Member Avatar for adishardis
0
484
Member Avatar for adishardis

Hi, I, getting a new xml file everyday to one of our external ftp servers. I want to get that file and then insert select data into my mysql. What I'm thinking is that I would use curl to get the file, then simplexml and then insert into database. But …

Member Avatar for adishardis
0
220
Member Avatar for mcogliandro

I have this script that I thougth only deleted stuff more than 90 days old but after I ran it, it deleted pretty much everything on my backup drive. Thankfuly I have another backup drive so I did not lose my backup but I need to fix this so it …

Member Avatar for rch1231
0
158
Member Avatar for code_rum

Hi, Below is my ajax code along with html and php code. I am getting an error "title is not defined".. Ajax ------ function callAjax() { $.ajax ({ type: "POST", url: "get.php", data: "title=" + title, success: function(msg) { alert(msg); }, error: function(msg){ alert(msg); }, }); } HTML ------ <form …

Member Avatar for radhakrishna.p
0
406
Member Avatar for suren3

How to store the elements and display?? struct A{ int level; char name[20]; struct b *a_b; }*d[3]; struct b { char name[20]; struct b *next; };

Member Avatar for akashgupta1990
0
155
Member Avatar for Bachu

Hai; How can I rewrite user profile page url like `http://website.com/firstnamesecondname-id` in wordpress ? Please help me.

Member Avatar for Bachu
0
111
Member Avatar for VictorK19

Here's the assignment requirement: > Write a program that creates a series of one or more loan amortization schedules. The program should query the user for an input file name and an output file name. The input file will contain the number of schedules that need to be generated as …

Member Avatar for bguild
0
272
Member Avatar for adikimicky

hello everyone.. I am trying to connect a simple application to Oracle XE database. But when I run this program , the else part of program is running. Can Anyone tell whether I hav ewritten the code correct or not. import java.sql.*; public class jbc { public static void main(String …

Member Avatar for radhakrishna.p
0
283
Member Avatar for 浩霖

I would like to create a font file (like .ttfv or etc) by using java, how can I do it. If java cannot create or edit font file, could you tell me which program language can do it? I would like do it by programming without exists software. I really …

Member Avatar for april88t
0
171
Member Avatar for Oracle1986

My project is to create controls inside a class library and then display them in another application. I already added the class library to my reference inside the application and added System.Windows.Forms to my class library. Here is the code in the class library: using System.ComponentModel; using System.Data; using System.Drawing; …

Member Avatar for Oracle1986
0
187
Member Avatar for pucivogel

<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("agenda") or die(mysql_error()); $q = mysql_query("INSERT INTO kontakte (emri, mbiemri,e-mail,nr,adresa,shenime) VALUES( '{$_POST['emri']}' '{$_POST['mbiemri']}', '{$_POST['e-mail']}', '{$_POST['nr']}', '{$_POST['adresa']}', '{$_POST['shenime']}') "); if (!$q) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } ?> <html> <head></head> <body> <div …

Member Avatar for urtrivedi
0
141
Member Avatar for lewashby

In the following program how or the two while statements working, `while(szTarget[targetIndex])` & `while(szTarget[targetIndex])` since the their first element is initialized to zero? Zero is false and one is true so how are they getting even one iteration? The book I'M reading also made a point of saying this: "It …

Member Avatar for vmanes
0
77
Member Avatar for ckjaseem

Hi all , I have googled for an answer for this question but most of them are so complicated. Can anyone suggest a simple article on this topic or show me step by step how to solve this. I want to upload an image to a folder and show this …

Member Avatar for LastMitch
0
665
Member Avatar for Buppy

Hi, I have this following code: $('#content-load-target').load(location,function(response, status, xhr) { if (xhr.status != 200) { location.href = '/'; } else { //do something else } }); The response can be either an ajax page or be redirected (if the session has timed out). In case of redirect I want to …

Member Avatar for JorgeM
0
407
Member Avatar for dreday92

So for my assignment I have to create the Vector class and apply it .hpp to include the "Vector.h" file and no include the original Vector class. I have a few of the member functions done but am not sure how to begin with the other ones and im wondering …

Member Avatar for dreday92
0
521
Member Avatar for Lethugs

Hi, im using crystal report on my project. It working very well but I just want o make it more flexible. I have textobjects with of course text in it. They are not bound since they are just additional information on my report. How can i make those textobject editable …

Member Avatar for Lethugs
0
1K
Member Avatar for lewashby

How can I grow the size of a char array? `char myArray[6];` Assumming that all the current elements are occupied how can I add more empty element to the array to input another value into?

Member Avatar for 9tontruck
0
155
Member Avatar for FearlessHornet

I'm currently making a DLL with a collection of code snippets that I find myself commonly using. I have made a search functin that checks if one string is inside of another string. I have also added a vector choice in the case that I want to search many strings. …

Member Avatar for mrnutty
0
228
Member Avatar for HunainHafeez

is it true that no. of rows affected by select statement (ado.net) , is always -1. i.e. NO. OF ROWS AFFECTED BY SELECT STATEMENT = -1 ; if it is then why ?

Member Avatar for JorgeM
0
181
Member Avatar for Martin C++

Hello, I am making a calculator for school and so far I have written a code that allows user to combine and input. Calling it a formula would be wrong I think. It's like User pushesh buttons and comes up with an input like this for example : 11+4+9-5. Now …

Member Avatar for gon1387
0
402
Member Avatar for showman13

Good Morning... I hope this doesn't come across as too unintelligent, but I am baffled and maybe unnecessarilly I am implementing a payment processor and merchant account services on my members site. The processor has provided me with a host of API code for various functions and activities. Problem is …

Member Avatar for showman13
0
218
Member Avatar for garyjohnson

I am making a mysql query that gathers comments for a user, it works properly, I connect to the database and recieve the comments for a user, but it is not showing the first comment for the user. Here is the code function comments(){ //connect to db connect_db_members(); //start query …

Member Avatar for garyjohnson
0
309
Member Avatar for sk8ergirl

I'm almost done with my assignement I've created 2 class and I have one format method in student class the file look like this (there are about 25 lines) courseNum courseName courseSemester studentID,studentProgram,studentGpa studentID,studentProgram,studentGpa the output should look like this courseNum courseName courseSemester studentID--studentProgram--studentGpa studentID--studentProgram--studentGpa I'm still not sure if …

Member Avatar for tux4life
0
253
Member Avatar for biddut.hossain.75

mysql_connect('localhost','root',''); mysql_select_db('db_enrollment'); <?php require('fpdf.php'); class PDF extends FPDF { // Page header function Header() { // Logo //$this->Image('logo.jpg',22,10,160); // Arial bold 15 $this->SetFont('Arial','B',15); // Move to the right $this->Cell(80); // Line break $this->Ln(20); } $result=mysql_query("select * from omr_result"); // Page footer function Footer() { // Position at 1.5 cm from …

Member Avatar for diafol
0
467
Member Avatar for daniel36

I am working on a project in which to show booking in caledar form is required.I myself build the calendar.it is showning the booking correctly in choosen color .but when i see calendar next months it shows booked from date 1 to date 12 booked every month .the main part …

Member Avatar for diafol
0
165
Member Avatar for Nutster

Recently, I saw somebody start a "Deal or No Deal" game in the Posting Games section. This got me thinking of writing a program to actually play the game based on the rules of the show. So I spent a couple of hours writing this in ANSI-C. I probably should …

Member Avatar for Nutster
0
355
Member Avatar for toldav

I just need help to display my initial value of 25000 when the loop runs and print the years. I need the year 1 to be the initial value without doing the percent first. Also my print format doesnot display the $ and the headers. Any guide to the right …

Member Avatar for toldav
0
177
Member Avatar for Noth

Hi everyone. I'm trying to verify whether the variables $username and $password_recovery (both are unique - impossible for them to be the same) both come from the same row in the rable 'users'. This is the query I am using: return (mysql_result(mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `username` = '$username' AND …

Member Avatar for urtrivedi
0
199
Member Avatar for bryan.casin

this is a calculator in asm using tasm..this works fine but the problems i want to fix are: 1.remove the division part(add,sub,and multi are required). 2.i want to remove the menu, when i run the program it should show up directly to the input part. 3.i want this thing [+][-][*] …

0
1K
Member Avatar for vonnoy

i got a little problem here, i want to update my record by opening it on another form. but it only update the first record on the list, can anybody help me with this. heres my code: 'first form Private Sub command1_Click() If Text1 = ListView1.SelectedItem.Text Then With form2 .Label1.Caption …

Member Avatar for tinstaafl
0
117
Member Avatar for dicknballs

i am working on a program called myBalls. so far, heres what i have import java.util.Scanner; public class Penis { private int length; public Penis() {} public void setPenisLength(int l) { length = l; } public int penisLength() { return length; } } public class myBalls extends Penis{ public static …

Member Avatar for tux4life
0
649
Member Avatar for ponnu

Runtime error 2147467259(80004005): The changes you requested to the table were not successful because they would create duplicate values in the index, primary key..How to catch the exception?

Member Avatar for G_Waddell
0
142
Member Avatar for Hey90

I have created a basic object oriented database of a list of shoes containing the shoe name, number and shoe size. I am trying to sort the list of shoes alphabetially by name and by shoe size. I have the following code: Shoes.h: #include <iostream> #include <fstream> #include <string> #ifndef …

Member Avatar for Hey90
0
4K
Member Avatar for biswa2ray

I am looking for a Date picker (dd/mm/yyyy), which is support in all browser. Is any one provide me the code in JavaScript.

Member Avatar for riahc3
0
146
Member Avatar for anumash

I recently wrote a program to determine my current working directory using getcwd(). getcwd() returns the starting address of the character array supplied by the programmer. I have written a very simple program and as I am not an experienced C program can anyone mention what I can do to …

Member Avatar for deceptikon
0
106

The End.