199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dododero

hey all well i have been facing this problem for days ...i have written a program where i am suppose to read a specific number of lines within different intervals and count the number of occurance of r and s and then divide r by s. The program is running …

Member Avatar for David W
0
169
Member Avatar for Khyxz

Hello, Can you please help me? Is it posible to **input data** on a "DATAGRID" **even if it is not connected to a database**? My Datasource Connection is not working because of some installation problems. I don't have the CD for installation that is why I couldn't re-install it. How …

Member Avatar for oussama_1
0
198
Member Avatar for iamthwee

codeigniter problems with xss security. I was reading this article what is the best practice? http://ponderwell.net/2010/08/codeigniter-xss-protection-is-good-but-not-enough-by-itself/ Should I use htmlentities instead? However, it seems long winded because it doesn't convert £ signs effectively unless you set the character encoding to UTF-8

0
150
Member Avatar for tanatos.daniel

I'm having a ComboBox in which I added items in order provide the user autocomplete for the text he's typing. I am looking for a property of ComboBoxes that could identify if the text was an item of the ComboBox or not. (I would like not to loop each time …

Member Avatar for tanatos.daniel
0
447
Member Avatar for kazkuzzer007

I need help to solve my problem in making a login system. why always when login is rejected, the rejection order that I made: "You are not authorized to access this page", but that when admins are not logged in, even though I have entered the correct username and password …

Member Avatar for kazkuzzer007
0
141
Member Avatar for frkamal

Hi,I'm trying to find a C++ lib which permit an implementation of the standard RBAC in my application. Any help. Thanks.

Member Avatar for Ancient Dragon
0
426
Member Avatar for ravi_14

According to Herbert schildt C++ complete reference "A non-static member variable cannot have an initializer." however when i run following code,it runs.. class ABC { public: int a=3; ABC(); }; ABC::ABC() {cout<<a; } int main() { ABC obj; } regards,

Member Avatar for deceptikon
0
191
Member Avatar for samson.dadson.3

#include<iostream> using namespace std; int main(){ int fish =6; int * fishp = &fish; cout<<fishp<<endl; return 0;} this runs ok, but i get the same memory address when i cout either fishp or &fishp. how is it possible for a pointer to have the same address as the address it's …

Member Avatar for samson.dadson.3
0
299
Member Avatar for ZJRG.1997

I'm quite new to programming and i'm trying to write a formula to work out the capacitance of capacitors - and is what I have below. I then want to convert the value I have (in pico farrads) into micro farrads. Here's what I have so far: while True: x=float(input("First …

Member Avatar for Gribouillis
0
217
Member Avatar for sanjay@srvmedia
Member Avatar for gihan.madushanka.773

I have written a code to add users into the database and validate their credentials when a user logs in. Only the added users are allowed to login and for non valid users, simply a username/password does not match error message is echoed. Password encryption and checking codes are not …

Member Avatar for iamthwee
0
304
Member Avatar for Ajay_9

I want to rotate a set of images(4 to 5) which automatically start rotating from left to right or right to left on form load one by one( i.e when form loads the first image comes then second and so on but in left to right manner ).

Member Avatar for ddanbe
0
158
Member Avatar for mattyd

Hello. I have been doing research for about a week on form validation (JS, jQuery, CSS). I already have a nice form, but I need to add the validation elements. I'm a bit stuck. I know what I do and **do not** want with the validation: **Want**: * Clean, nice …

Member Avatar for iamthwee
0
292
Member Avatar for MrXortex

I got a movie search website but when I search something it says 404 page not found. [The search view](http://i.imgur.com/pxM1yS4.png) The site is working under a framework called **code igniter**. Here is the back-end code of search engine: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Search …

Member Avatar for veedeoo
0
396
Member Avatar for Rajveer456
Member Avatar for Mohammed_9

Is this correct? #include <stdio.h> #incluede <string.h> void getname(char name[][50],int num) int main() { void getname(char name[][50]) { for(int i=0;i<numofname;++) scanf("%[^\n]",name[i]); }

Member Avatar for 2teez
0
249
Member Avatar for fobos

Hello all, im having some problem, i have a function call dbconn which i run after my session. i can successfully connect to the database and run the mysql statement outside of the function with no problems. However, when i put it in the function and return it, nothing happens. …

Member Avatar for diafol
0
190
Member Avatar for sj5536

hi i want to develop project which identify person by capturing image of the person through webcam i.e. it identify the face. i googled this topic i found some algorithm .but there is two type of algorithm one is for detection and other is for recognization so which type of …

Member Avatar for ravi_14
0
171
Member Avatar for Ajay_9

I am getting the error while inserting the image from win-form.Can anyone please tell me the in the code.I am using Visual Studio 2013 and MS Sql 2008 R2. Thanks . using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using …

Member Avatar for Ajay_9
0
165
Member Avatar for xednycrex

I'm currently taking BSIT (1st year college) and as of this time we are using C++ and may soon run Oracle and other software applications used in programming, my current laptop specs is: Intel Core2 Duo CPU P8600 @ 2.40GHz, 3.0GB RAM, ATI Mobility Radeon HD 3400 Series. Will these …

Member Avatar for xednycrex
0
204
Member Avatar for Sifiso21031085
Member Avatar for Sifiso21031085
0
93
Member Avatar for chachajay.lol

Hey there! I am in need of help, to create rather learn how to use a C programming Language to create a Currency Trading Simulation where I can buy/sell at the time of a decrease/increase in Forex Trading Platform or any other trading platform. However I find it really hard …

Member Avatar for rubberman
0
253
Member Avatar for liz517

I am to write a censor program for all 4 letter words from an imported file, only I'm stuck. can you help? [code = python] # wordcensor.py # Program replaces 4 letter words in a text file. import string def main(): print "This program replaces 4 lettter words in a …

Member Avatar for kcm1
0
1K
Member Avatar for C-Money

I have been working on a code that takes three strings, copies one string into another, takes the length of one of the strings, then concatenates the three strings, copies them, and get there length, but there is a problem. I need it to display 'The three strings combined are: …

Member Avatar for C-Money
0
476
Member Avatar for glamiex

It is supposed to generate two numbers based on the user's preference of the highest number to use. What I want it to do is to divide integers that result in integers or perfectly whole numbers. I do not want to have numbers that don't divide out with remainders. So …

Member Avatar for vmanes
0
233
Member Avatar for ravi_14

cout is defined in std namespace and we also include iostream to use cout...i am confused ,please clarify this.where 1)cout is defined 2)where it is declared. and if we are including iostream ,then what is the need of STD::COUT regards,

Member Avatar for vmanes
0
533
Member Avatar for momonq1990

hi sir! little bit lost Pls help! how can I add css file for may xml created from php? <?php bla bla bla..... ---------<?xml-stylesheet type="text/css" href="markers.css"?>-------how can i add this line? echo '<markers>'; while ($row = @mysql_fetch_assoc($result)){ echo '<marker '; echo 'name ="' . parseToXML($row['name']) . '" '; echo 'address …

Member Avatar for AndrisP
0
172
Member Avatar for admiri92

Are exceptions standardized in C++? I mean if the rules of exception handling might be changed in the future. i.e: int Funct1(int) throw(); // does it throw an exception?

Member Avatar for mike_2000_17
0
291
Member Avatar for yossi321

How to prevent child window resizing and change position? code: SetParent lonHandle, Form1.hwnd now, I want to prevent resizing and change position from lonHandle window

Member Avatar for yossi321
0
107
Member Avatar for Thevenin

Hi all, I need some help with this problem. I have a function that has 2 fields, name of the folder to be created and the featured image to be put inside. This code works fine online, but when I imported it on my localhost (MAC Mavericks+XAMPP), the code creates …

Member Avatar for Thevenin
0
360
Member Avatar for alagez

Hai there, I am a robotic student and very new in python programming. Here, I have a project to classify the type of robot. For example, a customer would like to buy a robot arm for their company. So, this project will aid them to select robot of their choices. …

Member Avatar for alagez
0
290
Member Avatar for C

I had a programme to write for college in Java. I have missed the class so I won't be getting marked on it but wanted to get it done as I have an exam next we. I am really stuck. I have to create a costInsurance () method taking in …

Member Avatar for C
0
324
Member Avatar for ZJRG.1997

I'm quite new to python and am trying to make a kind of 20Q thing, but am struggling - anybody know how to delete a list from a set, or if not a list from a list? Thanks :)

Member Avatar for Gribouillis
0
406
Member Avatar for murali2489

Hi All, I came across this question in Cathy Siera SCJP book and the answer is really Strange and i dont understand. The question is below. class A { } class B extends A { } public class Comingthru { static String s ="-"; public static void main(String[] args) { …

Member Avatar for murali2489
0
186
Member Avatar for iamthwee

Daft question... but in order to prevent users tampering with the item price(right click inspect element change) and accept payments via **paypal**... Is the only way to do this using the encypted form method. eg. I generate a public and private .pem cert, then change the paypal account to accept …

Member Avatar for iamthwee
0
183
Member Avatar for Rahul47

Hello folks, This nitty problem is haunting me today. Here is the code I have written, but am not getting the expected output. This is a program for printing matrix in spiral order. #include<stdio.h> #include<stdlib.h> int main() { int rows,cols,i,j; int tr=0,rc,br,lc=0; /* tr = top row index. rc = …

Member Avatar for Rahul47
0
302
Member Avatar for sara12234
Member Avatar for ckide
0
324
Member Avatar for tony75
Member Avatar for ParPau

Having issues with array. Seems to pull in the enum files (month and average rainfall) and print accordingly. Also seems to read in the updated rainfall per month. However, problem is I can not make updated print with the enum. Also, last line in program has ..."actual[i]". If use a …

Member Avatar for ParPau
0
280
Member Avatar for tanatos.daniel

I would like to do something like this: comboBox6.Items.AddRange(new IEnumerable<int> { Enumerable.Range(1,8).ToArray() } ); (add numbers 1 to 8 to ComboBox Items using an IEnumerable object), but i can't figure out how. Thanks.

Member Avatar for castajiz_2
0
355
Member Avatar for firepower

how do i change the background to a custom one. code JButton button = new JButton(); JButton quit = new JButton(); public Mainmenu() { Icon b = new ImageIcon(getClass().getResource("play.jpg")); play = new JButton(playb); add(button,BorderLayout.CENTER); Icon quitb = new ImageIcon(getClass().getResource("quit.jpg")); quit = new JButton(quitb); add(quit,BorderLayout.SOUTH); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent …

Member Avatar for JamesCherrill
0
210
Member Avatar for Khyxz

I have a backspace key button. Then I have two text boxes. Well, it is working but when the letters in a certain text box are all cleared up then i keep on clicking the button I get this errror. This is the code: desiredTextbox.Text = desiredTextbox.Text.Substring(0, desiredTextbox.Text.Length - 1) …

Member Avatar for Khyxz
0
150
Member Avatar for Suzie999

I'm creating some automation utils. Part of it is automating mouse input. I think I have my math wrong because the X coordidnate is incorrect at certain points for example is I give it x = 114 which should translate to 114 pixels from left of screen (0) it will …

Member Avatar for Suzie999
0
764
Member Avatar for Nilesh_2

Hello there, For my project, I want to add notification feature where one user can send request for something and other user views by clicking button or something like that as a notification/alert similar to friend request in facebook. I dont know how to implement this feature. Thanks in advance.

Member Avatar for diafol
0
353
Member Avatar for Vasthor

main.cpp // Give your class a < operator and define a vector of HasPtrs. Give that vector // some element and then sort the vector. std::vector<HasPtr> vecHP; std::string val; while (std::cin >> val) { HasPtr temp(val); vecHP.push_back(temp); } std::sort(vecHP.begin(), vecHP.end()); HasPtr.h bool operator<(const HasPtr& rhs) { return (*this->ps < *rhs.ps); …

Member Avatar for David W
0
267
Member Avatar for V3N0M

I just started learning Java and I have been playing around with it. I am trying to make this program return a double value like 1000/3 = 333.33333..... but it returns 333.000 what am I doing wrong in Java. It works in C though :P. Thanks in Advance! //Exercise : …

Member Avatar for JamesCherrill
0
210
Member Avatar for Alex_20

I'm getting this every time I try and write Hello, World in Python I get this. I'm using Pycharm 3 C:\Python33\python.exe C:/Users/Alex/PycharmProjects/Learning/Helloworld File "C:/Users/Alex/PycharmProjects/Learning/Helloworld", line 1 print "Hello, World" ^ SyntaxError: invalid syntax Process finished with exit code 1

Member Avatar for ishaan3731
0
277
Member Avatar for saja.omarii.7

heyy all ,, i'm trying to get the middle word of sentence contains 3 words using find and substr.. this is the code : #include <iostream> #include <string> using namespace std; void main() { string sentence; cout << "enter a three-words sentence :"; getline(cin, sentence); string middle = sentence.substr(sentence.find(" ") …

Member Avatar for saja.omarii.7
0
4K
Member Avatar for 9strick9

I want to calculate several floating point functions that are a function of two variables, i.e. a(x,y), b(x,y) etc. x and y can be represented as x=i*delx and y=j*dely. So a(i,j) or b(i,j) is what I would actually calculate. How do I code a and b as functions of i …

Member Avatar for David W
0
415
Member Avatar for john.kane.100483

Ok the admin said to me not to post in C++ if my problem is in C language. Ok here's my problem with my program now. #1 If I put this in a array what should I change? #2 In my looping I needed to press double enter to enter …

Member Avatar for David W
0
713

The End.