132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rkumaram

I have few question, If i have two private member array in my class how can I use [] operator for my use, something like following, [code] class foo { int iarray[10]; char carray[10] public: //constructors //copy cons nd assignment ans all }; [/code] So my first question is When …

Software Development c++
Member Avatar for ArkM
0
151
Member Avatar for andrea_kay

I need desperately help with this homework assignment. And I'm starting from the beginning. It's a problem that makes us write a counting loop program, and I believe you use while and if else in this program. Here is the problem and the given outputs. I got started on it, …

Software Development c++
Member Avatar for DevonMcC++
0
126
Member Avatar for dusse

How can I change a character of a string within an array of strings? An execution error happens if I run the code below.. [code=c] int main(int argc, char *argv[]) { char *d[] = {"aaaa","bbbb","cccc"}; cout << d[2] << endl; //PRINT cccc d[2][2] = 'x'; cout << d[2] << endl; …

Software Development c
Member Avatar for Aia
0
347
Member Avatar for ahamed101

Hi, For last one week I have been trying to do conversions between UTF8, Multibyte, Wide Character and Ascii... Finally managed to code a working program... Thought this might help some one, so posting it here... If there are any errors, please point out... If you have any doubts please …

Software Development c
0
169
Member Avatar for JimD C++ Newb

Hello all!!! First off, I'd like to say THANK YOU for such a great site. I've learned a lot here in the last 2 months! I'm currently in a Data Structures class and our current assignment is: Read data from a .dat file (name, address, phone #) and store the …

Software Development c++
Member Avatar for JimD C++ Newb
0
109
Member Avatar for Freaky_Chris

Hi, i'm havnig problem with calling CreateThread. The problem is that it gives me a conversion error from const void* to void* [CODE=Ccplusplus]DWORD dwThreadId; HANDLE myThread; myThread = CreateThread( NULL, 0, MyThreadFunction, "HELLO", 0, &dwThreadId); [/CODE] dwThreadId id is the problem, the function is supose to take a pointer to …

Software Development c++
Member Avatar for Freaky_Chris
0
276
Member Avatar for polo_coins

I have some code bellow enum Part ( center,north,south); ...... how can i to prevent from an user to enter a data out of range of this enum group. I mean if he/she type 3 or 4 Thanks Sergey

Software Development
Member Avatar for polo_coins
0
78
Member Avatar for noobguy

I am new to this forum so please enlighten me. I posted a question that I needed help with about 4 hours ago since then there has been several visitors to the post but no replies. Is it that the question was too hard or worded incorrectly please tell me. …

Software Development visual-basic
Member Avatar for Narue
0
98
Member Avatar for laoballer

Hi all, I'm in need of a way to decompress .gz files that will be downloaded from the NCDC. These Files contain weather information that will be used for some analysis work. My problem is I have a vb6 application and would like to be able to decompress these gzip …

Software Development visual-basic
Member Avatar for debasisdas
0
161
Member Avatar for Chris11246

Im new to C# and Im trying to call one class from another but I cant figure out how. Also Im trying to use a random number so that if it is greater then a number it will call the class but i cant seem to use the number

Software Development
Member Avatar for LizR
0
68
Member Avatar for RouseA

I have been programming in C for many years, but I have just started using GCC/Eclipse for a new project to develop a product using an embedded ARM processor. I have found a problem that hasn't existed in previous C compilers I have used: I have created a define as …

Software Development c
Member Avatar for ahamed101
0
222
Member Avatar for tcoma4x4

Hello All, I have a question and need some help with a c# console application project that asks the user to enter the number of rows to calculate and display Pascal’s Triangle. What I really need help with is how to properly format the output in the shape of a …

Software Development c# pascal
Member Avatar for tcoma4x4
0
251
Member Avatar for afg_91320

im making a program that will let you play rock paper scissors with the computer. the code will be in function format with a switch statement for the menu. this is how it should look: welcome to rock paper scissors! select a choice 1. rock 2. paper 3. scissors 4. …

Software Development c++
Member Avatar for kenji
0
348
Member Avatar for chern4ever

i would like to insert my data from txt file to array. but each line of my txt file contains more than one data. eg : "Data1","Data2","Data3","Data4" how do i sepreate each data to array[0][0],array[0][1],array[0][2] and array[0][3]?? i only know how to use getline function to take a whole line …

Software Development c++
Member Avatar for VernonDozier
0
233
Member Avatar for priti_s

Hi I have come across a question in a collection which says: One can add a reference of a collection to itself. Is it true or false? I read the explanation that, we can add the reference to the collection to itself, but it results in the [U][B]stack overflow of …

Software Development java
Member Avatar for Ezzaral
0
121
Member Avatar for polo_coins

Hi, again about [B]DateTime[/B] method I get to some conclusionns and build a class of my problem that solve the last expired day of some product I get a day od today and number of month when product can used without any problem and the day when product was made …

Software Development
Member Avatar for polo_coins
0
90
Member Avatar for unbeatable0

Just wanted to know... is there any variable in C++ that can hold larger numbers than [icode]unsigned long long int[/icode], or is it the largest variable? Thanks in advance :P

Software Development c++
Member Avatar for dmanw100
0
130
Member Avatar for gregorynoob

okay...i've got another wired counting problem, this time it's about rectangles! gotta find the minimum number of lines to divide a rectangle into squares! i went for...ehh well a dumb idea of cutting the max square off, and cutting the little ones recursively, but... doesn't always work. you're given the …

Software Development c++
Member Avatar for dmanw100
0
149
Member Avatar for Nemoticchigga

I want to delete a bitmap. How do I do this in c++. DestBitmap->Save("TempImage2.bmp"); . . . . . //later something like Delete("TempImage2.bmp"); is there a way to do this. thanks, nemo

Software Development c++
Member Avatar for Liszt
0
129
Member Avatar for navcha

hi all, my problem is i have data like below(dates are in dd\mm\yyyy format) start_date end_date fruits_eaten per_day_fruit_eaten 5/5/2008 14/5/2008 40 40/10 = 4 12/5/2008 21/5/2008 30 30/10 = 3 20/5/2008 30/5/208 55 55/11 = 5 i want to calculate above data like below for the dates between 10/5/2008 and …

Software Development puzzle
Member Avatar for Salem
0
100
Member Avatar for zerozerozero

An encoded file will be decoded by the program using a key input from the user. This key is a sequence of numbers that will scramble the message in the file into its appropriate order. I have to use linked lists for this. I already started it, but I can't …

Software Development c linked-list
Member Avatar for zerozerozero
0
70
Member Avatar for PuQimX

can somebody help me this code cannot run. I can't find the error... [code=c] #include <stdio.h> #include <conio.h> #include <ctype.h> #include<stdlib.h> //use for fflush and exit(0) #include<string.h> //use for strcpy void calculate(); void insert(); void exit(); #define TRUE 1 void calculate_and_sort(int end_of_file); int input1; char ch; typedef struct{ int num; …

Software Development c file-system
Member Avatar for Salem
0
170
Member Avatar for elizabeth.h1

hello all I am getting an failed assertion when using the _tcscat_s function. Expression : (L"String is not null terminated" && 0) file : _tcscat_s.inl line : 32 and the assertion does not fire always, and I try to figure out why but without any success how can i fix …

Software Development c++
Member Avatar for Salem
0
258
Member Avatar for crazzym

Hello, I know this is something extremely easy to do but i don't master the python syntax at the moment. I've read the documentation and I've been searching on the 'net for information but nothing that I've found seems to be what I'm looking for. Probably the reason is the …

Software Development python
Member Avatar for crazzym
0
166
Member Avatar for sharareh26zaman

hello dear friends I have written a simple file merger and the code has been shown as bellow but I get an error that I do not how to solve it please guide me .

Software Development c++
Member Avatar for Salem
0
120
Member Avatar for Amisha_Sharma

Hi all, I want to know thtat what is the advantage of learning PYTHON.Where this language is used? Is this languge have any scope in future? Thanks

Software Development python
Member Avatar for Stefano Mtangoo
0
79
Member Avatar for harrykokil

hi guys.. im having problems with my traffic lights. i want to execute the procesing of the traffic lights infinitely (i.e red to green to red continuously). im providing my code hoping to get a positive response soon. thanks.. [code=python] import Tkinter as tk import time import sys import datetime …

Software Development python tkinter
Member Avatar for sneekula
0
182
Member Avatar for vmars

In the Starting Python [ [url]http://www.daniweb.com/forums/thread20774.html[/url] ] Post, I configured as specified, but when I take that 1st code example [ print "Hello Monty Python!" ] and save it as a file [ HelloMP1.py ], and open it in the Edit Window, and run it from there, I get the …

Software Development python
Member Avatar for sneekula
0
114
Member Avatar for uae_uae99

after i tried many times to solf this program i couldnt do it this is the sorce of my program and it is about sell and rent a care. my problem is when i run do progrm it works but when i try to see the car i want buy …

Software Development c++ data-structure
Member Avatar for sidatra79
0
153
Member Avatar for blackryu21

I need help to change certain values in an Array that I have to a character array. Here's the code [code] #include <iostream> using namespace std; int main() { char X; int nROWS = 4; int nCOLUMNS = 4; int anArray[4][4] = {{0,1,2,3}, {10,11,12,13}, {20,21,22,23}, {30,31,32,33}}; string headings[4] = {"LA", …

Software Development c++
Member Avatar for Freaky_Chris
0
104
Member Avatar for cicigirl04

Here is my code. I have a warning that (127) : warning C4715: 'ComputeSum' : not all control paths return a value [code] #include <iostream> using namespace std; const int MAX = 10; // Function prototypes, i.e., declarations for the functions we have created void ReadInput (int A[], int number, …

Software Development c++
Member Avatar for sidatra79
0
130
Member Avatar for TheBeast32

Hi, I was reading something that said goto was bad. Why is it a bad practice to use it?

Software Development c++
Member Avatar for Narue
0
126
Member Avatar for cplusplusgeek

I want the following program to use lesser memory as much as possible. Any suggestions? [code] #include <iostream.h> #include <conio.h> void InputNum(void); void SearchNum(int); int numArray[10]; main() { int num; InputNum(); cout<<"\nEnter the number to be searched:"; cin>>num; SearchNum(num); getch(); } void InputNum(void) { for(short i=0;i<=9;i++) { cout<<"\nNumber "<<(i+1)<<":"; cin>>numArray[i]; …

Software Development c++
Member Avatar for Freaky_Chris
0
121
Member Avatar for polo_coins

i want some encapsulation problem int num; num=int.parse(Console.Readline()); here i have a problem if user enter a string i get encapsulation how can i solve it in easiest way my friends told me some function of try() ..catch() but I don't understood it Thanks Sergey

Software Development c#
Member Avatar for LizR
0
78
Member Avatar for sonia sardana

I have two buttons Play & Full Screen. If u click on Play Button,Movie starts..Movie Starts within 15-20 Seconds.....When u clik on Full Screen Button.,Media Player is Maximised. I want the if the media player is maximised,& when we click on ESC Button, Media player is minimsed.......But I m nota …

Software Development vb.net
Member Avatar for sonia sardana
0
473
Member Avatar for joelogs

can someone help how to develop a chat program in c. the program must run in the linux terminal and have a layout like yahoo messenger. it must have a area in which the user's can be seen, text area and an area in which one could the on going …

Software Development c c# c++
Member Avatar for Freaky_Chris
0
185
Member Avatar for aneeshanand

Hi All Here I got a challenging task to do in any of JAVA/JavaScript/AJAX technologies with an XML as input. Task: Graphical representation of Application Dependency among the machines in a Network. Technology to use: JAVA/JavaScript/AJAX/XML Conditions: Source Files should be available and cannot use any licensed applications/libraries inside the …

Software Development java xml
Member Avatar for stultuske
0
167
Member Avatar for dinilkarun

Hi, I have two modules: Mod1 and Mod2. I want to call the function ‘ ProgressBar’ which is present in Mod1 inside a class ‘clsMain’. In the function ‘ProgressBar’, I set the increment to the progress bar. The function looks something like this: def ProgressBar(self,intIncrement): self.gauge1.SetValue(intIncrement) It takes integer as …

Software Development python
Member Avatar for dinilkarun
0
252
Member Avatar for Soundgarden

Now I have been using the Directshowlib-2005 Libs. And the SDK BDA sample called DTVViewer. Now I am not the type of person to ask for help and annoy the living *&^*& out of some poor person.. ...But.... I just need some simple help to convert the code into something …

Software Development
Member Avatar for LizR
0
152
Member Avatar for harrykokil

hi guys am stuck with my project.. i want to make the car stop when the lights are red and then move when its green. im providing you my code hoping you can help me.. thanks.. [code=python] import Tkinter as tk import time import sys import datetime as dt from …

Software Development python tkinter
Member Avatar for Luckymeera
0
68
Member Avatar for jee85

[code=java] #include <stdio.h> #include <stdlib.h> #include <math.h> #include "matrix.h" /* -------------------------------------------------------------------------------------- The GaborFilteredImg provides the outputs of the Gabor filter bank -----------------------------------------------------------------------------------------*/ void GaborFilteredImg(Matrix *FilteredImg_real, Matrix *FilteredImg_imag, Matrix *img, int side, double Ul, double Uh, int scale, int orientation, int flag) { int h, w, xs, ys, border, r1, r2, …

Software Development java
Member Avatar for stultuske
0
158
Member Avatar for askhan

hi all i am new to dani web so if i make any mistake please forgive me ... I am just wodering that some could help me in my assignment.. i am not a programming geek and offcourse not in java. my teacher has gave me this assignment i dont …

Software Development client-server java web-server
Member Avatar for masijade
0
341
Member Avatar for programmingme

I'm in beginners Java and I have a question... I've written about 16 programs in my class so far and in all my programs this is what we would do: Create a Folder (let's call the folder Project1) Make a .java file (project1.java) then we would go to our practice …

Software Development gui java
Member Avatar for stultuske
0
104
Member Avatar for walsug

hello, I know linux has this mechanism I wanna implement it in windows 2003 and I've done some parts but one point: writer must wait until all the reader finished. hint: I don't want a loop in the mutex critical-section to subtract the semaphore by plural number,which can't be directly …

Software Development c
Member Avatar for Denniz
0
138
Member Avatar for Eyo

Hello Every Body, could any one help me please applying DatagridView inside another one I have a Continent , and Countires and State Continent is the parent of the country Country is the parent of the state Thus i'll have the parent Continent Containg GridView of Country Parent Country containing …

Software Development vb.net
Member Avatar for Eyo
0
78
Member Avatar for dearrajaguru

Hi.... i am a fresher... i need your help friend.... i did a simple project... now i want to print the results using crystal report. the problem is i cant resize my report horizontal direction. please tell me how to design the crystal report page. waiting for your reply...... Thank …

Software Development
Member Avatar for dearrajaguru
0
75
Member Avatar for AorA

[code]#include <iostream> #include <windows.h> using namespace std; void about(){ cout<<"Expence-List 14/10/2008:"<<endl <<"Brought to you by www.******.com"<<endl <<"Programmed by **********."<<endl; Sleep(4000); system("cls"); } int MenuOne(){ int MenuSelection=0; cout<<"What would you like to do?"<<endl <<"--------------------------------"<<endl <<"1. Create a new expence list."<<endl <<"2. Edit a previous expence list."<<endl <<"3. View a saved expence …

Software Development c++
Member Avatar for AorA
0
186
Member Avatar for jkarimi

I really am stuck as to what I am doing wrong with this program. Help would be much appreciated :D. [code] // DiscountPrices.java - This program calculates total cost for discounted items. // Input: Interactive. // Output: Original price, discount, discounted price, and total price for all items. import javax.swing.*; …

Software Development java java-swing
Member Avatar for masijade
0
138
Member Avatar for dearrajaguru

Hi friends.... how to add a particular column values in list view. 5 th column is amount.. i want to display the total amount.. please help me.. its very urgent... thank you... Regards., Guru

Software Development listview
Member Avatar for dearrajaguru
0
81
Member Avatar for mauro21pl

Hi Could anybody help me to clear that out. Just go step by step and try to explain it to me. I would appreciate it Thanks [attach]7727[/attach] The answer for that one: At the end: c1 -- 40 (hex) and c2 -- DC (hex) [attach]7726[/attach] The answer for that one: …

Software Development c
Member Avatar for WaltP
0
122

The End.