199,124 Archived Topics

Remove Filter
Member Avatar for
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) ...

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, …

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 = …

Member Avatar for ceyesuma
1
106
Member Avatar for andydeans

hi, i have designed my clients site, and currently you can login and add a client, i then have a few tables which are policies that are sold to the client. i have created a foreign key between the policy table and the clients table. what i want to do …

Member Avatar for diafol
1
287
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

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 …

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> …

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] …

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.

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 …

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

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 …

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 …

Member Avatar for mitrmkar
1
117
Member Avatar for Zagga

Hi again folks. I have a PHP member registration script that collects registration details from the user, encodes the password (with RIJNDAEL_256) and emails the user a URL containing all the variables so I can verify the email address is correct. The user clicks on the URL, the correct page …

Member Avatar for Zagga
1
170
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 …

Member Avatar for ddanbe
1
307
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; …

Member Avatar for NathanOliver
1
141
Member Avatar for whiteyoh

Hi, Ive posted this in a mysql forum, but the more i think about it i think php is really where i think the solution lies. When i call a row, how could i count the number of empty entries? so say its an address with 5 lines, and ive …

Member Avatar for whiteyoh
1
88
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 …

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 …

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 +-- …

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 …

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 …

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 …

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 …

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 { /* …

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. …

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 …

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 …

Member Avatar for TheWhite
1
166
Member Avatar for happygeek

The Nintendo Entertainment System (NES) is not the most valuable of old video games consoles, and you can pick them up for less than $50 across America. Which is probably why the lady who goes by the name of lace_thongs35 was rather surprised to [URL="http://www.hotbloodedgaming.com/2010/02/11/would-you-pay-13105-for-an-nes-with-5-games/"]see hers sell[/URL] for $13,105 on …

1
658
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 …

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 …

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 …

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 …

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 …

Member Avatar for tetron
1
113
Member Avatar for virtualmisc

Hello Friends I have a php script. I have checked for copyright of the same but couldn't find any legal information. I am planning to make drastic changes to the script to make a new one. So Can I get the copyright rights for the same?

Member Avatar for diafol
1
97
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 …

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 …

Member Avatar for WaltP
1
694
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 …

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

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 …

Member Avatar for mikecole79
1
151
Member Avatar for DeanM

Hi everyone! this is my first post here! hope to learn a few things!! i read the thread about students looking for easy answers to assignments! i understand the point. i am not like that. i am a member of other forums too and contribute what i can! on one …

Member Avatar for Nick Evan
1
181
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 …

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(); …

Member Avatar for apegram
1
172
Member Avatar for mikeSQL

[B]Intro[/B] This tutorial shows how to greet your visitors depending on what time of day it is. If it's morning, it greets your visitor with "Good Morning!" If it's afternoon, it greets them with "Good Afternoon!" Magic? Noooo! Just PHP! [B]Getting started[/B] We will start by looking at the entire …

Member Avatar for theplayground
1
2K
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 …

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?

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 …

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 …

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 …

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 = …

Member Avatar for masijade
1
104

The End.