199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aalice

/* A Program testing for rational number*/ #include <stdio.h> #include <stdlib.h> typedef struct rational_t { int numer; int denom; } rational_t; int gcd(int a, int b) { /* To reduce the rational number to its lowest form. */ if(b==0) return a; else return gcd(b,a%b); } /* r_init: Creates rational number …

Member Avatar for Tom Gunn
0
160
Member Avatar for seo2005

I want to write a C program to test whether the character is uppercase, lowercase, digit or special symbol. [code=c] void main () { char ch; printf("\n Enter any character from the keyborad"); scanf("%c",&ch); if (ch>=65&&ch<=90) printf(" \n the character is uppercase); if(ch>=91&&ch>=122) printf(" \n the character is lowercase); if(ch>=48&&ch<=57) …

Member Avatar for Tom Gunn
0
291
Member Avatar for eppitis1

hello,i have a database.mdb and i want all the fields of the database to be showed in the datagrid.i have an adodb connection and i do not want to use a flexgrid.how can i do this?[CODE] Private Sub Form_Load() Dim sDate As Date Dim eDate As Date sDate = #6/15/2009 …

Member Avatar for AndreRet
0
120
Member Avatar for Stretcher75

I have a form the has some textbox controls. I have a script to request these control values to update a table in my database. The problem I am having is that I added the textbox controls to inside the TabContainer and now the request does not see any values. …

Member Avatar for Ramesh S
0
138
Member Avatar for stuckinmud

Hi all ive had some syntax errors and have managed to correct 2 lines using advice on this forum but now it has came up with this error Parse error: syntax error, unexpected T_STRING in /home/nebbmhc1/public_html/send_form_email.php on line 18 ive corrected lines 15 and 16 and wonder how many more …

Member Avatar for stuckinmud
0
128
Member Avatar for stoymigo
Member Avatar for stoymigo
0
112
Member Avatar for system analysis

I want to help me to Write a program which will draw an “X” shape as shown in the figure below. Your program must consist of one class named “Picture”. In your main method you must declare and initialize some String variables which you will later use in a print …

Member Avatar for quuba
0
83
Member Avatar for AutoPython

Okay, I wrote a simple calculator, not in GUI form, but a calculator for simple stuff. So I'm wondering, would this layout be considered OO? I think this is how it works. Now I do know that I didn't use an object to handle the class since it just wasn't …

Member Avatar for AutoPython
0
216
Member Avatar for AirGear

guys, i have a project that needs using GUI in cpp. my lecturer suggests me to use Microsoft Visual Studio 6 and create a MFC based application. But i don't really understand how to use it. Can anyone please give me a link that can explain about that MFC stuff? …

Member Avatar for pspwxp fan
0
138
Member Avatar for mbuckhurst

I've got a website moved from a 32 bit win2003 platform, to 64bit 2008. When I browse to the website the asp.net precompiles, but the site is never opened, doesn't timeout, it simply sits there with the blue progress bar and Waiting for... At first I thought this was 32 …

Member Avatar for mbuckhurst
0
175
Member Avatar for FREEZX

I need to "decode" a string into numbers. it should convert 1=ij 2=abc 3=def 4=gh 5=kl 6=mn 7=prs 8=tuv 9=wxy 0=oqz so i made a code where i use a dynamic string array which should get filled up according to the above table, but when i try to print the …

Member Avatar for FREEZX
0
106
Member Avatar for dinilkarun

Hi Friends, I need to write a piece of code to identify if an Excel session(the process which is listed in the Task Manager) is already running or not?. Can anyone guide me with this? Any help will be much appreciated! Regards, Dinil

Member Avatar for dinilkarun
0
145
Member Avatar for anup.maverick

Hi, I am making a website for Buying Online Books, I am using ASp.Net 2.0 & SQl. Because the Data needs to be updated Regularly, I want to use CMS. And I have No idea about the code part of CMS(means I don't know how to link CMS to my …

Member Avatar for Ramesh S
0
86
Member Avatar for gpss

Hi! I need some help... i searched a lot.. but dind't found or worked any code.. so i need help please.. i just need a simple thing... i want to show on a combobox, a list of the things that i have (inserted before on my database-postgreSQL) on a collumn …

Member Avatar for phobia1
0
142
Member Avatar for network18

my api parsing script has dynamic url, like scriptname.php?limit=100 here this last 100 will change;varying from 0 to the number of lines from the file returned by first cron. And i want to this script to execute as a cron job, but how this parameter 'limit' i should handle. any …

Member Avatar for network18
0
1K
Member Avatar for ice_tea_lemon

I find a problem which says An approximate value of pi can be calculated using the series given below: Pi = 4 [ 1 – 1/3 + 1/5 – 1/7 + 1/9 … + ((-1)n)/(2n+1)] Write a C++ program to calculate the approximate value of pi using this series. The …

Member Avatar for nekomata
0
170
Member Avatar for lcyew

Hi. I need to capture and store the time in database whenever there is application or approval is submitted. (in 24 hours time format) I've tried time() to capture time and strftime("%H:%M", $timenow) to retrieve and dispaly the time. However, the hour for the time is incorrect. Some questions I …

Member Avatar for lcyew
0
87
Member Avatar for gretty

Hello I have a task to perform an addition of 2 Big Integers. Each Big Integer is stored in a linked list in reversed order. [B]Is my add function correct?[/B] For eg; we have 2 Big Ints to add together [QUOTE] First BigInt = 245 { strored in the linked …

Member Avatar for gretty
0
410
Member Avatar for ITech

hi, I have created a website [URL="http://www.sayhellomaldives.tk"]http://www.sayhellomaldives.tk[/URL] which has compatiblity issues for firefox and IE8. the site works fine if you run in IE6 or compatibility mode in IE8 I have googled the internet to find a solution for the problem but i havent been able to find a solution …

Member Avatar for ITech
0
153
Member Avatar for kishou

sry i'm not really familiar with $_FILES. but i have a quick question. why isnt this uploading? here's my code: [CODE]<?php $file = rand(10,100) . $_FILES["file"]["name"]; if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } …

Member Avatar for NavedAhmed
0
103
Member Avatar for NinjaLink

Hello, I need some advice to help me write a program to convert postfix to infix. However, I am having difficulty getting started. I tried to search for more information, but all I got was infix to postfix results. This is what I have so far, but I want to …

Member Avatar for tsfaridi
0
199
Member Avatar for FriQenstein

Hello all, I have an app that I'm building, slowly as I learn, and I'm having some issues with the JDialog implementation. I'm using NetBeans which generates pretty much everything except for the gutsy bits of code needed... (i.e. code for button actions, etc) I have my main application which …

Member Avatar for FriQenstein
0
1K
Member Avatar for Room101

I'm trying to create an applet that records your voice to a file, then plays that file back to you. I have already managed to complete the second parts (using AudioClip) but I have no idea how I can record sound in an applet. Could anyone give me some advice?

Member Avatar for quuba
0
114
Member Avatar for stoymigo

Hi , i there is VB 6 app that our client has which must be converted to VB.NET/C# . The application is a database application and application logic is stored in VB6 code and about 8 stored procedures. There is a Test environment and there is a Production environment which …

Member Avatar for stoymigo
0
268
Member Avatar for gotschai

Hello everyone, i have a little problem with variable variables if the variable is an multidimensional array and the indexes are not fix so, they are dynamic. I need something like this: [code=php] $varName = "data"; $varIndex = "[1]['items'][4]['items'][]"; ${varName.$varIndex} = 'xyz' ; // this does not work as php …

Member Avatar for somedude3488
0
105
Member Avatar for tsfaridi

I am using this code for displaying images on JPanel, in which i succeeded, but the images are volatile. When i maximize or minimize the frame, it vanishes. [code] public class ImagePanel extends JPanel{ private BufferedImage image; public ImagePanel() { try { image = ImageIO.read(new File("image name and path")); } …

Member Avatar for tsfaridi
0
90
Member Avatar for aalice

In this assignment you to implement a short C program that works with factorization of integers. You will write a C program that computes and prints out the sum of all natural numbers below 100,000 that are multiples of 3,5 or 7. In Detail If you are asked to sum …

Member Avatar for BestJewSinceJC
0
94
Member Avatar for theprofoundgeek

Hi, I am writing a C code to add two matrices. I want to take input with a feel of real martice, some thing like 1 2 3 4 5 6 7 8 9 but the Scanf function automatically enter EOL and hence my input looks some thing like this, …

Member Avatar for Gaiety
0
155
Member Avatar for pinsickle

I am currently working on polymorphism in class, part of my homework is the classic point inside a shape test. I always have access to the lower left point of the triangle and it is always assumed to be isosceles. Last year I solved this problem using linear inequalites but …

Member Avatar for pinsickle
0
155
Member Avatar for MDGM

Hi all, I'm creating different pages on a website for each branch in the country for a business. The way the user gets to their branch is through a dreamweaver generated jump menu. My question is: Will search engine robots crawl the pages that are linked via the jump menu? …

Member Avatar for jaspaltech
0
252
Member Avatar for coachHinesfan

Hello everyone. I recently installed Windows 7 and I am looking for a development environment that is very compatible with it other than Microsoft Visual C++ Express Edition. I ask because i have never used another development environment. Thanks for your help in advance.

Member Avatar for jbennet
0
391
Member Avatar for linxpert

Hi guys, Please help me here. I want to obtain the individual data in rows and columns from my database. I mean after loading the data in a data table.... I think I need some attributes of the data table, so as to obtain data from the rows and columns

Member Avatar for linxpert
0
134
Member Avatar for itsense

Hi everyone Don't know if someone can help me with my problem. I'm trying to get a total from a loop variable name($cost), I'm running a for loop, thats getting values from mysql, all that i need is for the $cost value to be added up. Code example: [code=PHP]$sql="select * …

Member Avatar for hanna aizawa
0
106
Member Avatar for kapiljain469
Member Avatar for seo2005

Hi, I don't understand the if statement here. Can anyone explain how the execution of if loop will proceed. Why are we using || and && operators here. #include<stdio.h> void main { int year; printf("Enter the year: "); scanf("%d",&year); if(year%400 ==0 || (year%100 != 0 && year%4 == 0)) { …

Member Avatar for SecurExpert
0
218
Member Avatar for raghunayak

Hi all, This is my first post here. Basically I want to use friend classes across namespace. eg: [CODE]#include <iostream> namespace NamespaceA { class ClassA { public: friend class ClassB; void print( ) { std::cout<<std::endl<<data<<std::endl; } private: int data; }; }; namespace NamespaceB { class ClassB { public: ClassB() { …

Member Avatar for raghunayak
0
2K
Member Avatar for shroomiin

Hey everyone. I am supposed to create a program that will input the miles driven and gallons used for each tank full of gas. program has to calculate and display the miler per gallon obtained for each tankful and print the combined miles per gallon for all tank fulls up …

Member Avatar for BestJewSinceJC
0
107
Member Avatar for alxwm
Member Avatar for isralruval

when i compile i get an error message saying the following "51: error: assignment of read-only location" line 51 reads: c[i][j] = a[i][j] + b[i][j]; any help to get rid of this problem???[code]#include <iostream> #include <iomanip> using namespace std; #define N 3 void addMatrix(const double a[][N], const double b[][N], const …

Member Avatar for Xasmus
0
184
Member Avatar for jupitertrooper

Hi I am working on some code for my class that requires me to validate a floating point number. Once the user enters the number I have to check to see if it is valid, and it is only required that I check the first digit. so if -80 was …

Member Avatar for mrnutty
0
345
Member Avatar for UKmason

I am very new to computer programming and am struggling with my Computer Science class... I have been working on this program all week long... My assignment is to ; Write a float function that will have four float parameters. The four parameters represent two Cartesian points, 2 x's and …

Member Avatar for mrnutty
0
151
Member Avatar for numan_num

i am a begginer , i want to create a Master detail in c#.net using ADO.net with navigating tools like add ,edit,forward and prvious. please help me

Member Avatar for Ramesh S
0
74
Member Avatar for restrictment

How do I add an array? I tried this: [code] #include <iostream> #include <cstdlib> using namespace std; int main() { int i, numEntered, total; int number[10]; for (i = 0; i <= 9; i++) { cout<<"Number: "; cin>>number[i]; numEntered = number[i]; } for (int i = 0; i < 10; …

0
82
Member Avatar for SanmGuy

Hi all well this is the first time in this forum so I'll be clear about my question and thanks in advance I'll create a software in C#, this app takes a cvs file (about 73,000 lines). This files comes from another system, also the cvs file can change, what's …

Member Avatar for SanmGuy
0
182
Member Avatar for SCoder1

Hi, I'm sorta new to c++ I've tried messing around with java but I like c++ better for it's speed. I think the reason why I'm still a newbie at this is because I can't grasp the scientific concept of the syntax. But enough small talk...... I can't seem to …

Member Avatar for SCoder1
0
86
Member Avatar for rukshilag

In need of creating an online fast food delivery system - please help... no idea how to begin! this is for a group assignment in university. we have to design a creative user and admin interface...

Member Avatar for jomanlk
0
226
Member Avatar for restrictment

Hey, I have been searching this for a while now, and I cannot find a c++ code that expands the window once opened. I have found multiple codes that claim it opens it in an expanded window, but in the end all I get is compiling errors. If someone would …

Member Avatar for SCoder1
0
168
Member Avatar for karen.tao

I am creating a GUI program with java and when I run it, I get this stack of errors. [CODE] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at ButtonPanel$AllocateListener.actionPerformed(ButtonPanel.java:52) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at …

Member Avatar for darkagn
0
268
Member Avatar for vtsmokey88

The problem I'm having is that I have a min heap class that is created with java generics. In the class where I use the min heap class(call it sorter) I have a float array, which is full of primitive float values. The constructor for the min-heap class takes a …

Member Avatar for BestJewSinceJC
0
123
Member Avatar for axn

java float example float f1 = 5.5f; float f2 = 5.4f; how would you initialize a static float without using the wrapper class? static float f1 = 5.5f would that be correct?

Member Avatar for BestJewSinceJC
0
304

The End.