132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for afromong

basically if i ask for an string i.e. i ask someone a question cout<< "is this correct yes or no?"; cin >> a; and then a number is input the program just goes crazy how do i solve this??

Software Development c++
Member Avatar for stilllearning
0
89
Member Avatar for Clockowl

Hey guys, I was wondering if realloc() copied the contents of the block of memory to the new block "on most compilers" IF the new size is bigger. I like to learn good ways to program something, but don't want to reinvent realloc just because it doesn't work on <reallyoldcompiler>. …

Software Development c
Member Avatar for Salem
0
306
Member Avatar for kenji

Hey guys I'm having a strange problem with my program and I'm not sure how to solve the problem. I have a function which takes an array clears multiple white spaces to make a sentence so [code=CPLUSPLUS] "abc def ghi" //becomes "abc def ghi" [/code] and it returns the length …

Software Development c++
Member Avatar for stilllearning
0
76
Member Avatar for cassie_sanford

im making a generic website for my class and we have to post a graphic for this website from this cd that came with the book. Problem is, i can't get the Image URL to post my graphic. I tried using the image button and the image thing in the …

Software Development first-post vb.net
Member Avatar for Teme64
0
167
Member Avatar for BINDERJ2

[code] #include <iostream> using namespace std; int main() { int speed, time, distance; // Get the speed. cout << "What is the speed of the vehicle in mph?\n"; cout << "(Enter a value greater than 0): "; cin >> speed; // Validate the input. while (speed < 0) { cout …

Software Development c++
Member Avatar for stilllearning
0
183
Member Avatar for DemonGal711

Okay, I know what's wrong with my program but I don't know what to do to fix it. I have to take a program we previous made and make it a template class. Okay, sounds easy enough. I know all the writing it right cause it ran fine before, now …

Software Development c++
Member Avatar for Alex Edwards
0
3K
Member Avatar for kittycat07us

Hi, I'm having trouble coming up with a function that scans a word, starting from bit StartingBit, until the first zero bit is found. The function is suppose to return the index of the found bit and if the bit at StartingBit is alrieady what sought, then startingbit is return. …

Software Development c++ os-x
Member Avatar for Alex Edwards
0
414
Member Avatar for shopnobhumi

I need to write a program where it would ask the user to enter a positive even number,when entered if wrong then it would say value is illegal and will terminate the program. If it is even then program prints out the square of the number. I have just started …

Software Development c++
Member Avatar for shopnobhumi
0
99
Member Avatar for Razzar

Hello I have this code bellow i need some help with. im trying to make a number game but i have a problem that i cant solve, the loop i made dosent update the grid like it's supposed to do. when you first start it you will se 2 grids …

Software Development c++
Member Avatar for skatamatic
0
124
Member Avatar for ajay23

Hi all, I am new to shell script. I'm currently running a java application using shell script. When i'm running the java applicaton i need to print all the System.out.println() statements in a file. I don't know how to implement it.. Can any one help me on this. Thanks in …

Software Development shell-scripting
Member Avatar for eggi
0
69
Member Avatar for skvikas

Hi All, Here i am with another question . When i execute the code below the destructor in Stone is called twice . Why? In main [ICODE] set<Stone> stones = bag.letMeSeeStones(); [/ICODE] is coming from reference hence "stones" should not be treated like a local object. [CODE=C++] #include <iostream> #include …

Software Development c++
Member Avatar for ArkM
0
87
Member Avatar for freshfitz

Tring to pass variables to payflow pro. I found a script already written but how do I pass the variable from textbox? Where post.append is I need the value of my textbox's ----------------------------------------- .aspx [code=csharp] <asp:TextBox ID="balanceTextBox" runat="server" Columns="20" Rows="4" Text='<% #Bind("cardacct")%>' ValidationGroup="add"></asp:TextBox> [/code] ----------------------------------- .aspx.cs [code=csharp] using System; using …

Member Avatar for freshfitz
0
241
Member Avatar for afg_91320

its me again! (and yes im stuck on yet another problem ***) i have created a code where the user is asked to choose a geometry formula and can solve a problem using any of the choices that are shown. now this code uses the switch function, but for my …

Software Development c++
Member Avatar for Lerner
0
199
Member Avatar for hell_tej

Hi Folks, I Trying to Copy File UJF.mdb in another Location which is User Specifyed. I Closed All Connection, But Still ERROR 70 'Permision Denied' Occurs :'( [ICODE] rs.close con.close FileCopy "D:\UJF\UJF.mdb", "D:\Person.mdb" MsgBox "Backup Successfully Compleated", vbInformation [/ICODE] How to Copy Access 2003 .mdb File to Another location Without …

Software Development visual-basic
Member Avatar for hell_tej
0
194
Member Avatar for pardeep3dec

Hi friends, Please give me the solution of making a project multiuser on LAN. I am using Ms Access as backend tool. When i run that programme on another PC then it shows file already in used and programmes goes out. Pardeep

Software Development visual-basic
Member Avatar for hell_tej
0
96
Member Avatar for hell_tej

Hi friends, I m creating a software with backend of ORACLE 9i. I need to Generate backup ORACLE "ADDFILDP" table to ACCESS "ADDFILDP" table(Simply Copy the data to one table to another[ORACLE to ACCESS Table]):$ An access File is already Created. I was code for it as Follows [ICODE] Private …

Software Development oracle visual-basic
Member Avatar for hell_tej
0
106
Member Avatar for cloudii

Hi, I'm learning intro to c++. My question is, how do I input values that come from a different text file so that the program uses those values for calculations? Basically, it gives me a list of numbers and tells me what the numbers are for... and then I have …

Software Development c++ file-system
Member Avatar for Freaky_Chris
0
174
Member Avatar for blackryu21

I have to match up airlines for flights in c++, but for certain matchups, the value would be equal to x. I need help to do it. Here's the code I have so far: [code] #include <iostream> using namespace std; int main() { int nROWS = 4; int nCOLUMNS = …

Software Development c++
Member Avatar for stilllearning
0
136
Member Avatar for jcafaro10

Hello, I'm new to python and I'm trying to learn how to read/write programs written in python using eclipse. I'm used to java so a lot of things are familiar but a lot of things aren't and I'm having trouble finding a good place to go to learn what different …

Software Development api python
Member Avatar for lllllIllIlllI
0
99
Member Avatar for n03ly

Hi Guys, I have an assignment to do a gpa calculator using class construction and an array of grades. The assignment is to have a class called Student and have a user enter an ID and then enter however many grades they want and then have the program calculate the …

Software Development c++
Member Avatar for n03ly
0
722
Member Avatar for gangsta1903

I want to draw a tree in Jframe, the tree view is available in the attachment, As you see there are nodes connecting to each other.I know that I have to find the midpoint of the nodes at the same level or things like that. What I want your help …

Software Development image java java-swing
Member Avatar for Ezzaral
0
3K
Member Avatar for it2051229

I'm trying this tutorial using the get system metrics functions so what i did was to include the windows.h preprocessor directive although when i'm trying to compile my program i get th e error "undefined symbol '_GetSystemMetrics@4'. I'm using TCC as my compiler.

Software Development c c# c++
Member Avatar for Narue
0
117
Member Avatar for rrreeefff

Hello! I am working on some code for a program that squares,sums and divides 3 numbers: [code=cplus] int num,sq,sumd; int a; int b; int c; printf ("Please enter a positive integer for a/n"); //input scanf ("%d", &a); printf ("Please enter a positive integer for b/n"); //input scanf ("%d", &b); printf …

Software Development c
Member Avatar for ahamed101
0
105
Member Avatar for amerninja2

[COLOR="Red"]How can I get a compiler for C++ like Dev-Cpp to support chinese character and pinyin input? Like if I wanted to make a chinese program that would allow chinese input and output in the console window... Example:[/COLOR] [CODE]#include <iostream> using namespace std; int main() { wchar_t input; char loop; …

Software Development c++
Member Avatar for Salem
0
2K
Member Avatar for Jayaprakash.BS

Hi, I want to read .wav file from the any directory in windowsXP and draw the graph of that particular file using C or C++ code.. Can anyone help please?????

Software Development c c++
Member Avatar for ahamed101
0
82
Member Avatar for OriginalCopy

Hi. The following calculator will return wrong values for operations which are more complicated than <INTEGER><OPERATION><INTEGER>. I suppose I'm making a mistake in parser.y, but I can't figure out what. I know there are mistakes, memory leaks and other technical issues I'm doing wrong, but please concentrate on my biggest …

Software Development c
Member Avatar for ahamed101
0
884
Member Avatar for kittycat07us

Hi, I'm having trouble coming up with a function that scans a word, starting from bit StartingBit, until the first zero bit is found. The function is suppose to return the index of the found bit and if the bit at StartingBit is alrieady what sought, then startingbit is return. …

Software Development c++ os-x
Member Avatar for Salem
0
167
Member Avatar for skvikas

Hi All , I am facing some error in destructor in my class. Below is the constructor and destructor. Constructor seems to work fine . While the class get destructed it give the following error *** glibc detected *** ./main: double free or corruption (fasttop): 0x08743cd0 *** ======= Backtrace: ========= …

Software Development c++
Member Avatar for skvikas
0
149
Member Avatar for laspal

hi, I am using reportlab to generate pdf but having a problem in making list in tabular format. final list should be in this format: list =[ ['companies', 'industries'], ['1', '11'], ['2','22], ['3', '33'] ] data =[] data.append('companies') for item in some_list: data.insert(0, item) -> Assuming item gives me values …

Software Development pdf python
Member Avatar for woooee
0
107
Member Avatar for grisha83

Hello, i have wrote a program using the while loop but it crashes whenever i run it Basically, the goal of a program is to calculate the population of a town with constant 10% growth annually and then find how many years left. here is my code (any help will …

Software Development c++
Member Avatar for grisha83
0
171
Member Avatar for sanfan49er

Hello once again fellow programmers I need help with a C# program. The program is supposed to include fields named radius, are and diameter. I got most of it up but it is not working saying there does not contain a static 'Main' method for suitable entry point. [code=charp] using …

Software Development c#
Member Avatar for LizR
0
188
Member Avatar for Stefano Mtangoo

Hello All, Greetings! I have question concerning OOP with Python. I want to know when Python class or being specific, how py class ends in package like wxpython. What I mean is I have one class let say of frame and another class of a dialog box all in same …

Software Development oop python
Member Avatar for Stefano Mtangoo
0
101
Member Avatar for chris5126

Hi guys, I am creating a monitoring program. I need to create a windows service to send a ping request to a list of servers from a sqp server database then store the results back into a sql server database. Need some help gettin started can i run the windows …

Software Development c# windows-server
Member Avatar for LizR
0
134
Member Avatar for absu

Hello, I am opening a calendar popup when user clicks on a button but here I have to click twice to get this calendar. On the 1st click it doe not do anything but on 2nd click it shows up the calendar. here is my code- [code=csharp] <script type="text/javascript" > …

Software Development
Member Avatar for LizR
0
114
Member Avatar for bjaanes

I have a standard Windows Forms Application project with an SQL database connected to it. It got some textboxes and stuff. But the tricky part for me is the checkboxes (bit values). It says (as far as I can see) in the properties that their checkstate should be Unchecked. And …

Software Development
Member Avatar for LizR
0
88
Member Avatar for SoulMazer

Well, I have recently created a "translation" program. It basically asks what languages you would like to translate between, then goes to the appropriate page on a translation website. I have integrated an option to keep using a language, rather than having to start at the main menu again. Except, …

Software Development python
Member Avatar for SoulMazer
0
158
Member Avatar for coveredinflies

Hi I am outputting data to a spreadsheet and have looped through one set of values. Later on I want to put some more values in the next column, I can move across to the next column but don't know how to get back to the top. Is this possible …

Software Development c++
Member Avatar for coveredinflies
0
87
Member Avatar for joed13k1941

I have to convert this program that I wrote to use switch case statements to handle user input (+, -, /, *, X). Any ideas? [code]#include <iostream> #include <string> using namespace std; int main() { double total = 0, counter = 0; char sign, X = 0; double value; do …

Software Development c++
Member Avatar for joed13k1941
0
118
Member Avatar for pravdexter

Hi all, How to Enable/Disable port of a system by triggering the URL through Python program. Please help if possible.

Software Development python
Member Avatar for pravdexter
0
109
Member Avatar for johanna26

I need to reproduce the following java applet (click potometer simulation) to modify with some more parameters. [url]http://kegsnet.org.uk/mod/resource/view.php?id=2760[/url] I tried to retrieve the applet class file (Potometer.class)but could'nt get it... Can anyone guide me in extracting the code... Thanks, Johanna

Software Development java
Member Avatar for MoZo1
0
119
Member Avatar for need_Direction

Hi, I wanna ask how to create 3D volume object contains x, y, z without using 3D array in Java?

Software Development java
Member Avatar for MoZo1
0
169
Member Avatar for corteplaneta

Hi, I'm not too experienced with .NET programming, but I was wondering if anyone knows of a custom control in VB.NET that involves a list (sort of like a ListBox), with at least 2 columns, and the ability to select individual members of this list. I basically have a dynamic …

Software Development vb.net
Member Avatar for corteplaneta
0
195
Member Avatar for cutedipti

Hi, I have one query that: Can we write [B]a function similar to printf()[/B]? If it is possible then how could it be written?

Software Development c
Member Avatar for Narue
0
128
Member Avatar for alin_yuhee

i want to make a simple game with c++ but i really do not know how to do it:-/ ....can somebody help me to do that because i really want to know how to make a game by using c++...:?:

Software Development c++
Member Avatar for William Hemsworth
0
124
Member Avatar for rrreeefff

Hi I am working on a program that computes the sum of N in increments of 3. I do not have any errors but when you run the program it does not compute correctly for example if you enter 2 for n the sum should be 5 [code=cplusplus] #include "stdafx.h" …

Software Development c
Member Avatar for Amisha_Sharma
0
135
Member Avatar for cproud21

I have the following programming challenge to complete, and am stuck. I know what i have to do, which is to get information from the other three classes into the parking ticket class, and then print the parking ticket using an if statement if the time has expired. I am …

Software Development java
Member Avatar for PoovenM
0
166
Member Avatar for amardhembare

Hey Guys, I'm developing window based software application in c# in which I need to give login process with user privilages for different forms. can anybody tell how is the login process implemented for window based applications in .net? and what abt user privilages?

Software Development
Member Avatar for LizR
0
129
Member Avatar for swapna7999

if anyone knows how to capture images from a webcam or digicam using vb plz help

Software Development visual-basic webcam
Member Avatar for irshadAhmed
0
152
Member Avatar for suganzeni

Hi to all I am working with Sql server ce for mobile application with vb.net. I want to crete a table before that i have to check weather the table exists or not. Also want to know about Object id in sql server and how to create it. Thanks and …

Software Development sql vb.net
Member Avatar for vinu_32123
0
219
Member Avatar for masterovpuppetz

I wanted know if there's a way in c++ to know what character exists at a particular x,y coordinate. for eg: suppose i used [B]gotoxy(2,5)[/B] and my cursor is now at (2,5) and i want to know what character exists next to my cursor at (3,5). How can i know …

Software Development c c# c++
Member Avatar for masterovpuppetz
0
148

The End.