64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Stefano Mtangoo

What are your thought on this? There are many framework there and my thought was CakePHP is rather popular. I'm I wrong? What do you think?

Member Avatar for Stefano Mtangoo
0
107
Member Avatar for MrYrm

First of all im new here so Hi all.. im also new to c/c++ have been a java php and actionscript developer for some time now and finally have time to learn something new so im gonna go for c++ im just tryna get familiar with everything but i ran …

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for Kruptein

I have a Frame called ChangeDirPanel and an other one called MyFrame, the last one is the top-lvl window and has a function called file_show_dir which updates a listbox in that same window. (both frames have their own class, is it better to have the same class?) I want to …

Member Avatar for Stefano Mtangoo
0
276
Member Avatar for newcuser

Hello, I am attempting to rewrite a program in c. Here is what I have so far. Thanks in advance for assistance. [CODE]#include <stdio.h> void sales[ salesPerson ][ product ] += value; int main() { const int PEOPLE = 5, PRODUCTS = 6; double sales[ PEOPLE ][ PRODUCTS ] = …

Member Avatar for mitrmkar
0
183
Member Avatar for wwsoft

Hello , I a creating program in witch objects are stored in the namespace var in var.h. How do I make the var namespace available to more than one file without having redefinition errors ? [CODE] ### var.h ### namespace var { ... } ### main.cpp ### #include "var.h" //multiple …

Member Avatar for wwsoft
0
145
Member Avatar for dragontruong

I am unable to print out the error message when there is no input. I've tried different methods for it, but I can't get it to work. What am I missing? print should be: p2 invalid input but I get: p2 segmentation fault when I do this with an int …

Member Avatar for dragontruong
0
111
Member Avatar for mebob

i was trying to make a program that uses the chudnovsky algorithm to calculate pi with this code: [code] #include <cmath> #include <iostream> #include <cstdlib> using namespace std; float fac (float num) { float result=1; for (float i=1; i<=num; ++i) result=result*=i; return result; } int main() { double pi=0; float …

Member Avatar for vmanes
0
441
Member Avatar for wdow

I'm trying to write code for a very basic version of the game 24. This code will receive either two, three, or four integers and determine if there is any way that these numbers can add, subtract, multiply or divide to the number 24. Locations of parenthesis can change as …

Member Avatar for wdow
0
186
Member Avatar for ceyesuma

Hello. I am building a XML reader class DOM. Does anyone have a link that has some code where the text from a JComboBox.selectedItem()("text") for example or any text is used to find a Node in a the DOM document and then work with that nodes siblings?

Member Avatar for ceyesuma
0
86
Member Avatar for cane23

i have a small problem deleting from the data base that i have created using a form. this is the error that i am getting on the webpage Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right …

Member Avatar for MrYrm
0
140
Member Avatar for katwalatapan

Hello, I have a query on dynamic allocation of memory in C. I am storing 4 seconds of audio data in a buffer allocated with sufficient memory using malloc function. If I wanted to record another 4 seconds of audio in the same buffer, I would have to increase the …

Member Avatar for katwalatapan
0
185
Member Avatar for arafat_alam

i am facing problems of destructor in the following code.destructor is not working.can any one help plz???? [CODE] #include<iostream> #include<cstring> #include<cstdlib> using namespace std; class strtype { private: char *p; int len; public: strtype() { p=(char *)malloc(sizeof(char)); *p='\0'; len=0; } void getString(char *str) { len=strlen(str); p=(char *)realloc(p,sizeof(char)*len); strcpy(p,str); } void …

Member Avatar for arafat_alam
0
132
Member Avatar for srinath3

[CODE]#include<iostream.h> class alpha { int x; public: alpha(int i) { x=i; cout<<"\n alpha constructor"; } void show_alpha(void) { cout<<"x="<<x<<"\n"; } }; class beta { float p,q; public: beta( float a,float b):p(a),q(b+p) { cout<<"\n beta constructor"; } void show_beta(void) { cout<<"p="<<p<<"\n"; cout<<"q="<<q<<"\n"; } }; class gamma:public beta,public alpha { int u,v; …

Member Avatar for srinath3
0
171
Member Avatar for adam84

I have a form called privateOrder, and two other forms. in the first form when I double click on a datagridview it opens the privateOrder form. in the second form I have a button, when I click it also calls the privateOrder form. I want to know if there is …

Member Avatar for adam84
0
95
Member Avatar for JAM1011

Hey all, I wondering if you could help me get my head around this problem. [CODE] connetionString = "Provider = Microsoft.ACE.OLEDB.12.0;Data Source = KellihersLawnmowers.accdb" cnn = New OleDbConnection(connetionString) cnn.Open() overDue = "SELECT tblCustomer.*, tblMachineHistory.*, tblPayments.* FROM (tblCustomer INNER JOIN tblMachineHistory ON tblCustomer.Customer_ID = tblMachineHistory.Customer_ID) INNER JOIN tblPayments ON tblMachineHistory.Machine_ID = …

Member Avatar for JAM1011
0
93
Member Avatar for benk1

Hi guys, I have a simple php shopping basket which stores the products in an array. To add a new value into the array, I have the following: [CODE]$cart .= ','.$_GET['id'];[/CODE] I was just wondering if there is an equivalent line of code to remove a single array value with …

Member Avatar for MrYrm
0
98
Member Avatar for Kruptein

Again I have problems with my classes :s I want to test if there is still text in the text_ctrl, if so it should give a warning in which you can chose to cancel, save or continue; but somehow the [icode]deditor.st = "continue"[/icode] is not passed :s [code=python]#!/usr/bin/env python # …

Member Avatar for Kruptein
0
123
Member Avatar for jhonnyboy

Hello everyone I am new to access and have been trying to teach myself a bit lately. In any case, I have a problem with a specific text box(NumofMonths) within a form. I need for the default value to be 12 and that it may be edited. This text box …

Member Avatar for jhonnyboy
0
97
Member Avatar for tetron

Hi I have what at first seemed to be a very simpe problem: I have a Microsoft Package that requires me to use nmake to make a lib file. I am unfamiliar with make files as I use visio and XP. Now I had to move somethings due to restricted …

Member Avatar for mitrmkar
0
523
Member Avatar for antihero0021

Trying to use an oledbdatareader to search through a table in my Access database. When I hit the command button to search it throws an error that says no data exists for row/column, but if I execute the command against the database it returns exactly what I am looking for. …

Member Avatar for antihero0021
0
482
Member Avatar for whiteyoh

Hi all, Im pretty ok with PHP and have recently been breaking down a project using foreign keys to identify various bits of information. This is my problem. I have an items table, which is made up of ID, country and area. It previously has the actual word of the …

Member Avatar for pritaeas
0
138
Member Avatar for servis

i have a simple form validation onsubmit event. The requirement is very simple, if validate.php brings any error it shows errors and it stops form for further processing else form submit and action runs process.php. But, unfortunately ajax function is not working onsubmit event.. any help please..... files are attached …

Member Avatar for Graphix
0
2K
Member Avatar for Lolalola

Hi, i download wmi from this: [url]http://timgolden.me.uk/python/wmi/index.html[/url] (windows version) [CODE=syntax] import wmi c = wmi.WMI () for process in c.Win32_Process (): print process.ProcessId, process.Name [/CODE] And run this script in Python 2.6 IDLE Show this error: Traceback (most recent call last): File "C:\Users\lola\Desktop\test.py", line 1, in <module> import wmi File …

Member Avatar for Lolalola
0
165
Member Avatar for bobsta

I am trying to render a very simple scene by loading various parameters from a file (MLC.txt) When compiling I receive the following error main.cpp: In function ‘void renderScene()’: main.cpp:77: error: ‘pBeam’ was not declared in this scope H

Member Avatar for bobsta
0
242
Member Avatar for TechSupportGeek

Hello world, I would be grateful if you helped me. I've built a text editing application and I would like it to load values/user settings from the Windows Registry. Here's my code but it is somehow wrong (I believe it whatsoever has to do with wrong syntax but it could …

Member Avatar for TechSupportGeek
0
244
Member Avatar for bd338

Hello everyone! This is the code for my A86 Assembler: [CODE] jmp _executor _executor: mov ah, 00 mov al, 18 int 10h end _executor [/CODE] It Assembles fine, but when I try to run it, I get this dialog popping up, saying: [QUOTE] This system does not support fullscreen mode. …

Member Avatar for Harko33
0
201
Member Avatar for veledrom

Hi, I installed vsftp and filezilla. I use host:127.0.0.1, user:root, password:(don't have any), post:21 to connect to ftp but not successful. Does anyone know how to do this? Thanks

Member Avatar for veledrom
0
79
Member Avatar for mansi sharma

can somebody tell me how to get file type..of any file..For .txt file file type is [B]Text Document[/B],for doc file - [B]Microsoft Word Document[/B] & so on. Plz help me out,I m not finding anything on the net related to it.

Member Avatar for kvprajapati
0
952
Member Avatar for srinath3

[CODE]#include<iostream.h> class invent2 class invent1 { int code; int items; float price; public: invent1(int a,int b,float c) { code=a;items=b;price=c; } void putdata() { cout<<"code:"<<code<<"\n"; cout<<"items:"<<items<<"\n"; cout<<"value:"<<price<<"\n"; } int getcode(){ return code; } int getitems() { return items; } float getprice() { return price; } operator float(){ return(items * code); } …

Member Avatar for srinath3
0
439
Member Avatar for prem2

Hi, I want to learn sql injection.I searched in google but the information is not sufficient to me.Will u provide some links to learn sql injection. thank u

Member Avatar for darkagn
0
303
Member Avatar for maleko

I have a postgresql view on which I'm running the following query : [CODE]select count(*) AS "Assigned Calls" ,to_timestamp(createdon)::date from vw_issues where to_timestamp(createdon)::date>='11/10/2009' and to_timestamp(createdon)::date<'11/11/2009' group by to_timestamp(createdon)::date order by to_timestamp(createdon)::date[/CODE] when run in phppgadmin the result is displayed as Assigned Calls to_timestamp 20 2009-10-12 13 2009-10-13 etc... I need …

Member Avatar for saiprem
0
156
Member Avatar for SmackFN22

I am trying to write a program that will work like a hangman game. I have a loop that assigns the characters to their spot in the string and is supposed to end if the newly assigned string equals the original word. If the letter guessed is correct, nothing should …

Member Avatar for SmackFN22
0
107
Member Avatar for scmsimplybest

Hello Guys, I m Building A Chat Application..in which i have 2 different user types like Admin & Merchant...I Have Taken User type A for Admin & M for Merchant...First I have Created Only Single LogIn Form for both user types & given DropDown So that If He Selects Merchant …

Member Avatar for scmsimplybest
0
169
Member Avatar for Cort3z

Hi. Im working on a text-based "game" that uses strings to generate maps. So I need to split these strings into bits that i can work with, but somehow the .split method kills the white space in my string. How can I get around this? Of course I can force …

Member Avatar for masijade
0
171
Member Avatar for TheWhite

If I have 2 synchronized methods and 1 calls the other, what exactly happens? If those 2 synchronized methods are in a class, and 2 of those classes are created, each of them calling one of their synchronized methods, what would happen? If those 2 classes extended Thread and were …

Member Avatar for TheWhite
1
166
Member Avatar for jigglymig1

I have to write a program that accepts a pointer to a c-string as its argument. The function should return the charater that appears most frequently in the string along with the number of times it appears. for example, if i input "hello dolly" the output would be: "l sppears …

Member Avatar for r.stiltskin
0
161
Member Avatar for hitro456

Hi everyone, I have a query as - [COLOR="Red"]select DateName(Month,Date), avg(NetAmount) as AverageCustomerBill from salesmaster group by DateName(Month,Date)[/COLOR] which gives result as follow - [COLOR="Green"]April 451.5664 August 432.6227 July 441.1437 June 429.9915 May 423.7198 November 407.4123 October 425.1684 September 416.3678[/COLOR] As u can see here Months are not in proper …

Member Avatar for hitro456
0
152
Member Avatar for C+Marshall

here's another one that i've been struggling with. I need to create a phone number that can not have an 8 or a 9 in the area code. I thought it would be smart to simply generate the area code one number at a time .............. num1 = generator.nextInt(7)+ 1; …

Member Avatar for kvass
0
97
Member Avatar for ccie007

Hi frens, I couldn't compile this solution code given by my university on visual studio.Visual studio works fine with other C++ files. Here are the question and solution code pasted below.I wonder if anybody could try to compile the solution code on thier machine and see if they can run …

Member Avatar for ccie007
0
167
Member Avatar for kfancy

Hi all. Please edit/add/help me make this blackjack program work. Thank you. class Card: def __init__(self, suit, rank): self.rank = rank self.suit = suit if self.rank == 1: self.rank = "Ace" self.value = 11 elif self.rank == 11: self.rank = "Jack" self.value = 10 elif self.rank == 12: self.rank = …

Member Avatar for woooee
0
170
Member Avatar for PDB1982

I have to create a program that handles random birthdays between 2 and 50 students (depending on what the user inputs), and calculates the random birthday (1 to 365) and then determines whether or not students share the sam birthday, and how many students share it. I'm stuck on how …

Member Avatar for jonsca
0
198
Member Avatar for rondroid

Hi everyone, I have a form page where the customer enters their email address to see if they have forms available to download. Once they submit that I use the following code to see if they do indeed have stuff available: [CODE]<?php $email = $_POST['email'] ; $directory = "http://nycityliving.com/forms/" . …

Member Avatar for rondroid
0
93
Member Avatar for bharatk

I have opened an image using the PhotoImage method of ImageTk How do I close the image. This is the scenario is I am using it in. I have 2 buttons, one each to open an image from disk & image from url. When I open either of them the …

Member Avatar for bharatk
0
1K
Member Avatar for Hawkeye Python

I've read the documentation, but I still can't creat my own packages. How should the __init__.py look like? Cause i've tried to let it blank and some stuff like [CODE] my_package/ __init.py__ sub_pack/ __init.py__ test.py [/CODE] but it pointed syntax error If I don't write anything on it, no error …

Member Avatar for Ene Uran
0
96
Member Avatar for blerina12

Hello guys. I am working on the code below. I am trying to create my own shell. The code compiles without errors, but when I execute it though it doesn't output anything. I have tried it with /bin/ls as input and it doesn't work. Any suggestions? [code=c]#include <stdio.h> #include <stdlib.h> …

Member Avatar for blerina12
0
1K
Member Avatar for wolfkrug

I am writing a game program for a dice game. You want to get 100 points. You roll until you decide to hold, and the sum of your rolls is added to your total score. If you roll a 1 though, your turn is over and you get 0 points …

Member Avatar for tetron
0
164
Member Avatar for kfancy

import random class Card: def __init__(self, suit, rank): self.rank = rank self.suit = suit if self.rank == 1: self.rank = "Ace" self.value = 11 elif self.rank == 11: self.rank = "Jack" self.value = 10 elif self.rank == 12: self.rank = "Queen" self.value = 10 elif self.rank == 13: self.rank = …

Member Avatar for redyugi
0
178
Member Avatar for txwooley

How would I execute a command and have it's output returned as a list or string? For example (in Linux): [CODE]os.system("iwconfig")[/CODE] prints a list of wireless devices to stdout. How can I make Python see those results as a list or string so I can search for certain devices (like …

Member Avatar for txwooley
0
110
Member Avatar for Suicidal_tool

Appretiate some coursework help related to classes. All im trying to do is compare the elements of two objects [code] if(asteroid1.getxx == asteroid2.getxx && asteroid1.getyy == asteroid2.getyy) { cout<<endl; cout<<"Collision"<<endl; } [/code] All i want to be able to do, is to compare the x and y co-ordinates of my …

Member Avatar for Suicidal_tool
0
97
Member Avatar for horseygal

Hi, can anyone look at this and see why it doesn't work? When I test and enter a numeric value in the text box it still gives the error I have placed in the code, same if I put in a letter etc. Thanks!! :) [CODE]Private Sub valueDouble(ByVal sender As …

Member Avatar for horseygal
0
140

The End.