132,726 Archived Topics
Remove Filter ![]() | |
I'm trying to return a struct array from two functions. I don't know what to say. Here is my code: [code] #include <iostream> #include <iomanip> using namespace std; struct worker { int idNumber; int hoursWorked; double hourlyRate; double earned; }; [B]???[/B] input(); [B]???[/B] calculateEarned(worker []); void outputWorkers(worker []); int overtimeWorkers(worker … Software Development c++ | |
Write a program that reads an unspecified number of integers. Keep track of how many positive and how many negative numbers are entered. The input terminates when the user enters 0. Display the count and the average of the positive numbers and the count and the average of the negative … Software Development java | |
Please take a look at my function call. I don't know if I'm handling the return values right. It works for an employee with less than or equal to 40 hours worked, but the over time is paying 2.5 times instead of 1.5 times. Should I be using some kind … Software Development c++ | |
Hello all, I've been programming in c++ for about 2 years now, but all my c++ applications are console driven. I would like to start using GUI's but in c++ it takes a lot of effort to build a GUI application (using API's), now my question; what programming language do … | |
[B] Hi, i have a problem in configuring my IIS, i get this error message when i try to browse the virtual directory i configure, please help! :-| [/B][B][COLOR=#FF3300]Server Application Unavailable [/COLOR][/B] The web application you are attempting to access on this web server is currently unavailable. Please hit the … Software Development vb.net web-browser web-server | |
[COLOR=#000000]Hi all, I am using the following code for my searching function, but when I try to run it, it are allow me to search the item for column 1, but I want to search the item for column 2 as well columun 3, what mistake I have make, can … | |
Hi, Is it possible for a text box to always get its contents (text) from a particular variable? In C terms I guess I'd say "can I have the contents of a text box point to a pointer?" or something like that. Basically, I want the text box to always … Software Development display | |
erm.. greetings again i have this database system using access and i need to look through another remote computer for files using Remote Administrator 2.2. how do i get started? as in to run the application and searching through folders in remote computer to get a certain txt file.. thats … Software Development visual-basic | |
Hi guys, and girls, I 'm trying to create a program in c++ using winsock to see what happens when internet explorer sends a http request to [URL="http://localhost:80"]http://localhost:80[/URL] any tips? Thanx Ishwar Software Development c++ | |
Hello how would i go about converting a string value to HEX ie char name[10]="STEPHEN"; Convert name to HEX Software Development c | |
Hi, in the declaration of IP_name: [CODE] int InputNumber; ... // function that gets the InputNumber ... char IP_name[InputNumber];[/CODE] I have this error: [CODE] error C2057: expected constant expression error C2466: cannot allocate an array of constant size 0 error C2133: 'IP_name' : unknown size[/CODE] How can I solve this … Software Development c | |
I am not able to code this is java. I have to use nested loops. The pattern I need to get is 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 Software Development java | |
Hello everyone, I 've been looking for a solution for this problem for some time now but I don't seem to figure it out. I want to download the source of a web page (the HTML source). I found several API function that have to do something with internet and … Software Development api c first-post open-source session | |
if i implement same algorithm iteratively and also with recusrion ...than which of the above methods is better in implementing ..... and what are the advantages of recursion over iterative methods ?? | |
im new to C++.... sorta. i tried to use it a while ago but i couldn't figure out how to do anything and so now im going to try it again. if anyone could be of assistance that would be awsome. oh yeah, and im pretty much broke so i … Software Development c++ | |
Hey Guys, I've never used JLabel and JText Area before and this specific project requires it. I'm trying to create something that allows entry of student name, id and 2 grades. Then get the average of the 2 tests and show the letter grade equivalent. I'm getting error messages that … Software Development gui java java-swing | |
I know PASCAL programming language; Know i can't decide to learn which programming language.... I don't know if i start C or C++ or C#... or others.. [B]I hope you will guide me in this way[/B], so thanks for replying and guiding me. | |
I've just tried to code the Binder2nd, almost same as standard code provided in functional...... please point out the mistakes........ and suggest me guidelines to write effective code.......... [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <vector>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <functional>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <algorithm>[/COLOR] [COLOR=#0000ff] using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#0000ff] template[/COLOR][COLOR=#000000] <[/COLOR][COLOR=#0000ff]class[/COLOR][COLOR=#000000] _Fn> [/COLOR] [COLOR=#0000ff]class[/COLOR][COLOR=#000000] Binder2: [/COLOR][COLOR=#0000ff]public[/COLOR][COLOR=#000000] … | |
can anyone tell me what are pointers to function ??? and how are they implemented ?? Software Development c | |
I can't buy a c++ reference, and need one for programming in Linux. Does anyone know of a good reference free on the Web? Thanx, Jon:cheesy: Software Development c++ | |
given a positive integer n ,we have to find the number of possible combination of integers (i,j) where i+j=k ... given 0<=i,j,k<=n i code this problem as below ... [code]#include<iostream.h> #include<conio.h> void max(int n,int x,int k,int *no) { if(x>=0) { max(n,x-1,k,no); if(n+x==k) { (*no)+=1; cout<<"\n"<<" The combinations are formed by … Software Development c++ | |
i have a window form that has usename and a password but i cant get my 2 buttons submit and cancel to work dose anyone know where i could look to learn more on how to make my buttons work ty all Software Development c# | |
Hi, I'm want to use a ComboBox in my application and i want it to execute some code after I'll press enter in it. It's exactly like if you'll write an address into Internet Explorer and press enter. There must be some really simple solution, but I can't find that … Software Development | |
I'm getting error C2109: subscript requires array or pointer type [code]// CPP btree.cpp : Defines the entry point for the console application. // #include "stdafx.h" class TreeNode { public: TreeNode(string str): data(str), left(NULL), right(NULL) {} // Constructor. Make a node containing str. string data; // The data in this node. … Software Development c++ | |
this is all that is given: [code] char word[10]; addS("fasten", word); cout << endl << word << endl; // will output fastens [/code] for a program that must make a word plural (add an s) here is my code, which compiles but gives a peculiar "segmentation fault" that I haven't … Software Development c | |
The program runs but it doesn't calculate the average MPG correctly. It is calculating something, instead of zeroing out like earlier, but it sure isn't MPG! :mad: Any suggestions??? Software Development java | |
plz look at this code and tell me where I'm going wrong. I can't use another array to reverse the string. [code] const int MAX_SIZE = 15; // Max word size of word, allow for '\0' void reverse(char word[]); // function prototype int main() { char word[MAX_SIZE]; cout << endl … Software Development c++ | |
Have been asked to convert a set of programs from QBASIC to VB6. Any real pitfalls that i should watch out for? FWIW, my BASIC experience is mainly GW-BASIC and earlier. And yes, i WILL be RTFMing. tke Software Development qbasic visual-basic | |
Hi there, I am Embeza from ethiopia,Mekele Here i got a problem! It says " file path not found" while i was working on vb 6.0 in my lab on files the following was my code and can you fix plz [CODE]Option Explicit Dim var as string Dim inputFile as … Software Development visual-basic | |
Hie, I'm trying to get a code in a DLL runned each time a program is launched. 1) I have put this value in the registery key : [code] HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows="D:\myDLL.dll" [/code] 2) [code] BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ , DWORD reason /* Reason this … Software Development c microsoft-windows | |
I how another question I ran a program with one client and one server. it works correctly .but when I have a multiClient program ,the serverThread can not read the sentence from client .why it can't do this?is that because of extending thread I know that client class sends the … Software Development client-server java | |
[code]#include<stdio.h> #include<string.h> #include<conio.h> #define SIZE 21 #define MAX 10 int id[MAX]; int idn[MAX]; char fn[MAX][SIZE]; char ln[MAX][SIZE]; char mi[MAX][SIZE]; int q1; int q2; int q3; float ave; int menu() { int i,s=0; while(s<1|| s>4) { clrscr(); gotoxy(5,5); printf("menu"); gotoxy(5,7); printf("1.insert"); gotoxy(5,9); printf("2.delete"); gotoxy(5,11); printf("3.Display all"); gotoxy(5,13); printf("4.Quit"); gotoxy(5,15); printf("Select(1-4): "); … Software Development c | |
Hell "o" to all programmers out there. I was just fiddling around with pointers to [inlinecode] const [/inlinecode] when i wrote this snippet. [code] [COLOR=#008000]int main (void) { int* ptr = NULL; const int i = 20; ptr = (int*) &i; *ptr = 40; printf ("\nThe addr of the const … Software Development c | |
Ask a problem,about template:) i write template class <<<<<<<<<class.h>>>>>>>> #pragma once template <class T> class Tem { public: T rxg(T a); }; <<<<<<<<<class.Cpp>>>>>>>> #include "stdafx.h" #include "class.h" template<class T>T Tem<T>::rxg(T a) { return a; } <<<<<<<<<<<Dialog.Cpp>>>>>>>>> #include "Class.h" ................................ Tem<int> moral; int a=moral.rxg(10); Error: Test.obj : error LNK2019: unresolved external … | |
Hi friends, Its my first experience to this forum. can any one help me in reading a csv file into an array and then parse each word seperated by commas. I have csv file which contains rows and columns of record. and i have to read the file into an … Software Development c++ file-system | |
Hi there, My niece often asks me to quiz her on her times tables, so I thought I'd spare myself any further effort and write a program to ask her random multiplication questions. I used Tkinter to create a GUI with a label asking the question, an entry box for … | |
Oo... Can someone tell me the basic variables and keys for JAVAscript? Just a list please. Software Development java javascript | |
he is what the home work should be. [COLOR=#000000][B][I]Programming Assignment [/I][/B][/COLOR] [CENTER][CENTER][COLOR=#000000][B]CS 320 - Homework Program #1 [/B][/COLOR] [COLOR=#000000][B][I]Due: Sunday, at the end of Week #2 [/I][/B][/COLOR][/CENTER][/CENTER] [COLOR=#000000]Write a program to compute a student’s tuition for one semester, according to the following specifications. [/COLOR] [COLOR=#000000]A student may be classified as … Software Development c | |
Why is there a tuple and list in Python. They seemed to perform similar things. Software Development python | |
Hi I'm creating an application and in DEBUG mode I have zero errors, but when I switch to RELEASE I have this error: [CODE] --------------------Configuration: ipfix - Win32 Release-------------------- Compiling... Command line error D2016 : '/ZI' and '/O2' command-line options are incompatible Error executing cl.exe. [/CODE] Can you help me … Software Development c++ | |
Hi, I am quite a competent c++ console programmer but I need to do some work with loading images and clicking on the images. I want to load a screen full of images, click on an image and be able to retrieve the code, index or some value which uniquely … | |
Hi, im having trobles with excel how I can chance the color of the text in a specific cell from vb?? any help?? Software Development visual-basic | |
Hi All, I'm new to C++ and I have a C++ mortgage assignment due where a user inputs there mortgage amount, interest rate, and term of the loan and the program should give the user there monthly payment and also ask the user if they want to quit or enter … | |
hello!!! again i encounter a problem ......... I was wondering if anyone can point me in the right direction. What i am trying to do is create a volume dataset. I have been aiming to create a coloured cube and put a cylindrical object inside it (of a different colour). … Software Development dataset | |
Hi, I'm new to 80x86 Assembler... My question is very simple one: how should i print number on screen? I used the following code to print ascii data: [code] mov ah,09h ;load code of print function lea dx, Var ;load address of variable to be printed int 21h ;DOS call … Software Development assembly | |
Hi all, I have an interesting problem for which I already have a solution, but I have a feeling my solution is less than elegant. I need to create a Factory class which returns an instance of some child of class Foo. Which child is instantiated depends on the value … Software Development c++ | |
Ladies and Gents, I am trying to write a function in my ever growing program to give me information on a selected folder. I actually only need the number of files in the folder so I can use that number in a loop. Is there a way to get the … Software Development c++ | |
Hi, I will try to brief as I know some of you will probably see what im trying to do.. What I am trying to do is have the IP address of the machine compare its IP to the IP that is on the server. I am trying to get … Software Development email shell-scripting | |
can anyone tell me the code for inorder traversal of binary tree non recursively and using a constant memory ...?? Software Development c++ |
The End.