199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cthoes

[QUOTE]when i tried to copy structure array of name into another string array i get this error message warning: passing argument 1 of 'strcpy' makes pointer from integer without a cast [/QUOTE] [CODE] /* copying structure array name into another string array*/ #include<stdio.h> #include<string.h> int main(){ int i=0; int j,k,l,m; …

Member Avatar for stranger510
0
128
Member Avatar for eduard77

Can anyone tell me what to do to solve this error? [CODE]#include <iostream> #define MATRIX_DIMENSION 4 int WSACleanup (void); int main(int nArgs, char** pArgs) { int nDim = MATRIX_DIMENSION; double fMatr[MATRIX_DIMENSION*MATRIX_DIMENSION] = { 1.0, 2.0, -1.0, -2.0, 1.0, 3.0, -1.0, -2.0, 2.0, 1.0, 1.0, 1.0, 3.0, 1.0, 2.0, 1.0, }; …

Member Avatar for eduard77
0
80
Member Avatar for chrisname

So I decided to learn Perl yesterday, and I'm writing a Perl script to try and parse HTML files (not using regexps for the actual parsing). Anyway; I have this subroutine to iterate over each argument in @ARGV and, if one of them is an existing file, return it's filename …

Member Avatar for chrisname
0
152
Member Avatar for Ashwin Vasnai

Plz help. I am working to create application kind of auto-suggestion. I am using JTextPane along with Jlist on PopupMenu. I am not able to get the Action Event on JList. and other problem is that my KeyPress Event of JTextPane are getting overlapped with JList hence nothing is selected …

Member Avatar for Ashwin Vasnai
0
168
Member Avatar for esmeco

Hello! I'm having some problems with constructor initialization,mainly because I have object members and vectors within classes. I have a class Factory in which i have 2 object members(base and dumpster),a vector of Floors and a set of Robots. Each Floor has a size(lin,col) and a member object Cell which …

Member Avatar for Agni
0
110
Member Avatar for mahela007

I was using the datetime module for the first time today. When I typed [CODE]now = datetime.date.today() now [/CODE] I got the output [CODE] datetime.date(2009, 12, 27) [/CODE] Now, I found out that [CODE]datetime.date[/CODE] is a class and that[CODE] datetime.date.today[/CODE] is a method. But I can't figure out what the …

Member Avatar for snippsat
0
1K
Member Avatar for tig2810

Hi all This is not really a coding question but rather I'm looking for the correct term. I was about to write something so I could decorate field as adate and then use softdates or date shortcuts etc like below but on googling for some inspiration I suddenly realised I …

Member Avatar for sknake
0
143
Member Avatar for ShortYute

`I am trying to limit the amount of characters that a user can enter for the address(/ in the input buffer): for example (if maximum allowed input was 30 then ): ->4 Mary drive lane, Mt. Pyle, A<- when the user typed that I am trying to get the curser …

Member Avatar for ShortYute
0
358
Member Avatar for phalaris_trip

Hi, I have written a C# application which uses Tao Framework bindings for OpenGL and FreeGlut. It references two assemblies (Tao.OpenGL and Tao.Freeglut) and also requires that the appropriate OpenGL and Freeglut dlls be somewhere in the system. How can I publish this application in such a way that the …

Member Avatar for phalaris_trip
0
100
Member Avatar for tanha

Hi. Using the following Software: --- Visual C# Express 2008 --- MySQL --- Windows Operating System I am supposed to work on a Monitoring Application for an IT Center, so the requirement is: [LIST] [*]Users will be registered into the database and they will have an expiration_datetime; which means that …

Member Avatar for ddanbe
0
137
Member Avatar for Noliving

Can someone run my mips code? I'm using pcSpim as my simulator The issue I'm having is that it doesn't correctly output the number of othercharacters. Other characters would be like !@#$%^&*()_+-=.,<>?/ \ The other problem I'm having is that it doesn't output the number of characters there are in …

Member Avatar for lacialec
0
279
Member Avatar for xvalentinex

Okay python gurus, this one has me stumped. Is it possible to introspect and obtain the instance of a class that assigned a class? I have a simple sample that demonstrates what I'm looking for, but doesn't make any sense why you would do it. [code=python] class One(object): def print_parent_hw(self): …

Member Avatar for xvalentinex
0
89
Member Avatar for jino

Hi everybody, In my project i am using ajax and jquery. After going to a page via ajax without page reload i want to see the same page if the user refresh the browser. I used the cookie plugin inorder to solve. As it is not safe i am trying …

Member Avatar for hielo
0
746
Member Avatar for Krstevski

Hello... I have created application (duplicate file detector) and now I have a progress bar and I want synchronize "how many percentage of scan is ready" Here is my code for scanning: [CODE=Csharp] private void scanFiles(string rootDirectory) { try { if (stop) { return; } foreach (string dir in Directory.GetDirectories(rootDirectory)) …

Member Avatar for Krstevski
0
654
Member Avatar for crazysoul13

Hi I need anybody to help me this command in UNIX SHell Scripting. It goes to a website and take a snap shot and stores it in directory. Thanks

Member Avatar for JeoSaurus
0
103
Member Avatar for ~*TANWEER*~

Hi friends. I am new here. I found this site while searching the way to make a vbulletin forum. So please help me to make a vbulletin forum but all in free because i don`t have any credit or paypal etc. Please give me full guide to make my own …

Member Avatar for Arianna
0
226
Member Avatar for Stefano Mtangoo

Hi, Iam now using Mandriva from external HDD and want to install my development tools. I need to install wxPython, Matplotlib, and some other packages. How to do that in Mandriva?

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for Excizted

Hi everyone... I have a silly problem.. Somehow I managed to faceroll or something, hitting a shortcut which shows all indents as arrows and all spaces as dots. Here is a picture of the problem: [url]http://img97.imageshack.us/img97/8789/problemyf.jpg[/url] I've looked the options through, but since I don't know what this thing I …

Member Avatar for Excizted
0
88
Member Avatar for shack99

Hi, Could someone please help me, I'm a bit stuck and don't know where to start. I want to create a program where I have to use multiple arrays eg: processing the data of a file, the file contains details of several groups of students(group 1,2 3,...) and each group …

Member Avatar for shack99
0
218
Member Avatar for 7akimz

this is my html code [CODE]<!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> <?php $xml = simplexml_load_file('../order1.xml'); $products = $xml->xpath('/products/laptop'); foreach($products as $laptop) { if($_POST['list'] == $laptop->name) { global $lname,$detail,$price; $lname = $laptop->name; $detail = $laptop->details; $price = $laptop->price; } } ?> <meta name="delete" content="deleting products" /> …

Member Avatar for 7akimz
0
165
Member Avatar for Alan123456

I am new in cake php when i run my page this errror comes HTTP 404 not found Please solve my problem My code is Model(task.php) ====================================== <?php class Task extends AppModel{ var $name='Task'; } ?> ====================================== Controller(tasks_controller.php) ====================================== <?php class TasksController extends AppController{ var $name='Tasks'; function index() { $this->set('tasks', …

0
89
Member Avatar for LennieKuah

Hi There, In VB6 I used ADP to confirm record existence by using this script IF ADO.EOF OR ADO.BOF then ado.addnew End if but in VB.NET 2003, How before using SQL String to Insert the record how do I confirm it's existence in the Table to prevent duplication. Please help …

Member Avatar for sknake
0
230
Member Avatar for zurehman

Hi , members this code show error in vb.net 2008 [CODE] If Con.State = 1 Then Con.Close() Con.Open() Dim strSQL As String Dim dt As DataTable strSQL = "select count(EntryNo) from(Select distinct(EntryNo) from Cash where year(Cash.PmtDat)= '" & yyyy & "')" dt = GetmyTable(strSQL) Rc = dt.Rows(0).Item("EntryNo")[/CODE] please guild me …

Member Avatar for sknake
0
124
Member Avatar for crackerjacker

basicly all i want to do is resize (height and width) of an external window, like IE or Freecell, and then move that window, with X Y pixel co-ordinates(top, left). Thanks

Member Avatar for crackerjacker
0
121
Member Avatar for RAMAN2233

Using ajax calendar can i write a program to know the number of working days in a given month...if yes how??? I should be able to show the number of working d ays in a text box..when i select a given month HELP IS APPRECIATED THANX IN ADVANCE

Member Avatar for dollarcolony
0
127
Member Avatar for ashaysumbha

Respected Sir, I am trying to execute above code with rerquest response object. In my jsp file i have 3 text boxes 1.mobile 2.username 3.password , All the above three attributes are stored in MySql table emp. I want to execute this code in a fashion like when i entered …

Member Avatar for javaAddict
0
93
Member Avatar for Stefano Mtangoo

Please help me to expound how to do layout management. You may choose any layout manager and expound it. I'm doing self teaching most of the time and it is not fun! Please help me ho to arrange. Also which layout is mostly used

Member Avatar for peter_budo
0
339
Member Avatar for Edmondo

Hi, sorry still learning how to do things in asp. Basically I have a form that I set up using the insert template in visual studio. where the code looks like this [CODE] <InsertItemTemplate> &nbsp;<table class="style15"> <tr> <td class="style18"> SitesAffected: </td> <td class="style16"> Description:</td> </tr> <tr> <td class="style19"> <asp:CheckBoxList ID="SitesCheckBoxList" …

Member Avatar for Oxiegen
0
87
Member Avatar for shishio1014

i would like to ask for help regarding my problem, it's like this... I have a txt file and inside it looks like this OL001 bob red 13 OL002 jack blue 13 OL003 paul yellow 14 so if my program starts it will ask for the OLXXX and return each …

Member Avatar for jonsca
0
137
Member Avatar for samsons17

What does this cin.clear() and cin.ignore() means? this is the part of the code : [CODE] while(1) { cout<<"Enter the Product ID :"; cin>>product[i].id; cout<<endl; if(cin.fail()) { cout << "\t\t\t\t\WRONG ID DATA!" << endl; cin.clear(); //what does it means?? cin.ignore(1000, '\n'); //why 1000?? continue; } break; } [/CODE] thank you …

Member Avatar for jonsca
0
394
Member Avatar for cthoes

[QUOTE][QUOTE] even after passing all name to bubble sort i get result of unsorted nams..so please help me in this issue [/QUOTE][/QUOTE] [CODE] /* enter customer detail in structure and put its name in asscending order*/ #include<stdio.h> #include<string.h> int main(){ int i=0; int j,k,l,m; int choice=1; char temp[10]; char words[20]; …

Member Avatar for jonsca
0
148
Member Avatar for dave_nithis

Hi all, I got a new Java puzzle in which I have to find the largest of given numbers without using If loop,for loop or while loop..And you should not use any max() or min() functions. Can anyone help me out in this?I want to know whether it is possible …

Member Avatar for Rizwana begum
0
277
Member Avatar for monkey_king

Hi, Can someone elaborate why the following (the if conditional) differs [CODE=c] int main(){ const char *filename = "test.txt"; int ifd; if((ifd=open(filename,O_RDONLY))<3) err(EX_NOINPUT, "%s", filename); fprintf(stderr,"ifd is:%d\n",ifd); off_t bytes_in = lseek(ifd, (off_t)(-4), SEEK_END); return 0; } [/CODE] vs [CODE=c] int main(){ const char *filename = "test.txt"; int ifd; if(ifd=open(filename,O_RDONLY)<3) err(EX_NOINPUT, …

Member Avatar for monkey_king
0
126
Member Avatar for BobFX

Hi, I'm using a Form generated application. Its definition starts with: [code]public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) {[/code] When I'm inside one of its method, I can use calls like: [code]this->StartPosition = FormStartPosition::Manual;[/code] thanks to the this pointer. How can I do this kind of calls …

Member Avatar for BobFX
0
124
Member Avatar for Stefano Mtangoo

Hi all, Back then I was writting my own login/register system and I have halted developing it due to time constraints. I will be happy to resume later. Here I am asking for Open source secure and safe login/register system that I can Incorporate in my CMS. I want to …

Member Avatar for Stefano Mtangoo
0
604
Member Avatar for monkey_king

Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()' The following program wont allow to allocate more that 2.1gig memory. [CODE=c++] #include <stdio.h> #include <stdlib.h> #include <err.h> #include <fcntl.h> #include <sysexits.h> #include <unistd.h> …

Member Avatar for monkey_king
0
145
Member Avatar for Mitja Bonca

I inserted a value of DateTime into database, like "26.12.2009 11:50:00" . Is it possible that the reader will read only the time of a day from this, without date? So far I did only that it reads everything, date and time: [CODE] string myTime = Convert.ToDateTime(dataGridView1.Rows[IndexVrstica].Cells[0].Value).ToShortTimeString(); DateTime myTime2 = …

Member Avatar for eeyc
0
3K
Member Avatar for sidd.

hi i have a file that i have to read byte by byte. i m using the read method but its not working this is what i m doing byte[] str=new byte[12]; [CODE] for(i=0;i<lenght_of_file;i++) { sr.read(str,i,1); } [/CODE] i cant figure out y itz nt workin. thanx

Member Avatar for eeyc
0
838
Member Avatar for nishanthaMe

Hey guys; can anyone suggest me to develop a simple RSS reader with php.

Member Avatar for pavithraCS
0
118
Member Avatar for monkey_king

I've been programmin on and off for some time. But today I saw something I hadnt seen before Some thing like [CODE=c] void error OF((const char *msg)); void gz_compress OF((FILE *in, gzFile out)); #ifdef USE_MMAP int gz_compress_mmap OF((FILE *in, gzFile out)); #endif void gz_uncompress OF((gzFile in, FILE *out)); void file_compress …

Member Avatar for jonsca
0
137
Member Avatar for deonis

I am trying to develop a function for my application which would use already opened file (fin) and read certain line from it. Each line in the text starting from given keywords (pos1). Finally this function should return a print of all line containing the keywords pos1. But apparently "linecache" …

Member Avatar for deonis
0
272
Member Avatar for hdk

Hi All, I am very new to python Gui programming and am trying to create a simple Gui which will get a set of results from an sql query which goes into Oracle and display these results in the text box below. If u can also help me get the …

Member Avatar for Stefano Mtangoo
0
351
Member Avatar for sonia sardana

hi frnds ,I started a new project in .Net 3.5 version.I add a New Ajax Web Form Default2.aspx. [code] using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class Default2 : System.Web.UI.Page { …

Member Avatar for reach_yousuf
0
227
Member Avatar for LemonLemon

I am a beginner of c++ I just built a very simple Hello World program but nothing output to the screen what's the problem? Thanks in advance. Here is output message: 'HelloWorld.exe': Loaded 'D:\Visual Studio 2005\Projects\HelloWorld\debug\HelloWorld.exe', Symbols loaded. 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. …

Member Avatar for restrictment
0
148
Member Avatar for Teethous

Hello. I am writing an ATM program for a project, but I am having problems matching the users entered pin with what is stored on the text file. Here is how i read the file [CODE]import java.io.File; import java.util.Scanner; import machine.*; import javax.swing.JOptionPane; public class FileRead { Transactions query = …

Member Avatar for Teethous
0
154
Member Avatar for Carrots

Hi, I'm trying to construct my first Doubly Linked List, but am having trouble compiling. This is my program: [B]main.cpp :[/B] [code=c++] #include <iostream> #include "node.h" #include "doublylinkedlist.h" using namespace std; int main() { system ("PAUSE"); return 0; } [/code] [B]node.h :[/B] [code=c++] class Node { public: Node *pointertonextnode;//pointer to …

Member Avatar for jonsca
0
356
Member Avatar for matinice

i need to identify news header & body of following text file. text: <clip ~ Recommendation of Dividend of ICB > Investment Corporation of Bangladesh has recommended 100% Stock Dividend (i.e. 1 Bonus share against 1 ordinary share) & 5% Cash Dividend for the year 2008-2009. EGM & AGM will …

Member Avatar for zinnqu
0
161
Member Avatar for mrjoli021

i have an html form with a text area. when use get or post to retrive the info the text is not correctly formatted meaning. the begining of new paragraphs are not working and indents either. it is just one big sentence.

Member Avatar for justted
0
84
Member Avatar for ytregnn

Hi, I was looking for a poll script (php/ajax) that does not reload when adding a vote. I've tried to search around for it but haven't found one that suits my needs. Anyone that knows where I can find such a script? Thanks, Robin

Member Avatar for SKANK!!!!!
0
166
Member Avatar for Diamonddrake

I would like to create a overridden picturebox control that accepts a colormatrix as a property, and when the picturebox is drawn it uses that colormatrix. This is to cut down on drawimage GDI calls that are slowing down my app. I would love to turn 2 into 1, and …

Member Avatar for Diamonddrake
0
515

The End.