199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MaiHunDown
Member Avatar for hassan12345
0
129
Member Avatar for embooglement

I'm developing a game engine, and set up a function that uses string streams to convert various values into std::string's. To use this to string function on class obviously takes an overloaded insertion operator, which I have done for a transformation matrix class here: [code] typedef std::stringstream StreamString; StringStream& operator<<(StringStream& …

Member Avatar for embooglement
0
2K
Member Avatar for zapman2003

Hello! I am having issues with a project for my C class. We were provided the program shell (structs and the function calls) and we fill in the code for the functions. I did this, however I get a segmentation fault every time I first access my structures. Can anyone …

Member Avatar for blech
0
109
Member Avatar for phplover

Hello, I have created a script and as part of the script i want the script to detect the upload_max_filesize which is set in the web servers php.ini file. It will be displayed on the file upload webpage which is accessible to admins only. Now at the moment i am …

Member Avatar for phplover
0
177
Member Avatar for nick3592

hi i was wondering if it is possible in php to create a bot that would surf my website. i do not need code just wondering what i should use with php to do this.

Member Avatar for omol
0
192
Member Avatar for dandixon

Ive been given this code that registers users, ive got all the other parts working great with the login side but this is causing me problems. I dabble but not fluent in php. This page is my register.php page. What i need is a register page that has the form …

Member Avatar for muralibobby2015
0
181
Member Avatar for G_Waddell

Hi All, I'm using VB.net to create a batch of word documents using the Microsoft Office OpenXML SDK. The documents are made up of a header and the main body which is made up of a table. I can sucessfully create the table in the main body. The issue is …

Member Avatar for G_Waddell
0
259
Member Avatar for reibi

Hey anyone, well I have creating an admin panel from which user can insert keywords as you type keywords in google.com. I hope you have understood, so how is it possible with php and in the same time they can insert new keywords like one u can see in this …

Member Avatar for muralibobby2015
0
125
Member Avatar for playdaguigame

hi, i was supposed to write a program in jgrasp, using java, i am a grade 12 learner, my program needs to have gui, my program compiles with no errors, when i run it it gives me my error message - "problem with showdata" - and only fills the first …

Member Avatar for javaAddict
0
101
Member Avatar for lirexin

I just wondering is there any possible way to use rand() in a function to generate a random? #include<stdio.h> #include<stdlib.h> #include<time.h> int get_random(void); int main(void){ int i; for(i=0;i<=5;i++){ printf("%d\n",get_random()); } return 0; } int get_random(void){ srand((unsigned)time(NULL)); int x; x = rand()%2; return x; } I run above code and generate …

Member Avatar for [Alpha]-0mega-
0
170
Member Avatar for herberwz

please me on how to insert a picture am new to netbeans [CODE]package LibraryDatabase; import static javax.swing.JOptionPane.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class PostLibraryDatabase extends JFrame implements ActionListener { JTextField firstName, surName, id, serialNumber, category, dateToday, coverTitle, isbnNumber, authoursName, coAuthoursName, pubDate, loanDate, returnedDate, email, details; JButton writeBtn, displayBtn, …

Member Avatar for herberwz
0
157
Member Avatar for trilogy09

The script is supposed to receive data from a HTML form and update the table based on the supplied information. This is what I get: "Connected successfully Selected successfully Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in on line 39 Query was empty" [code=php] <? $name = …

Member Avatar for Stefano Mtangoo
0
215
Member Avatar for DARK_BYTE

Hi I successfully wrote a program that keeps sending data from client to server and from server back to client where the client prints the data. But now I'm trying to write one whereby the user enter numbers at the client and they are sent to the server whereby they …

Member Avatar for JamesCherrill
0
103
Member Avatar for clarkeboy

How Can I use Clear screen and jump to next line?? like for example. press enter y for yes and n for no to proceed to next line and next screen.

Member Avatar for GuitarComet
0
190
Member Avatar for danholding

hey guy n girls i hope one of you can help me with this. plan of action is to : create a python script to... sort a list of files from a directory into sorted list with most recent modified date at the top. then I want to get rid …

Member Avatar for danholding
0
204
Member Avatar for K0ns3rv

Hello fellow daniwebians. So I've encountered this problem with querys in PHP. In the system I am working on at the moment we've created an install file which tests the db connection, creates the db structure e.t.c. But when creating the database the query fails. The query it self i …

Member Avatar for pritaeas
0
154
Member Avatar for Xufyan

Is it possible to call a constructor if we entered know value in the output screen ??? example !! [CODE]import java.io.*; class Employee{ int num; static int count=0; float compensation; public void print(){ System.out.println ("Employee number: " + num + ", Employee Compensation: $" + compensation); } public Employee(){ num …

Member Avatar for group256
0
194
Member Avatar for bdell11

I am in the middle of a project where I use four different folders containing all .wav files. Depending on the results of a sign on (ID) I want to use one of the four files. I am using the results of that sign in a "if..then" comparison to determine …

Member Avatar for AndreRet
0
189
Member Avatar for Virangya

i wrote a query... it must return false instead its returning false..i cant find why public static function find_cart_id($cid){ $query="SELECT customer_id FROM tblshopping_cart WHERE customer_id='$cid'"; if(mysql_query($query)) { return true; } else { return false; } } even if i use some text instead of `$cid` it still returns true :( …

Member Avatar for muralibobby2015
0
79
Member Avatar for Tweed

Alright I am going to try to put this in the least confusing way possible. I have a form that contains multiple textboxes. These textboxes are initially disabled and their text has been grabbed from a file that has been read in. No problems yet. There are 20 lines that …

Member Avatar for codeorder
0
607
Member Avatar for rajasekhar1242

hi , i am trying to develop one jsp application with tag concept on netbeans tool. but i am getting this error "According to TLD or tagfile, Attribute uri is mandatory for tag dbquery " . i could not run my application due to this error. In Jsp file i …

Member Avatar for rajasekhar1242
0
176
Member Avatar for cristi08

what is wrong here? [CODE]ALTER TABLE valoare_lucrari( ADD CONSTRAINT fk_oferta FOREIGN KEY (id_ofertant,id_proiect)references(id_ofertant,id_proiect))[/CODE]

Member Avatar for cristi08
0
272
Member Avatar for prem2

Hi, I have a doubt in overriding the methods in java. Sample program For overriding .This program executes fine. [code] import java.io.*; import java.util.*; class one { public void show(){ System.out.println("I am in class one-Super Class"); } } class two extends one { public void show(){ super.show(); System.out.println("The subclass two"); …

Member Avatar for tong1
0
101
Member Avatar for NewbyChic

Alright, Ive moved onto my next mission. I have to draw a set of four triangles using for loops. I have the first two done, the second two have to have spaces prior to printing the asterisks. example: ***** **** *** ** * * ** *** **** ***** This is …

Member Avatar for javaAddict
0
178
Member Avatar for alkeshnayak

Hi All I have some image file. and i want to make my own OCR (Optical Charactor Recognised) Software. Please tell me which control i use. Sorry For My Bad English Thanks In Advance

Member Avatar for vb5prgrmr
0
86
Member Avatar for umair.sabri

hi i m using two drop down 1 will populate abbrivation base upon other drop down which will show branch name both are depending upon each other if i select abbrivation second must populate branch name and if i select branch it will populte abbrivatiion my database is dynamic and …

Member Avatar for plusplus
0
78
Member Avatar for aquarian
Member Avatar for codeorder
0
251
Member Avatar for Orphæus

Hi all! I am making a TimeCard application and I got stucked.. Anyway, the program looks like this: the user inserts date,start hour and finnish hour into 3 textboxes. On the fourth textbox it will show how many hours he has spent. I am using StreamWriter to save the data …

Member Avatar for codeorder
0
120
Member Avatar for archana.c07

Hi all, I am trying to implement singleton class having static method. my requirement is as below: A.h Class A{ Public : Static A* getInstance(); } B.cpp #include A.h Class B : public class A{ A* A::getInstance() { //some code. Return *A } } D.cpp #include B.h A* pter = …

Member Avatar for archana.c07
0
101
Member Avatar for potato4610

[CODE]#include <stdio.h> int MyStrlen(const char *si); int main() { char str[] = "a"; char str1[] = "HELLO"; char str2[] = ""; printf("Length: %d \n", MyStrlen(str)); printf("Length: %d \n", MyStrlen(str1)); printf("Length: %d \n", MyStrlen(str2)); return 0; } int MyStrlen(const char *si) { int input; for(input = 0; *si; si++) input++; return …

Member Avatar for potato4610
0
447
Member Avatar for missbeginner

hey all could you please help me fix this problem? i spent hours looking for the solution, but haven't solved the problem. [code = c#] [U]web.config file[/U] [B]authorization[/B] [code=xml]<authorization> <allow roles="Admin"/> <allow roles="Employee"/> <allow roles="Manager"/> <deny users="?"/> </authorization> <roleManager enabled="true"/> <compilation debug="true">[/code] [B]authentication[/B] [code=xml]<authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="30" name=".login" …

Member Avatar for new SE
0
284
Member Avatar for gpmmuthu

Hi all.. I have a static page called news. This page have more than 100 articles link and small description. Now i am planning to implement a pagination of every 10 links. Anyone help this problem? Thanking you. Regards, Ram

Member Avatar for gpmmuthu
0
405
Member Avatar for painejake

Well I recently got my new Mac and with previous knowledge of C# decided to start playing about with Cocoa. I am trying to make a simple application that on button press will show in a textbox or label 1 of say 5 sentences pre-coded. If anyone could point me …

Member Avatar for Adak
0
96
Member Avatar for abu taher

when a datareport show, there has a button to print the page manually. I want when I click the button (to show the data report,it will not show), the page print directly. I don't want to show data report and don't click that button (print) in this page.

Member Avatar for abu taher
0
147
Member Avatar for abu taher

some data entry in some field. like: ID name amount 01 taher 100 02 kamal 200 01 taher 500 I don't know what data entry in field. in my vb project i have some textbox. I want one textbox show the Id: 01 and other text box show the (total …

Member Avatar for abu taher
0
85
Member Avatar for Marc.Gauthier9

Hello, I am working with form having multiple tabpages. I need to set the focus on first textbox of all tabpages. I tried to declare the following when the form loads, but only txtbox1.select() is working. Private Sub frmMaintab_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load txtbox1.select() 'First …

Member Avatar for codeorder
0
470
Member Avatar for abu taher

in my project man can entry their income or expenses. like: paper sale, pencil sale etc. they entry it like: paper $200.00, pencil $100.00. they also made a group or category. here they entry paper and pencil under 'sales' group. so every thing depend on user. here I want the …

Member Avatar for abu taher
0
84
Member Avatar for abu taher

when i want to link a child command with parent command (in data environment) then show this massage. but i make a relation with same field. then why show this massage. nb: i write sql in command.

0
54
Member Avatar for keanoppy

Hi all...i'm currently trying to manipulate strings from tokens. may i know how to eliminate a char from a token without splitting it?Below is some code that i tried.How can i eliminate a certain word after the tokens are set? [CODE] package autotextsum; import java.util.*; import java.util.StringTokenizer; public class AutoTextSumm …

Member Avatar for keanoppy
0
260
Member Avatar for sawant_nitesh

Why this code fails.... ? [CODE] String a = "abcd/dgws"; a.replaceAll("/", "\\"); [/CODE] it results in ...... Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(String.java:558) at java.util.regex.Matcher.appendReplacement(Matcher.java:696) at java.util.regex.Matcher.replaceAll(Matcher.java:806) at java.lang.String.replaceAll(String.java:2000)

Member Avatar for sawant_nitesh
0
315
Member Avatar for Denxerator

Is there such a code when activated will create a new window and display a text file? Like e.g. (You open the debug), there is a button. If you click the button, a new window pops up and displays a certain text file on the hard drive. P.S. I am …

Member Avatar for codeorder
0
2K
Member Avatar for tedtdu

Assumming that program name is "XML.java", I need to perform the followings for each input file in command line--without running the code for every test file: java Xml < input1.txt java Xml < input2.txt : So My Code IS: [CODE]BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));[/CODE] [CODE]String fileName = bf.readLine();[/CODE] [CODE]File …

Member Avatar for tedtdu
0
133
Member Avatar for ekseks

Can someone check the way how I combine the two functions to work for my datepicker. Thanks. Clicking the header, make me select all the dates for that day for the entire month [CODE]selectColumn: function(picker, inst) { var target = $(this); picker.find('div.datepick-month th span').each(function() { $('<a href="javascript:void(0)" class="' + this.className …

Member Avatar for ekseks
0
127
Member Avatar for Garee

I am trying to assign variables in my array diveScore using a for-each loop. However, I don't understand why it isn't working and every element is 0.0 after the loop has ended. Eclipse is showing no errors so I am sure there is something wrong with my logic. Thanks. [code=java] …

Member Avatar for jon.kiparsky
0
114
Member Avatar for punkrockbboy

Hey everyone, so my work wants me to update their website with a email contact form, i foolishly agreed not realising what i was getting myself into, i didn't know how complicated php is (i am an artist, not a coder :icon_redface: ), it's taken me about a week and …

Member Avatar for punkrockbboy
0
368
Member Avatar for TrueVb.NetNoob

Hi Guys! I wanna ask questions about the code [CODE]Me.hide[/CODE] I have a button to switch between two forms, and I used the me.hide code to perform the action. However When I exit the program, the debug is still on, meaning that the form which I hide is still running. …

Member Avatar for codeorder
0
590
Member Avatar for mrkaran

i have a piece of code: [CODE] struct myKeyword { string name; int id; }; myKeyword keywords[]={{"include",INCLUDE}, {"void",VOID},{"main",MAIN},{"int",INT},{"float",FLOAT},{"cin",CIN},{"cout",COUT},{"if",IF},{"elseif",ELSEIF},{"else",ELSE},{"exit",EXIT},{"for",FOR},{"while",WHILE}}; int j=0; cout<<keywords[0].id; //not able to access keywords.id part flag=0; for (j=0;j<11;j++) { if (lexeme==keywords[j].name) { temp->assign(lexeme,keywords[j].id); flag=1; break; } } getchar(); }[/CODE] why cout<<keywords[0].id is not working? thanks in advance

Member Avatar for mrnutty
0
129
Member Avatar for vbx_wx
Member Avatar for mrnutty
0
101
Member Avatar for gallantlex

Firstly, Here's my code running in VS 2010 [CODE=c] #include <iostream> #include <fstream> #include <string> #include <list> using namespace std; class Student { friend ostream& operator<<(ostream&, Student); friend istream& operator>> (istream&, Student&); private: int stuId; string name; int gpa; public: Student(int, string, int); int getStudId(); }; ostream& operator<<(ostream& out, Student …

Member Avatar for gallantlex
0
968
Member Avatar for QB_Pete

I need to install something called .Net Framework. I have checked several sites on Microsoft and this issue is as clear as mud. There is a file called dotnetfx.exe that is supposed to be able to install the .Net Framework to my Windows 98. (I have an 8K console application …

Member Avatar for codeorder
0
1K

The End.