132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
![]() | 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 |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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# | |
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 | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
[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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
[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++ | |
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 | |
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 |
The End.