132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tex09

The contents of the array are safe within the function, however, upon returning to main the data becomes garbled. section of main: [code=c++] unsigned short tcp_port = atoi("8080"); const char* workDir = "WhatInthe?"; // Parse command line arguments if ( parseCmdArg( tcp_port, workDir, argc, argv) == 1) return 1; cout …

Software Development c++
Member Avatar for Tex09
0
203
Member Avatar for sneek

Hi, may anybody tell me why there is a init AND a new-method? Why not using one constructor-method like we have to use in java and other OO-lanuages?? Would be nice if somebody can give me an idea about that. Thanks a lot Jonny

Software Development python
Member Avatar for sneek
0
190
Member Avatar for nertos

Hi, i have a little problem, i dynamic generate a buttons in two columns [CODE=c#] for(i=0;i<=10;i++){ Button prz = new Button(); prz.Location = new Point(12,40+i*25); prz.Name = "But"+(p-i)+"up"; prz.Image = Image.FromFile(picture_from_file_1); prz.ClientSize = new Size(20,20); prz.Click += new System.EventHandler(this.Button_Click_Code); Controls.Add(prz); Button prz1 = new Button(); prz1.Location = new Point(45, 40 …

Software Development gui
Member Avatar for nertos
0
355
Member Avatar for AbsoluteCPP

[B]Description[/B] I want to have a video conference system. [LIST=1] [*]That is the client-server model. [*]The client can send audio/video/document(like ppt.doc.xls..)/application sharing/chat functions. [*]The client's window can receive 16 videos(from other clients). [*]The client can work on windows platform. [*]The server can work on windows or linux(it's better). [*]The video …

Software Development api audio c++ client-server session windows-api
Member Avatar for AbsoluteCPP
0
119
Member Avatar for NitaB

Hey guys! I guess my other post wasn't so clear...probably because I wasn't sure what exactly I was trying to do. Anyway, right now I am having problems reading my input file into my 20x20 2D array. I mean, it compiles fine. But, I have a print function just to …

Software Development c++ file-system
Member Avatar for NitaB
0
174
Member Avatar for natureG

Hello, I am having a problem. The task I have been given is to implement a queue using a linked list. One of the functions of the program is it accept input from the user and write this to a file. The program, thus far, accepts the information, but prints …

Software Development c file-system linked-list queue
Member Avatar for meghana8818
0
882
Member Avatar for samsons17

This is the answer for one of the simple function question from my programming lab... [CODE]#include <iostream> using namespace std; void displayHi(); int main(void) { displayHi(); } void displayHi() { cout<<"I love c++"; } [/CODE] but what i dont understand is why we should put [B] main(void)[/B]?? why dont simply …

Software Development c++
Member Avatar for Ancient Dragon
0
156
Member Avatar for confusedndazed

I'm having trouble understanding how to write a function call. This is what I have so far: [CODE]#include <ionstream> using namespace std ; int binomial(int n, int k) ; // function prototype int main () { int n, k ; // parameters for the binomial number int result ; cout …

Software Development c++
Member Avatar for amrith92
0
146
Member Avatar for lewashby

I have to prgrams and thus, two question to ask. In the following program how does the line [COLOR="Red"]status = staticmethod(status)[/COLOR] do anything? My python programming book somehow connects it to the line [COLOR="Red"]Critter.total +=[/COLOR] 1 but I don't see how? Please explain. [CODE]# Classy Critter # Demonstrates class attributes …

Software Development python
Member Avatar for vegaseat
0
194
Member Avatar for juniper2009

Dear All I am trying to create a list of characters already given as below. When I compile it it gives me following errors. In function `int main()': 17: error: `islowerCase' undeclared (first use this function) 17: error: (Each undeclared identifier is reported only once for each function it appears …

Software Development c++
Member Avatar for amrith92
0
145
Member Avatar for Moonrise_state

Hi, In a terminal program I'm writing values are inputted and stored in a pair of arrays. At one point in the program I need to print them back out. My problem is that if I input 1.10, Java gives me 1.1. I really need it to print the zero …

Software Development java
Member Avatar for Moonrise_state
0
90
Member Avatar for pankaj.garg

i have a VB6 application using DAO and other reference libraries...so i used Package & Deployment wizard, so that it works on other machines as well...now my application size has increased from "79 KB" (my earlier exe + DB Files) to whooping "30 MB" (entire package). Please guide me how …

Software Development visual-basic
Member Avatar for pankaj.garg
0
155
Member Avatar for AbsoluteCPP

This must be a frequently asked question, but I can't find the answer in the FAQ, or in the recent archive of this list, or by using google with the keywords I thought of. I would like to use libavcodec.dll and libavformat.dll in my Windows XP Visual C++ 2008 project. …

Software Development c++ video visual-studio
Member Avatar for programmersbook
0
305
Member Avatar for ffs82defxp

i recently found that variables set in a function cannot be used in another function. so to make variables 'universal' i have to make them global variables? and you do that buy stating them global, like this? [CODE]global [VARIABLE NAME]=[VALUE][/CODE] i have a feeling there is more to it.

Software Development python
Member Avatar for vegaseat
0
381
Member Avatar for samsons17

HI.... I'm doing this question... [B]Question Using a non-void function with parameters, write a complete C++ program that prompts the user for the Cartesian coordinates of two points (x1, y1) and (x2, y2) and displays the distance between them computed using the formula: distance = sqrt( (x1-x2)^2) + ((y1-y2)^2)... [/B] …

Software Development c++
Member Avatar for hajiakhundov
0
244
Member Avatar for ffs82defxp

is there a command or fuction in python that deals with email? like: [CODE]email(ibmceo@ibm.com, 'Hello, my name is Bill. How are you doing at IBM?', email.cc(),attach("C:\123321.txt"))[/CODE] :D

Software Development email python
Member Avatar for vegaseat
0
86
Member Avatar for Jiwe

I made a function SetRegistry() to write a string in the registry like this: [CODE] void SetRegistry() { HKEY hKey; RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Run"),0,KEY_SET_VALUE,&hKey); RegSetValueEx(hKey, TEXT("filenamehere"),0,REG_SZ,(LPBYTE) "C:\\Windows\\filenamehere.exe",sizeof("C:\\Windows\\filenamehere.exe"); RegCloseKey(hKey); } [/CODE] NOTE: C:\\Windows\\ is the path where the .exe file I want to add is. it sets the string with the filename and …

Software Development c++ microsoft-windows
Member Avatar for Jiwe
0
2K
Member Avatar for Annettest

Hello everyone: I am a C++ newbie; I am interesting in using C++ in my work on coupled fluid flow-chemical reaction problems. I apologize in advance for what is probably a very simple question. I would very much appreciate some help to get me on the right track! My goal …

Software Development c c# c++
Member Avatar for Nick Evan
0
239
Member Avatar for jas2010

I Want transfer updated data between 2 Database MySQL that One of them is in the server Host and other is over localhost . Now What should I do? I'm waiting for your answer

Software Development mysql
Member Avatar for jas2010
0
87
Member Avatar for foxmulder

Hi! I put this simple, I got an assignment that's following: [B]Write a function that return the amount of all integer from zero (0) to a number that was given as an argument.[/B] How do I do, I dont even understand the question? Thanks in advance! //Adam

Software Development c++
Member Avatar for samsons17
0
142
Member Avatar for nunchuckie

Hi guys, I'm trying to find a way to read a chosen line from a text file. Like I want to read line 2 and then the program will find the second text line for me to read. Any tips? :)

Software Development c++
Member Avatar for nunchuckie
0
137
Member Avatar for adi.shoukat
Member Avatar for Narue
0
187
Member Avatar for gispe

Hi!! im doin a proyect that have to create a library, n create, delete an modificate books to the library. im using a listview to show all the books that r created, n should delete books that i deleted n if a modify one, should delete it n then upload …

Software Development file-system listview vb.net
0
111
Member Avatar for ausrasul

Hi, I've wrote a C++ program on windows (client-server) using gcc with following commands: [code] SOCKET(...) bind(..) select(..) recv(..) send(..) close(..) [/code] 1- If I want to convert the application to use SSL3, what should I change? I need a general overview to get me started. 2- If I want …

Software Development c++ client-server
Member Avatar for programmersbook
0
261
Member Avatar for jaison2

I need help with the function but i have no clue how to?.. the function should generate a random number between 1 and 100 and then allow the user to guess the number. After each guess it should display if the guess is too high or low and if they …

Software Development python
Member Avatar for snippsat
0
208
Member Avatar for Web_Sailor

Hi, I am struggling with a Layout problem. Here is the definition of the problem:- 1) I have a JFrame where I specify space alignment in GroupLayout for JScrollPane as per the other (JButton/ comboBox etc..). My JScrollPane contains a JTable. I use get and set methods to set scrollpane …

Software Development java
Member Avatar for Perveance
0
185
Member Avatar for NicholasE

Dear members, I need to write a small loop to generate the following: 0 0 0 0 .... 0 1 1 1 .... 1 2 2 .... 2 3 .... 3 4 : 299 I think it needs a double loop but since i am still beginner in python i …

Software Development python
Member Avatar for NicholasE
0
111
Member Avatar for fdsaasdf

Hi everyone, I don't understand why this doesn't update my actual MS Access 2003 mdb file. During debug phase, I learned that it updates the dataset and creates new rows. But it doesn't reflect into the database. Why is it so? Please help me out. Thanks in advance.[code]else { //Auto …

Software Development dataset
Member Avatar for DdoubleD
0
191
Member Avatar for fazeleh

Hello How i can find the source code of Treeview of c# .Net? tnx

Software Development
Member Avatar for DdoubleD
0
104
Member Avatar for blamp

Can someone help me figure out why nothing comes up on the output screen. The program compiles but the the output is blank. 1. Maintain information on all students. Each student has the following: 1st line - lastname, city of residence, student id, ssn 2nd line - course, course id, …

Software Development algorithm c++
Member Avatar for pecet
0
132
Member Avatar for plastic

hi i used a scrollbar in my panel. but when i scrollup or down the panel flickered.

Software Development file-system
Member Avatar for ddanbe
0
212
Member Avatar for stacia

hi i am a fourth year computing major and i need some help with the following assignment. The program is to simulate the operation of one day's activity at an airport, and output the times waiting to land and take off for each BWIA flight. the program should include the …

Software Development c++ queue
Member Avatar for m_usman
0
2K
Member Avatar for Mattpd

I am trying to take a user's input and assign it to a certain part of a structure. This code is in my book so I assume it's correct: [code] scanf("%d", &part_number); inventory[num_parts].number = part_number; [/code] I need to do the same thing but with a string instead of a …

Software Development c
Member Avatar for Mattpd
0
138
Member Avatar for red999

Whenever I am getting a line from a file by using the string getline() function, I seem to be getting an extra character. I am curious to know what exactly that character is. It recently caused me a bit of trouble trying to debug. Let's say the file is like …

Software Development c++
Member Avatar for Ancient Dragon
0
145
Member Avatar for Mathura

Dear colleagues I am currently working on designing a scheduler using Borland C. I am struck with the concept of interrupts. I am trying clock tick interrupt for task switching. In all materials they say you will continue to your regular job until the interrupt occurs. I don't think it …

Software Development c
Member Avatar for Mathura
0
129
Member Avatar for tomtetlaw

When I try to run my program( which is a test entity system for anyone who's wondering ), I get a Stack Overflow error, and I cannot find the source of this error. Here is my code: baseentity.h: [code=c++]#ifndef BASEENTITY_H #define BASEENTITY_H #include <vector> #define DECLARE_CLASS( className ) public: virtual …

Software Development c++
Member Avatar for tomtetlaw
0
240
Member Avatar for NitaB

Hi again! I've been working on this program and I am thankful for all the help and tips I've gotten from this forum. However, at the moment I can't seem to get this selection sort to work on my array. I've tried it 3 different ways(will post code below) and …

Software Development c++
Member Avatar for NitaB
0
135
Member Avatar for SoulMazer

So, I have a script that needs to "clean up" when it is exited: it needs to clear a special logging file and other small things that affect the next startup of the script. The script has a GUI written in Tkinter, if that is relevant at all. Is there …

Software Development gui python tkinter
Member Avatar for SoulMazer
0
103
Member Avatar for sexyzebra19

I'm testing this program for: x^2 + 0.17714x -2.5147583 with k = 1.4997 I've been looking at this for hours and have worked through it on paper, but can't figure out why line 59 is calculating C[1] as 0.17714. C[1] should be 1.6768. Can anyone please help me figure this …

Software Development c++
Member Avatar for mrnutty
0
112
Member Avatar for willygstyle

Hello all, I have been trying for a few days now and done quite a bit of reasearch on the internet and this website to find out how I can authenicate to a website. It could very well be that this particualar web server is picky I'm not to sure. …

Software Development python web-server
Member Avatar for willygstyle
0
185
Member Avatar for Eternity[LK]

Hello :) This is my first post on daniweb forum and I hope this site will help me improve. I'm a first year college student in computer science, and I've only recently started C++. This means that code posted by me might seem very lousy and /or unprofessional. I have …

Software Development algorithm c++
Member Avatar for Eternity[LK]
0
97
Member Avatar for aBenjamin

this is a small example that, i hope reflects the larger project that i am working on. i am making a board game that uses a combination of mouse listener and jbutton action listener for the player to move. when it is time for the computer to take its turn, …

Software Development java java-swing
Member Avatar for Ezzaral
0
2K
Member Avatar for papanyquiL

Hi everyone. I've got this code that I've been following along with a sample. However, whenever I debug it, I get the error 'XML Exception was unhandled: Root element is missing.' Here's the code I have so far. [code=c#] namespace SpiveyPropertyRental { public partial class Tenants : Form { public …

Software Development xml
Member Avatar for sknake
0
144
Member Avatar for r00ty

Hi , i have 2 txt files full of names , read line by line and compare. If name from first file exist in second , i don't write it to result file. My code work excelent with small files , but when i try big files (100 MB) , …

Software Development c++
Member Avatar for r00ty
0
162
Member Avatar for mstrop

Hi, I am "googling" for the whole morning, but I am not able to find an HttpUtility.UrlPathEncode in C# Compact Framework - simply, I need to encode/decode URL and post data for my windows mobile application making a web request. Please, do you know, how to do it? M.

Software Development
Member Avatar for mstrop
0
108
Member Avatar for Trekforever

Hi, I'm trying to write a function that takes in a c-string, and remove all 'T' and 't' from the string. So here's what I have so far, but every time I try to compile it, it gives an empty character constant error. [CODE] void removeT(char* msg) { char* ptr; …

Software Development c++
Member Avatar for JasonHippy
0
1K
Member Avatar for Snippset

Hi, I need to make a program, which I think should be simple if you know what you are doing. You have an array of integers A(m, n) and B(m). Delete an element from A array, which index is in the B(m) array. Print original and modified arrays. I don't …

Software Development c++
Member Avatar for Snippset
0
99
Member Avatar for Vitriolics

Hey, I have a program that it supposed to read two columns of data and then perform a calculation on them. The problem is reading the data in from the file. I have a function to count the lines, this works correctly. It returns it's value into a variable called …

Software Development c
Member Avatar for Dave Sinkula
0
124
Member Avatar for MRWIGGLES

Hi, I'm having trouble just printing particular strings out of a sentence. <h1>hi my name is</h1> if i just want the program to print out <h1> </h1> and ignoring the text in between, how would i do that? i have tried converting everything to ascii and printing within the range, …

Software Development python
Member Avatar for MRWIGGLES
0
95
Member Avatar for pdk123

In the following c code, the num_elements is gobal. But if i make it as local and return , it gives strange value just before return it becomes '0' ...can anybody explain why ? [code] int num_elements =0; //generates a psuedo-random integer between min and max int randint(int min, int …

Software Development c
Member Avatar for pdk123
0
202

The End.