132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yousafc#

Please tell me deeply about classes and objects My Question are: What is class? Why we use class? How can we use class? what do help class? Please tell me and also tell how can I learn about class?

Software Development oop
Member Avatar for thines01
0
210
Member Avatar for archelle

Anyone here who knows how to convert system month,Day,Hour,Minutes,Seconds each into number format like month=12 (If December) Day=30 Hour=12 (In 24 hour format) Minutes=55 Seconds=45 Thanks for help in advance...

Software Development vb.net
Member Avatar for archelle
0
135
Member Avatar for vaironl

Hello forum, vaironl here. I have a project which will be due at the end of the year. I'm taking in the user input from 1- 40 ingredients with, name, amount, an unit. Additionally I'm taking a description which is a paragraph, and I store these values in a text …

Software Development java
Member Avatar for JamesCherrill
0
709
Member Avatar for sieuwe

Hi, I've got a problem with my project. When I initialize an arraylist, the content is displayed and you can go through the arraylist by correctly answering the given word. But when I load a new arraylist from a file, the old arraylist is removed and the new one is …

Software Development java oop
Member Avatar for JamesCherrill
0
226
Member Avatar for DalekThay

Can anyone explain me how to find a point on circumference. The data i have is radius and the coordinates of circle center. I tried to get it by using (x-a)^2+(y-b)^2= r^2 formula but i get stuck. I'm not asking for solution but for explanation.

Software Development c++
Member Avatar for WaltP
0
181
Member Avatar for Zssffssz

Is it possible to make an array of doubles like a c-style string to make a bigger number? Or is an array of chars a special thing to a compiler?

Software Development c++
Member Avatar for adityatandon
0
268
Member Avatar for programing

plz i have question that is statistical which is course that i still missed .. how i can make code for median , mean,strdDevition , mode else presented as class and object i will realy thanks for whom will help me ,,

Software Development c++
Member Avatar for adityatandon
0
119
Member Avatar for jmcparlin1

I'm new to C++, and I've been picking it up really well, but when it came to making my own function, I hit a problem. I've looked and I cant find the problem, its probably something really stupid but I cant find it. Heres the code, its really simple. I'll …

Software Development c++
Member Avatar for adityatandon
0
164
Member Avatar for DJSAN10

Why do we have to suffix long literals by 'L' or 'l' even though we have specified the datatype ? Does it serve any special purpose?

Software Development c
Member Avatar for DJSAN10
0
159
Member Avatar for aKiLa.. :)

is the following program correct for the title 1/1!+1/3!+1/5!+.....+1/n! [CODE]#include<iostream.h> #include<conio.h> class series { int i,n,sum,fact; public: void input() { cout<<"enter the number of terms"; cin>>n; } void processing() { if(n%2==0) { cout<<"the number is invalid"; } else { i=1,sum=0; while(i<=n) { sum+=(1/factorial(i);); i+2; } } } int factorial(int lim) …

Software Development c++
Member Avatar for adityatandon
0
104
Member Avatar for arianc

Hi I have written a c++ code. It works well frequently but sometimes I see strange errors especially about out file streams. For example, this time I dealt with this messages: 'GABC.exe': Loaded 'G:\GABC\Debug\GABC.exe', Symbols loaded. 'GABC.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll' 'GABC.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll' 'GABC.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll', Symbols loaded. 'GABC.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', …

Software Development c++
Member Avatar for adityatandon
0
266
Member Avatar for Kluss

Hello, I need to implement a simple project: create a basic web-site to read online stream from my web-camera using its IP address. BUT I´d like to use my Arduino microcontroller and WiFly shield without using a laptop. Could please someone give an advise - links to related tutorials or …

Software Development c
Member Avatar for adityatandon
0
185
Member Avatar for eoop.org

Hello :) I have written a os in C and assembly, but my os is only a text based os. How can i make it into a OS with GUI ?

Software Development assembly c gui
Member Avatar for adityatandon
0
169
Member Avatar for dev90

i want to go back to main menu while hitting escape key in my programme. for that i have make a function. [CODE]void exit (char[]) { if(char==27} { exit(0); } } [/CODE] but i have many user inputs which are of type int,float,char..... so i have tried, [CODE]while(kbhit!=27) { //coding …

Software Development c
Member Avatar for adityatandon
0
2K
Member Avatar for mrnobody

Hi guys.. I need advice on writing function in a multi-threaded envionment Lets say I have a function which squares an integer. [CODE] int Square(int num) { // May do other things which might take long time to complete. return num*num; } [/CODE] This function is called in threads eg …

Software Development c++
Member Avatar for rubberman
0
143
Member Avatar for Hazkhan

I want to build a program for my c language project.What i need to do is that the user should enter the number of students,number of questions,correct answers,each students answers answers and then the program should calculate the number of correct answers,and their standing,the most wronged question . the problem …

Software Development c
Member Avatar for adityatandon
0
2K
Member Avatar for Graphix

Hi, I've been working on a project that needs to list all the drives on a computer (it's kind of a file explorer, but without using the standard one provided by windows). I've searched and found the function [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa364972%28v=VS.85%29.aspx"]GetLogicalDrives()[/URL], which does exactly what I want. However, the return value is …

Software Development c
Member Avatar for rubberman
0
128
Member Avatar for PeTo.

hey , I'm a beginner & need some help in C++ , I want to generate 4 unique numbers " any number isnt repeated within itself " I figured a way to generate 4 random numbers but they arent unique [CODE]srand((unsigned)time(0)); int number= (rand()%9999+1000);[/CODE] , I also need to put …

Software Development c++
Member Avatar for adityatandon
0
2K
Member Avatar for secret-code

Hii everybody I was building RPC based server-client application I have a struct called event contains int type long int time I have a function in a server that `return (*event)` event * log_1_svc(event *argp, struct svc_req *rqstp) { static event* result; result = (struct event*)malloc (3 * sizeof (struct …

Software Development c client-server
Member Avatar for adityatandon
0
217
Member Avatar for Xinen

So my teacher asked us to make a problem. This was just passed to me by my classmate and this is the problem: [QUOTE]flow chart problem: a. Create a flowchart that will determine the sum of two numbers and if the sum is greater or smaller than 50. (0-50 less …

Software Development c
Member Avatar for zeroliken
0
111
Member Avatar for fmasroor

For some reason, when I do an output.put, it is not doing anything. [CODE]#include "stdafx.h" #include <fstream> #include <Windows.h> using namespace std; void main() { fstream input, output; int in1=0, in2=0, x=0, k=0, l=0, max=0; input.open("input.txt", ios::in); output.open("output.txt", ios::out); while(input.good()) { input>>in1; input>>in2; for(x=in1; x<in2; x++) { k=x; l=0; while(k!=1) …

Software Development c++ ios
Member Avatar for adityatandon
0
82
Member Avatar for kankaortiz

how would i stop a user from entering a letter when they should be entering a number? [CODE]#include <iostream> #include <cstdlib> #include <cstdio> #include <cstring> usin namespace std; int main(int nNumberofArgs, char* pszArgs[]) { char nAns; do{ int nPly1; int nPly2; int nPly3; int nPly4; int nPly5; int nPly6; int …

Software Development c++
Member Avatar for adityatandon
0
5K
Member Avatar for Karpati

Hy Guys! PLease Help Me on the following problem. How can i do the next thing? I want to know what's the data in a textfile's line. If i'v got the line number. For example: [COLOR="Green"]variable line_number = 5 In the c:\test.txt on the 5th line the data is "Washington" …

Software Development vb.net
Member Avatar for Reverend Jim
0
301
Member Avatar for aquamarine_kath

I am writing a program that manipulates text file using console application. What I want to do is to delete 1 specific line based on the ID entered by the user. For example: DR-01|Coke|25.80 DR-02|Sprite|25.80 DR-03|Sarsi|25.80 DR-04|Coke|25.80 When the user entered DR-02, the result would be like this: DR-01|Coke|25.80 DR-03|Sarsi|25.80 …

Software Development vb.net
Member Avatar for aquamarine_kath
0
692
Member Avatar for Hiddenshadows57

First, I did search the forum and I found a few topics about this but none of the information seemed to be applicable to what I'm doing. Anyways. What I'm working on now is a basic telephone directory. a Directory text file contains the names of all of the subdirectories. …

Software Development vb.net
Member Avatar for thines01
0
147
Member Avatar for sarya_w

Could someone help me to convert this Scheme Code to Objective-C? (define-type RCFAE [num (n number?)] [add (lhs RCFAE?) (rhs RCFAE?)] [id (name symbol?)] [fun (param symbol?) (body RCFAE?)] [app (fun-expr RCFAE?) (arg-expr RCFAE?)] [with (id symbol?) (named-expr RCFAE?) (body RCFAE?)] [if0 (cond RCFAE?) (then RCFAE?) (else RCFAE?)] [rec (id …

Software Development objective-c
Member Avatar for sarya_w
0
375
Member Avatar for lxXTaCoXxl

As the title states I'm building a calculator. I've got two arrays, one for holding the values input by the user, and the other for holding the operators. Addition seems to work just fine, however subtraction, multiplication, and division are still putting up a fight. I believe it's just logic …

Software Development
Member Avatar for thines01
0
160
Member Avatar for Pythonbeginner!

Hey guys. Im having some problems with python. I need to create a function that takes in two arguments where the first is a sequence(string) of letters. The other is also a string but of integers, that tells me start and stop that I want to cut out from the …

Software Development python
Member Avatar for TrustyTony
0
169
Member Avatar for missil9

Hey I have been kicking myself with this problem for a week now and i was wondering if anyone can help. I am implementing cURL to fetch source code from a website. I am using fairly common code to do so. If I implement the functionality in my main.cpp, it …

Software Development c c++
Member Avatar for missil9
0
183
Member Avatar for Amina Mishu

plz... can anyone help me by giving code for calculating max error of u=(5xy^2)/z^3

Software Development c++
Member Avatar for adityatandon
0
117
Member Avatar for vignesh viki

i need to print the file names of all files having .txt extension of a given directory after converting to uppercase letters. The input (directory name) should be given as command line argument. The script will also check whether sufficient arguments are passed or not and whether the argument is …

Software Development shell-scripting
Member Avatar for L7Sqr
0
101
Member Avatar for emaellie

I have been a histogram assignments to do in C++ although i kno how to do in Visual Basic. I have tried to do it in C++ but it seems ive missed out a few steps. below is what i have done so far, please correct me where am wrong. …

Software Development c++ visual-basic
Member Avatar for adityatandon
0
1K
Member Avatar for Zssffssz

Im Talken About The Basic (As in Simple not BASIC) DLL not Win32/OS/2 Kind. I Want The Dlls for the program to be in the 'bin' Directory thats is in the same folder as the .exe. Is there a simple (Not Moving Kansas) way to do this?

Software Development c++
Member Avatar for Zssffssz
0
152
Member Avatar for Srinivas0

can some please explain what are command line parameters ? i read many books, read online didn't understand anything on what they are and when or how to use them. :(

Software Development c++
Member Avatar for Srinivas0
0
189
Member Avatar for ila_asia

hye..can somebody help me with these problems as soon as possible?? really need your guys help Create a phone book program that allows users to enter names and phone numbers of friends and acquaintances. Create a structure to hold contact information .The user should be able to add phone book …

Software Development c++ data-structure
Member Avatar for adityatandon
0
205
Member Avatar for kkevinnnn

Well anybody pls try this: i will give an address that is 0xB8000 Now u write a function in which we can write a string and define its colour so you write the string in that memory area and increment it, and again write the colour info in that area …

Software Development c++
Member Avatar for gusano79
0
164
Member Avatar for scsi

Hello, i would like to ask you help with my code, i can't understand why exactly it doesn't work like i am expecting :). I am working through "How to Think Like a Computer Scientist" by Jeffrey Elkner, Allen B. Downey, and Chris Meyers so i am still doing my …

Software Development python
Member Avatar for TrustyTony
0
151
Member Avatar for lxXTaCoXxl

I'm trying to create a struct for an 8 bit signed integer, seeing as how I'm creating a calculator it would be useful. Windows' calc.exe has this set up as precision for Qword, Dword, Word, and Bytes. I have 64, 32, and 16 because they're already programmed into Visual C#. …

Software Development
Member Avatar for gusano79
0
132
Member Avatar for lrh9

I am doing some hobby coding regarding neural networks, and I was wondering if this is a correct and good use of abstract base classes or not. [code=PYTHON]import abc import collections import math import weakref class AbstractNeuron(metaclass=abc.ABCMeta): def __init__(self, weights, f=math.tanh, bias=1, biasWeight=0): self.weights = weights self.f = f self.bias …

Software Development python
Member Avatar for TrustyTony
0
206
Member Avatar for torkolort

Hi, I'm making a scoreboard for a simple word-game. The easiest way for this seems to be a JTable. I need both column headers and row headers, I believe this is achievable in JTable? For each game, the column headers should represent a random selection of predetermined categories, and the …

Software Development java
Member Avatar for JamesCherrill
0
331
Member Avatar for mmazeemahmad

Hi All, I want to build my final year project in human resource management system in C#............. But after a lot of search on the web i didn't find any source code for it to develop.... kindly give me some references that make it easier for me to develop my …

Software Development asp.net c#
Member Avatar for mmazeemahmad
0
545
Member Avatar for axwell

hy all, i'm trying to make a simple web browser using windows forms to connect to an FTP server. Everyting works ok. the problem is when a try to enter into a folder the Iexplorer opens with the content instead of the same program window. i have searched for a …

Software Development web-browser
Member Avatar for lxXTaCoXxl
0
127
Member Avatar for u.j.chandler

Hi, I'm pretty new with c#. And i'm learning now about delegates. I understand what they are (i think...) and how to use them. But i don't understand why would I need \ want to use them in the first place ? from what i get (which is probably wrong) …

Software Development
Member Avatar for skatamatic
0
184
Member Avatar for lxXTaCoXxl

I've been reading on these for some time now, and as a long time code maker for video games I have a completely different look on them since back then I was just going by what I was teaching myself. But I'm wanting to know how to assign the pointer …

Software Development
Member Avatar for lxXTaCoXxl
0
111
Member Avatar for Armanious

I am aware of the MouseInfo.getPointerInfo() method, but you can only get the mouse location using this. However, I also want to know the buttons pressed (specifically just the BUTTON1_DOWN_MASK), without any events. This is because the program will ask the user to create a rectangle by dragging the mouse …

Software Development java
Member Avatar for JamesCherrill
0
238
Member Avatar for fmasroor

This is a strange question, but it's very frustrating to me. In microsoft visual c++, when I open a cpp file, I can not compile it. Is there a specific way to open the file so that I can run it after opening? Thanks.

Software Development c++
Member Avatar for NP-complete
0
101
Member Avatar for amir1990

i have a problem with this code: [CODE]s = "johnny" j = 'j' y = 'y' re.search(rj'\w+'+y, s).group[/CODE] i want to put the j variable instead of the string, with the y variable its ok but with the j i got an error!!!

Software Development python
Member Avatar for amir1990
0
99
Member Avatar for lbgladson

How do I get the console from closing immediatley upon opening in a Console Application program? I have all of the code written but when I run the program it pops up the console window and then immediatley exits so I am unable to read what is in the window …

Software Development operating-system vb.net
Member Avatar for Begginnerdev
0
252
Member Avatar for awaresefere

hi guys:)if i have three lines saying "line1","line2"and "line3" and if i want to modify the first line to "line1 ok", the second to "line2 ok " and replace in there original location so i will have "line1 ok",line2 ok" ,"line3" for each line after modification.what should i do to …

Software Development
Member Avatar for lxXTaCoXxl
0
3K
Member Avatar for VIPER5646

Hi all In the following Sub I'm sending an Attachment when the email has been sent I would like to delete the attachment but I get an system.IO.IOException Error. the file I'm trying to delete is being used by another process. How can I detect if the process has finished. …

Software Development pdf vb.net
Member Avatar for VIPER5646
0
655

The End.