199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tomtetlaw

When I open a file, the file is valid (passes if (!file)). But when I use it with fgets, fgets fails. When I called ferror the return value is 32. I looked that up and it means broken pipe. What does this mean and how could I fix it? This …

Member Avatar for tomtetlaw
0
83
Member Avatar for vlad44

Hi everybody, I'm totally newbie to python I've seen some tutorials and think that is an easy to learn language but I couldn't figure out the real function of scripting language I've read some brief notes about the function being to control an existing application . But I couldn't understand …

Member Avatar for vlad44
0
133
Member Avatar for YahRioO

hi Using while, write a program that keeps reading integers from user until he enters -1 then prints the average of all entered numbers (-1 should be ignored). this is my solution, but i dont know why he gives me wrong average? [CODE]#include<iostream> using namespace std; void main() { double …

Member Avatar for Clinton Portis
0
277
Member Avatar for blknmld69

[B]I have my program working but i need to replace the JOptionPane.showMessageDialog(null, "The cost is " + totalCost); and just have the totalCost output to the totalCharges textfield. [/B] [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class DormAndMealPlanCalculator extends JFrame { private JPanel dormPanel, mealPanel, buttonPanel, totalChargesPanel; private JComboBox …

Member Avatar for Gerbiler
0
176
Member Avatar for TahoeSands

In my journey "back to the basics" to get a more solid foundation for my Java skills, I am curious about the difference between using the existing content pane of a JFrame vs. creating a new content pane in a JFrame. I have two chunks of code... The first uses …

Member Avatar for Gerbiler
0
214
Member Avatar for c_shaft05

I've been messin with python for little under a month now. I've come across one of these sample questions that make you think, stating to compute and print a table of Celsius temperatures and Fahrenheit equivalents ever 10 degrees... well i guess the main thing is i need help trying …

Member Avatar for Duskic
0
435
Member Avatar for DallasFan3

Ok, well Iam doing a program where I have to write a program that will read in a list of positive integers (including zero) and display some statistics regarding the integers. Your program must store the all of the integers in an array. The maximum number of integers that you …

Member Avatar for DallasFan3
0
135
Member Avatar for KLane

Someone Please help with this. I want to make a class Statistics and read from an external file and find the mean and standard deviation and below is what i have so far. any suggestions? [code] #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double …

Member Avatar for daviddoria
0
104
Member Avatar for gahhon

[CODE]void InputFunction() { system("cls"); printf("\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\t\t *** ***\n"); printf("\t\t *** WELCOME TO ***\n"); printf("\t\t *** CLASS ATTENDANCE SYSTEM ***\n"); printf("\t\t *** ***\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\n\n"); fflush(stdin); printf("\t\t What Is The Course Code? "); scanf("%s", SubCode); fflush(stdin); fflush(stdin); printf("\t\t How Many of The Total Weeks? …

Member Avatar for Kamatari
0
118
Member Avatar for Sorcher

I really want this echo to not include people not listed as 1 in the row "activated" in my database. So if its 0 they wont show. [CODE] // Print each user while($row = $result->fetch_assoc()) { echo " <tr> <td>{$row['username']}</td> <td><a href='{$row['website']}' class='example7'>{$row['website']}</a></td> <td align='center'>{$row['disabled']}</td> </tr>"; } // Close table …

Member Avatar for Sorcher
0
93
Member Avatar for Rez11

Palindrome detector. Palindrome is any word/sentence/phrase that reads the same foreword and back. I'm in the middle of creating a program that accepts a sentence, phrase, or word. Then checks to see if it's a palindrome, I'm just having trouble on what to pass to my function. The function must …

Member Avatar for Rez11
0
127
Member Avatar for Unhnd_Exception

Heres a way to eliminate flickering or create a fade effect on a panel or anything else. If anyone has a technique that would be more effective, please post it. When double buffering doesn't fix a flicker problem on a panel you can use a picture box to mask it …

0
58
Member Avatar for JustAnotherJoe

Has anyone written code that allows Javascript to communicate with mod_wsgi using Ajax? I'm looking for a very simple example that I can build off of (e.g. uppercase a string and return it). The examples that I've seen use PHP/ASP. When I substitute wsgi for 'php' or 'asp', the program …

Member Avatar for JustAnotherJoe
0
491
Member Avatar for Simplified

Hi All I'm getting very odd behaviour when using file.write(variable) - what happens is that if I print out the variable using the print function I get this: [ICODE]4CE1FFC64101843801[/ICODE] ... which is what I expect. However, when I try to write this to a file (using the variable 'valid' to …

Member Avatar for Simplified
0
108
Member Avatar for stephen_UK

I have a php script displaying muliple pages of records which has problems with the pagination of the web pages. When it loads for the first time I get 2 Notice: Undefined index messages - as shown below: Notice: Undefined index: start in /customers/swaag.org/swaag.org/httpd.www/SWAAG-DATABASE/VIEW_in_STEPS5b.php on line 210 Notice: Undefined index: …

Member Avatar for stephen_UK
0
94
Member Avatar for iamdabobo

I'm working on a calculator in python. Introductory college course, so I know some stuff, but I'm far from being an expert of any sorts. This is a scientific/graphing calculator, so I'm parsing a whole string of input. Say the user inputs integ(3*x+3,0,1) (integrate 3x+3 from 0 to 1). My …

Member Avatar for Gribouillis
0
2K
Member Avatar for atla

I'm pretty much a complete beginner. I'm trying to get a 'timer' or 'clock' that pretty much just counts how long you have the window open by using a loop that adds 1 to "a" for every second, and adds 1 to "b" for every 60 seconds (while subtracting 60 …

Member Avatar for richieking
0
170
Member Avatar for svatstika

Hello everybody! I'm trying to understand following code. [CODE] #include "stdafx.h" #include <iostream> using namespace std; class Circle; class Square; class Triangle; class Shape { public: virtual bool Check(const Shape&)const = 0; virtual bool Check(const Circle&)const = 0; virtual bool Check(const Square&)const = 0; virtual bool Check(const Triangle&)const = 0; …

Member Avatar for Ancient Dragon
0
264
Member Avatar for radnam

Hello, I am developing a software which will connect to a SQL SERVER situated at Head Quarters over a VPN connection.But for times when VPN is disconnected I want my applications at the branches to connect to a local Sql Server installed at a local server. Now all the applications …

Member Avatar for crapulency
0
192
Member Avatar for stark025

Hello all, I've recently been asked to demonstrate the difference between Turbo C++ 3.0 and Visual C++ 2008. I'm not really familiar with the current coding standards, so I've enclosed a sample of Turbo C++ code. Please point out which functions are deprecated as well as their replacements. [CODE="C++"]#include <iostream.h> …

Member Avatar for stark025
0
261
Member Avatar for oksbwn

hello friends actually i want to know which compiler is best suitable for gui development using c.please send the web adress to download that and send how to configure that.

Member Avatar for Ancient Dragon
0
162
Member Avatar for gyst

Hello all. I've written a program to solve sudoku puzzles. I had it working for int, see below. [CODE] typedef int element; typedef element game[GAME]; [/CODE] I changed [I]element[/I] into [B]short[/B], and then it exits with a segmentation fault. I then changed [I]element[/I] into [B]char[/B] and I got an immediate …

Member Avatar for Ancient Dragon
0
117
Member Avatar for ryan-t

Hi, Trying to build my own simple-ish forum script, and i want to display 2 forum posts snippets inside each category on the default page. I thought i knew the code for it but when i do [CODE="php"] $cat = mysql_query("SELECT * FROM forum_cat")or die(mysql_error()); $catresult = mysql_num_rows($cat); for($count = …

Member Avatar for ryan-t
0
129
Member Avatar for tawes01

I have a dialog-based application that just has a big edit box. I want to make a quotation mark bold right when it is typed. How can this be done? I am using dev-c++ 4.9.9.2 (I don't know how to make single characters bold, let alone how to capture the …

Member Avatar for Ancient Dragon
0
146
Member Avatar for hyperion

Hello all, Info: I am using Pelles C compiler. Some code first: Following is the linked list structure I am using. [CODE]typedef struct _NODESTRUCT { void* data; struct _NODESTRUCT* next; } NODESTRUCT, *PNODESTRUCT;[/CODE] Method to add a new node to linked list: [CODE]PNODESTRUCT AppendNode(PNODESTRUCT rootNode, void *data) { PNODESTRUCT tempNode; …

Member Avatar for Narue
0
164
Member Avatar for joandong2

good day, i'm new to programming but i'm eager to learn, i have a problem, after i submit the number of quantity, the product will add, but then when i search again for another item, the page refresh.. i wanted to output all of the items in sales table so …

Member Avatar for joandong2
0
182
Member Avatar for frogboy77

Can anyone tell me how to find the maximum value for a specific variable(i.e int, long long int, double)? Also is there a way to set a variable to this value(without knowing it and typing it in)? Using Dev C++. Any help appreciated.:)

Member Avatar for frogboy77
0
90
Member Avatar for logicslab

Hi Friends, I am new to C++ wxwidgets world . I plan to study same, I am basically from web programming but I like to study this new technology come in C++(I am newbie there too!). I have 2 types of C++ distributions installed in my PC with Windows XP …

Member Avatar for SgtMe
0
261
Member Avatar for mahdi68

Hi can any body tell me how can i send arabic sms with at-command in C# ? i try with this code but the message show incorrect on phone ! [CODE]serialPort1.BaseStream.Flush(); string cb = char.ConvertFromUtf32(26); System.Threading.Thread.Sleep(2000); this.serialPort1.Write("AT+CMGF=1\r"); this.serialPort1.Write("AT+CSCA=servicecenter\r\n");//Ufone Service Center this.serialPort1.Write("AT+CSCS=\"" + "HEX" + "\"\r\n"); this.serialPort1.Write("AT+CSMP=\"" + 1 + "," …

Member Avatar for Mitja Bonca
0
904
Member Avatar for javaSux

I'm working on a grading program that will require the use of a couple classes. The program contains a list of "program assignments" which there are 5, and 3 test scores. I'm stuck writing the average methods Along with the total exam scores/program scores. Any help will be appreciated! Here's …

Member Avatar for stultuske
0
211
Member Avatar for oggiemc

Hi, Im getting the followin error in one project class in my application: The project was not built since its build path is incomplete. Cannot find the class file for DataControl. Fix the build path then try building this project DataControl is a class in another project in the same …

Member Avatar for apines
0
314
Member Avatar for rolandrogers

Hello - I am trying to get a looping date repeater to work but it is driving me crazy! It works for most dates but breaks for dates that originate in early November. I created a page that shows the code and the output for anyone to see what is …

Member Avatar for rolandrogers
0
138
Member Avatar for ceyesuma

Does any one know where there is some Java code already written to handle deleteing directory trees? Maybe with some undo functions?

Member Avatar for ceyesuma
0
126
Member Avatar for ravian48

Hi All, I am making website in php. I want to add funds to my account using paypal api. Please help me how i can do that? Regards

Member Avatar for chrishea
0
124
Member Avatar for stharmon

Hello, I have written a script to automate a software install. I am running the script as root, but need to su to another user to configure and complile the program properly. Whenever I do the shell script su's to the user properly but the scripts stops executing until I …

Member Avatar for rehm
0
4K
Member Avatar for GeekaByte

Hi guys, I'm trying to find a drag and drop cursor for use in a program. It is not in the standard Windows cursors. It's the one you see when moving a control in Visual Studio or when reordering slides in powerpoint - arrow with rectangle below. Please let me …

Member Avatar for Luc001
0
1K
Member Avatar for TheBaby7591

I'm supposed to create a c file that contains functions perform certain tasks with a structured matrix. My h file and current c file are as follows. [code=c] typedef struct { int rows, cols; //matrix dimensions int **elements; //element array } Matrix; void matrixInit (Matrix* m, int r, int c); …

Member Avatar for vinitmittal2008
0
182
Member Avatar for zarulhamdi

how to open all serial port in vb.net? i know how to open by getportname..but how to open all??can we do it?

Member Avatar for zarulhamdi
0
83
Member Avatar for ufancha143

hi there my question is simple and i only need a hint. "how could i develop a applications which can make a new EXE application. like this,.... the end user runs the application and when he clicks on a button named "create a new calculator", the application will create the …

Member Avatar for hyperion
0
101
Member Avatar for MissaDev

Hi I'm New Here. Although I have been reading in the past and appreciate all the help that the board has given me already. I have a homework assignment that I need the user to enter how many names they want to enter, then enter that number of names, display …

Member Avatar for mitrmkar
0
131
Member Avatar for sunny120786

hello, I want to write 2 programs with C , one work on Robot1, the other work on Robot2. So I want the program to send a signal from Robot1 via Bluetooth to Robot2 and Robot2 handles and accepts this signal (message)and reply to Robot1. how to code this? please …

Member Avatar for daviddoria
0
261
Member Avatar for thestrokes

Hi.. I don't know how to do the draw condition & error checking on the following tic tac toe codes, can anyone help me to complete this with elaborations and explanations please.. thanks #include<iostream> using namespace std; char box[9]={'1','2','3','4','5','6','7','8','9'}; void drawboard() { cout<< box[0]<<" | "<<box[1]<<" | "<<box[2]<<endl; cout<< "---------"<<endl; …

Member Avatar for daviddoria
0
998
Member Avatar for Snehamathur

Hello I am new to this community and newbie to c language. I want to code for modulus operator (%) in c.. Need Help. Thanks in Advance

Member Avatar for Snehamathur
0
187
Member Avatar for Neo63

So I'm writing my own simplified LinkedList class. When I compile my code I receive this error Error: F:\Files\ICS\Card\LinkedList2.java:3: name clash: indexOf(E) in LinkedList2<E> and indexOf(java.lang.Object) in java.util.AbstractList<E> have the same erasure, yet neither overrides the other The code is public int indexOf (E element) { Link<E> o = new …

Member Avatar for apines
0
139
Member Avatar for cwarn23

Hi, I have been working on a way to reverse bitwise Xand with c++. I have managed to do most of it but can anybody tweak this script I made so it works to its full potential. At the moment this script tries to return the variable x from ((12 …

Member Avatar for cwarn23
0
112
Member Avatar for tech9x

[code=c++]void getCommands(char * cstr,char * p,string *userInput,string Input) { string currentCommand = ""; strcpy (cstr, userInput.c_str()); p = strtok (cstr," "); while (p!=NULL) { p=strtok(NULL," "); cout << p; } [/code] ERROR `c_str' has not been declared request for member of non-aggregate type before '(' token I have #include <cstring> …

Member Avatar for jonsca
0
383
Member Avatar for radovanov

Hello, I'm totally out of luck with creating a working patternt to match for my preg_match. What I would like to do is, create a pattern that will match sentenses in a bunch of text.. It should recognize a word that has a capital letter and take it as the …

Member Avatar for radovanov
0
118
Member Avatar for apanimesh061

[CODE]package stu; class student { int age; String name; public student() { name = "Animesh"; age = 19; } public void display() { System.out.println("Student name is : " + name); System.out.println("Age is :"+age); } }[/CODE] [CODE]import stu.student; class student1 { int marks; String sub; public student1() { sub = "Mathematics"; …

Member Avatar for peter_budo
0
122
Member Avatar for muze

hello guys...Due to some reasons I need to pass a variable's address to MeessageBox(). I am using a function which returns a pointer to the item selected from combo box. Now I want to show this item's name in the MesageBox(). How can I do that? thnx``````

Member Avatar for muze
0
86
Member Avatar for madan.uba@gmail

0 down vote favorite hi, I had a problem with adding reference in my C application. I am unable to add linker reference to "libiconv" in my data compresser project.I have download "libiconv" library but confuse in adding reference which show error in compiling.I'm using Dev C++ for developing my …

Member Avatar for Ancient Dragon
0
611

The End.