132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gnarlyskim

I have to be able to read text from a file then manipulate it to find the average value of an integral over a given bounds [a,b] from an input file, then export it to another file. I do not know how to store the information to process it. Say …

Software Development c++
Member Avatar for gnarlyskim
1
185
Member Avatar for whoamineo89

Hello oh helping minds I have a dilema...I've got to create a C language address book and not C++ or turbo C...I've already done a majority so far but I need help with a certain problem if there are any other problems please let me know. I keep getting an …

Software Development c c# c++
Member Avatar for Ancient Dragon
1
5K
Member Avatar for rockstar8577

I was wondering if its possible to specify the name of a file being created with a variable yet still specify the extension for the file. Example: [code] string name; cin >> name; ofstream myfile; myfile.open(name".sta", ios::out); [/code] i was wondering if you could do something of the sort i …

Software Development c++ file-system ios
Member Avatar for rockstar8577
1
73
Member Avatar for Tech E

I am trying to build a class with definitions that will output the following... Income tax for year 2009: Name: John Doe Address: 1234 Alphabet Lane, City, State Zip SSN: 111-11-1111 DOB: 11-11-1111 I have built my class and source code to define the function members. But I am running …

Software Development c++
Member Avatar for Fbody
1
123
Member Avatar for vegaseat

You can use Python modules math, wave, and struct to create and save a synthetic sine wave of given frequency and duration (size) ...

Software Development python
1
3K
Member Avatar for callister

Guys..Can anyone help me to explain what really happened in the while loop and both of the if else loop that makes this coding can find the root using bisection method.Thank you...[code]#include "stdafx.h" #include <iostream> #include <cmath> #include <iomanip> using namespace std; double f( double); int main ( int argc, …

Software Development c++
Member Avatar for StuXYZ
1
130
Member Avatar for ceyesuma

Could someone help me understand why my list does not have all the children of my element? (JDOM Element class) I wanted to send the items from the list to setters in another Class. [code] if (attributeValue.equals(name)) { Object k = element; if (k instanceof Element) { Element keyElement = …

Software Development xml
Member Avatar for ceyesuma
1
106
Member Avatar for neelu421

I have a string "Hello". How can I copy this string into an array in words e.g 'H', 'e', 'l', 'l', 'o'. Thanks in advance

Software Development
Member Avatar for Geekitygeek
1
700
Member Avatar for VernonDozier

The code below compiles, runs, and gives correct results. Note, however, the commented out "Experiment" code. I want to be able to call a function which accepts a variable number of parameters, which then calls another function and passes it those parameters. How can I fix the commented-code so that …

Software Development c file-stream
Member Avatar for VernonDozier
1
232
Member Avatar for cs_stud

Hi! I'm a BSCS student and currently working on an assignment about queues. We were tasked to solve a bank simulation problem. I got the header files for the teller and customer and both compiled successfully. Here are the header files: Customer header file: [CODE] //Header file cust.h #include <stdlib.h> …

Software Development c++ queue
Member Avatar for cs_stud
1
618
Member Avatar for data4use

Hi everyone, I wrote a dll which is export char* like; [CODE] extern "C" __declspec(dllexport) char* Test(void) { char* cts = "hi"; return cts; } [/CODE] and import the dll on vb.net like; [CODE] Declare Ansi Function Test Lib "[Path]" Alias "Test" () As String [/CODE] and call like; [CODE] …

Software Development c++ vb.net visual-studio
Member Avatar for data4use
1
151
Member Avatar for tusharvichare

Any one have idea about how to convert Visual C++ application to VB.net Or how to include VC++ application into the vb.net application so that function of VC++ application can use in to the VB.Net application. Thank you.

Software Development c++ vb.net
Member Avatar for kvprajapati
1
283
Member Avatar for Akirasan

Hello, I'm kind of new to C++ development in linux and I'm trying to make a multiplayer game. I know that it is a bit of complex program to start but I have some background on this type of program from other languages so I guess the most difficult part …

Software Development c++ client-server socket-programming
Member Avatar for Fbody
1
192
Member Avatar for ramya

Please can somebody help me with Question Papers and answer Papers on [B]C, C++. [/B] I have a Interview tomorrow. Thanks and Best Regards, RAMYA

Software Development c++
Member Avatar for mahesh.kumar
1
251
Member Avatar for Geekitygeek

Not sure if the title is the correct term for this, but i want to replicate the mailmerge style functionality in one of my apps. In other words, i would like to bind a keyword to a database field. For instance, whilst writing a description for a new stock item …

Software Development
Member Avatar for Geekitygeek
1
82
Member Avatar for wendell_

Hi all, I am trying to write a small game with a tiled gameplay area. I have a vector of Tile objects - vector<Tile> area_tiles; - and I'm trying to add Tile objects to this vector like so: [code] Tile t(); // initialize new tile object area_tiles.push_back(t); // and add …

Software Development c++
Member Avatar for mitrmkar
1
117
Member Avatar for ticktock

Hey all, I am currently creating a program that is like an automated food ordering menu. Imagine a form that has two listboxes (or listviews), the first listbox contains the items that can be ordered, I stored these items into an array and displayed them using a for loop construct …

Software Development gui listview
Member Avatar for ddanbe
1
306
Member Avatar for Kakespade

I've just started learning C++, and I'm having some problems running my programs. Even when I just copy the source code from my C++ tutorial book: [CODE]//----------------------------------------------------- // // add.cpp // // Program for adding two whole numbers // #include <iostream> using namespace std; int main () { int number1; …

Software Development c++
Member Avatar for NathanOliver
1
141
Member Avatar for TomW

I have a process that does a lot of data manipulation and then prints a simple report directly to a printer. The overall priority is speed. Tens of thousands of records need to be scanned & processed individually so moving thru them quickly as possible is the goal. Pseudo code …

Software Development dataset printer vb.net
Member Avatar for kvprajapati
1
177
Member Avatar for bsudhir6

I wrote a program for counting and printing characters in a data link layer frames i've succeeded in getting output for the first frame but for the other frames it showed not valid please help in the code If i give an input as 6sudhi4div then the integer in the …

Software Development c
Member Avatar for abhimanipal
1
188
Member Avatar for techie929

Hi everyone, I have to display a binary search tree in a tree format. For BST insertion, if the input contains the following F D R P V M N The resulting BST should be displayed as: [CODE=text] F +-- D | +-- NULL | \-- NULL \-- R +-- …

Software Development c++ display
Member Avatar for techie929
1
131
Member Avatar for abhimanipal

Hello People... I found this sample code online [code=c ] int main(int argc, char* argv[]) { struct bitfield { signed int a:3; unsigned int b:13; unsigned int c:1; }; struct bitfield bit1={2,14,1}; printf("%d",sizeof(bit1)); return 1; } [/code] I compiled this code on linux with gcc compiler and the output I …

Software Development c
Member Avatar for abhimanipal
1
94
Member Avatar for gtcoder

I am new to programming. If it's a dumb question please forgive me for wasting a thread. But I wanna know. Why is this code not working? [CODE] int main() { char sndex[6][8]; sndex[0]={"BFPV"}; sndex[1]={"CGJKQSXZ"}; sndex[2]={"DT"}; sndex[3]={"L"}; sndex[4]={"MN"}; sndex[5]={"R"}; [/CODE] The Compiler (MingW + DevCPP) is showing this: [CODE] In …

Software Development c c# c++
Member Avatar for gtcoder
1
1K
Member Avatar for fxpepper

Hello Can someone help me understand the difference? Human h = new Human(); or Man m = new Man(); vs. Human h2 = new Man(); recently I have seen an object instantiated like this - where it references this other object (after the "new" keyword ) I am trying to …

Software Development c c# c++
Member Avatar for kplcjl
1
558
Member Avatar for mrnutty

We are all tired of from our daily lives. So I suggest to sit back and play this game. I present here a hangman game( text version ) for your enjoyment. There might be some bugs as I haven't throughly tested it, so sorry if you find it( I'm sure …

Software Development c++
Member Avatar for mrnutty
1
290
Member Avatar for kvass

Hey everyone~! I have been studying for the AP Computer Science exam, and I have a question where I think Barron's is wrong, so if someone could confirm whether I am correct or not please let me know! The following code snippets are given: [CODE=Java] public interface Player { /* …

Software Development java
Member Avatar for kvass
1
89
Member Avatar for Topzturvins07

I used this code to store convert pictures to "[COLOR="Red"]binary[/COLOR]" inoreder to save in database but it stores only one picture from two pictureboxes. let someone show me how, you can convert pictuers in two seperate [COLOR="Green"][B]'picturebox ("picturebox1 and Picturebox2")'[/B][/COLOR] using the function in the code snippet on something similar. …

Software Development sql vb.net
Member Avatar for deleodesanmi
1
345
Member Avatar for SgtKung

For the record, no, I don't expect anyone to 'do' my homework for me. :) I simply have some questions and would like a bit of nudging, I suppose. This question was covered before but I'm not quite following everything, so I figured I'd ask a few more questions. The …

Software Development vb.net
Member Avatar for kvprajapati
1
110
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 …

Software Development java
Member Avatar for TheWhite
1
166
Member Avatar for wilsonz91

Hi, I recently bought a book-The Complete Reference C++ by Herbert Schildt. The first part explains about the similarities about C++ and C. The syntax used is different from the one my lecturer is teaching. eg: cout<< is replaced by printf cin>> is replaced by scanf I would like to …

Software Development c c# c++
Member Avatar for wilsonz91
1
201
Member Avatar for Purnima12

[CODE]print ('Why hello there!') print ('\n') print ('It seems I have been given the ability to process more complex commands...') print ('\n') yourname1 = input('Would you mind telling me your name?') print ('\n') print ('\n') print ('Thank you,', yourname1,',' 'who is that friend of yours?') print ('\n') print ('\n') yourname2 …

Software Development python
Member Avatar for Gribouillis
1
2K
Member Avatar for latszer

I am almost completely brand new to programming (been in my first programming class for about a month), and I am trying to learn stuff that my professor isn't teaching yet so that I don't get behind later, and I am doing this by writing simply programs and learning all …

Software Development c
Member Avatar for Narue
1
221
Member Avatar for Stubaan

Hi folks Can anyone explain to me why this is not working please? I am trying to delete the first 52 lines of a text file, then skip deleting the next line, then deleting the next 100 lines, then skipping the next line and repeating the process until the file …

Software Development python
Member Avatar for Stefano Mtangoo
1
120
Member Avatar for BarakH

Hi guys, First of all I'm new here so how are you all? and nice too meet you! :) My name is Barak, I'm a first year student in Computer Science although I have some experience (studied in John Bryce). We recently had a test where I think my teacher …

Software Development c++
Member Avatar for tetron
1
113
Member Avatar for izyrider

Hi, My first post, please be gentle. I have 64 booleans - all must be displayed on a single screen as a series of checkboxes ([B]no[/B] - I don't care about the 65th bool, [B]yes[/B] - it [U]must[/U] be a single no-scroll screen on the UI). As a VBA-refugee, I …

Software Development vb.net
Member Avatar for izyrider
1
88
Member Avatar for holocron

Hello all, Here I intend to reverse a line of text ending in a newline, but only the individual words will be reversed, not every character. For example, "This is just a test." would output ".test a just is This". The code as stands prints a space for every character …

Software Development c
Member Avatar for WaltP
1
693
Member Avatar for wolfhunter777

This assignment is about a space ship fighting game. It's turn-based between the player and the computer. I'm suppose to create this function that will transfer the ship upon death to the one who destroyed the ship. For example, lets say the player manages to destroy one of the enemy's …

Software Development c++
Member Avatar for WaltP
1
107
Member Avatar for jemz

hello please help me on this ahm i want my picture to be bmp file so that i can place in my gui ..hoping for your positive responds

Software Development gui visual-basic
Member Avatar for codefixer
1
98
Member Avatar for mikecole79

I recently wrote a small program to help people log into our office VPN without having to have IE open (at least not visible) so that we can do what we need to do when not at the office without having to have that on the Taskbar, too. Works great …

Software Development assembly open-source visual-studio
Member Avatar for mikecole79
1
151
Member Avatar for nola_Coder

This seems like something pretty basic, and I'm sure I'm just missing something, but I can't figure it out. I've been searching for a bit, and find several different suggestive solutions, but none of them were working for me. I'm sure I was doing something wrong. What I want to …

Software Development c++
Member Avatar for nola_Coder
1
122
Member Avatar for iru

Gentlefolk, Using C# in VS 2005. I have a struct (some components deleted for simplicity) : [code] public struct CoOrdData { public int[] coOrdMaxArray; // = new int[3]; // XYZ co-ord maximum .. .. } [/code] This is used in the following objects: [code] public CoOrdData GraphData = new CoOrdData(); …

Software Development
Member Avatar for apegram
1
172
Member Avatar for Dearster

Few problems I'm having with Java at the moment, would be grateful if any of you could give me a hand. Wrote this piece of code to input 2 numbers from user, square root of 1, and cube root of another. Program works but I want to know while using …

Software Development java
Member Avatar for javaAddict
1
117
Member Avatar for lrh9

I was wondering if anyone knows of any resources about building a custom importer. I've found this: [url]http://www.doughellmann.com/PyMOTW/sys/imports.html[/url]. I am also aware of PEP 302 and PEP 369 and imp and importlib. Are there any other resources I might need?

Software Development python
Member Avatar for lrh9
1
460
Member Avatar for ndeniche

Ok. So. I'm trying to develop an application to capture the input buffer to identify a device's input commands to build a user control that uses this commands for further use. I'm actually developing a project that simulates Guitar Hero, and I want it to recognise the Guitar Hero Controller's …

Software Development vb.net
Member Avatar for Offsprey
1
331
Member Avatar for Malaoshi

Hi everybody, I have a quite simple question, at least I think it is, even though I don't have a clue how to do it. I have to do a project at university and I am supposed to compare differences of a newspaper. Anyway I can download every single page …

Software Development pdf
Member Avatar for Malaoshi
1
201
Member Avatar for BruenorBH

I am trying to open a cmd window as an admin but it never works. I can open a command window but it does not open as the admin.. Here is my code (VB.NET 2008).. [code] 'This is in a module Public strUserName, strPassword, strDomain As String Public SecPassword As …

Software Development vb.net
Member Avatar for BruenorBH
1
203
Member Avatar for chern4ever

this is my code, can anyone find out why do i get error? i don get error if i change my array column to lower than row. [CODE]import javax.swing.JOptionPane; public class Chern_sales{ public static void main(String[] args){ double[][] sales = new double[6][7]; double[] total = new double[6]; double[] totalPerDay = …

Software Development java java-swing
Member Avatar for masijade
1
104
Member Avatar for Gribouillis

This snippet defines a class OptCmd which adds line and options parsing capabilities to the python standard lib's cmd.Cmd class. It allows you to quickly write an extensible command line interpreter. To use this module, you will need [url=http://www.daniweb.com/code/snippet234768.html]this other code snippet[/url], saved as a module named 'argv.py'. Enjoy the …

Software Development python
1
1K
Member Avatar for Gribouillis

Some time ago, I was writing a small command line interpreter, with the help of [url=http://docs.python.org/library/cmd.html#module-cmd]the standard module cmd[/url] which offers minimal support for such tasks, and I had the problem that this module doesn't have a function to parse a command line to produce a list argv which can …

Software Development python
Member Avatar for Gribouillis
1
875
Member Avatar for Metraton

Hello guys, that's my first post around here and I have a problem with binary files. I'm writing a simple editor for my arkanoid clone game. This editor opens a binary file defined by this: 0-26 byte: Descriptor for the file. Once in each file. 27->(1141*n): Levels inside the file, …

Software Development c++ file-stream ios
Member Avatar for Metraton
1
186

The End.