49,761 Topics
| |
hi , i'm new in programming world i want to write c++ class in c it was ok .. when i change to c++ i've problems [CODE] #include <iostream> using std::cin; // using std::setprecision; using std::cout; using std::string; using std::endl; // using std::streamsize; class STD1{ int id; string name ; … | |
hi Write an overload function "searchArray" so that it takes an array "ary" of int or char, and additional argument, namely "valu" with type as same as the "ary". A call to this function will return the index of "valu" within "ary" or -1 if it does not exist. and … | |
Thanks for the help earlier, I fixed the problem i had earlier in nested loops, but now i need help creating a Do/While Loop that is a loop above all the steps above that ask the user to continue y or n and quit unless they enter y. i know … | |
This is anothe exercise I got, but I haven't done anything just because I need how to get the code, as if I would write it in a piece of paper: _____ Write the code that prompts the user to enter two integer numbers, numerator and denominator. Your program should … | |
I'm designing a game "Battleship" and I can't get get rid of a syntax error in the header file. I'm using a 2-D array for my grid. The error is: error C2059: syntax error : '{' The error seems really simple, but for some reason i can't get rid of … | |
Please, can someone help me in this exercise, because I really don't know too much about swaping!... _____ Write the code that swaps the value of two int variables. Then round both variables to the nearest tenth. example: (If[B] x[/B] contains the value of 43 and [B]y [/B]the value of … | |
Please, can someone help me in this exercise, because I really don't know too much about swaping!...I dont need to write the whole code, only a part of it when it's shown how I swap and round them... _____ Write the code that swaps the value of two int variables. … | |
I have been to writing an algo composing program to generate Midi sound with specific given pitch and duration etc. vegaseat's Code on midi helped quite a lot, it plays a line of melody of midi voice with given pitch and sound. The problem is, I need to have multiple … | |
Hi, I'm new to this programming stuff and I'm going through Beginner's Guide by Herbert Schildt. In Module 4 Critical Skill 4.1 Use one-dimensional array. #include<iostream> using namespace std; int main() { int sample[10];// this reserves 10 integer elements int t; // load the array for(t=0; t<10; ++t) sample[t] = … | |
[b][color=#990000]This program is copy & paste ready![/color][/b] [b]INTRODUCTION[/b] As the description of my topic says, I can almost taste the fruits of my labor. Journeying up, down, and around the Internet, I have searched, read, and studied various documents and tutorials to finally understand vectors enough to implement them into … | |
This code draws different shapes to the screen,(in this version, only a square or a cross. It will be updated soon!!). This code was written by a beginner, for the beginners!! | |
Hi, I need someone to put me on the right track as I need to read a Notepad file that contains the following: int mappy2_map0[4][4] = { { 0, 23, 23, 0 }, { 0, 23, 23, 0 }, { 0, 23, 23, 0 }, { 0, 23, 23, 0 … | |
I had a problem that I had to create a menu that asks for user's input and depending on that input it will calculate area of circle, rectangle, or a triangle. I got that part worked out but the last part of the problem is "Do Not accept negative values … | |
I think I have to the code right cuz it all compiles perfectly except when its done running, and I go to my documents, I dont see my directory... [code] #include <iostream> #include <windows.h> #include <winuser.h> #include <stdlib.h> #include <string> #include <stdio.h> #include "stdafx.h" #include <lm.h> #include <assert.h> #include <fstream> … | |
I don't think I've ever successfully linked a library before. I'm using the Code::Blocks IDE and I have installed the Windows SDK. I've tried going to Settings -> Compiler & Debugger settings -> search directories tab and adding "...\Microsoft SDKs\Windows\v7.0\Include", but when I try and compile a simple source code … | |
i m working in c++ to make the 3D graphics project using opengl so if any one can help me regarding this | |
Hello! Thank you for taking the time to help me out! I am working on a program that maintains information about staff members, such as volunteers, and full time and hourly employees. I am having two problems with the program. First, I have most of the code written already, except … | |
Hi, I have multiple implementations of a high-level objective. Basically, the objective is described in general language, for instance, "Choose one item out of N". Now, there can be any number of ways to implement this objective such as, random selection, prioritized selection, least recently used, etc. I have separate … | |
1. Develop sigma and pie bonding and anti bonding molecular orbitals of 2s and 2p | |
A bank updates t customers'' accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer's balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 … | |
Hi, I wonder if there is some open source C++ library for creating SWF movies, something like SWF Scout but open source? Thanks! | |
I'm have serious trouble with this program. The average and the range do not work. The program runs...I just don't know how to fix this. Please help. I have to find the average and the range of an unlimited number of integers between 0 and 100. [CODE] #include <iostream> using … | |
hi, im a beginner in using C++... i have a project due in a few days and i've been trying to do the program for a week now... we're supposed to make a program that would allow the user to enter any polynomial equation (always = 0), asks the user … | |
[code]#include<stdio.h> # include<stdlib.h> struct manager { char name[10]; int age; int salary; }biocon,panacea,serum; manager *p; int opt; int main() { printf("DATABASE FOR BIOCON manager\n"); printf("Please enter name: \n"); scanf("%c",biocon.name); printf("Please enter age: \n"); scanf("%d",&biocon.age); printf("Please enter salary: \n"); scanf("%d",&biocon.salary); printf("DATABASE FOR PANACEA manager\n"); printf("Please enter name: \n"); scanf("%c",panacea.name); printf("Please enter … | |
I have a problem to understand the following code. Can anybody please help me to understand it. indication = MediumIndication::IDLE; catIndication = bb->subscribe(this, mi, getParentModule()->getId()); catRadioState = bb->subscribe(this, cs, getParentModule()->getId()); catDroppedPacket = bb->getCategory(droppedPacket); Specially, in this "bb->subscribe(this, mi, getParentModule()->getId());" part. Here 'MediumIndication', is a Class, 'mi', 'cs' are object of … | |
| |
[code] #include <iostream> using namespace std; int main () { bool a = true; cout << ("Multiply = 1 or Divide = 2 ?\n"); cin >> a; if( a = "true") { goto Multiply; } else { goto Divide; } } :Multiply double x; double y; cout << ("Please Enter … | |
am using Microsoft visual C++ 6, running on window xp. i create mkdir("C:/asd") and store all the files that i craeting during my program. End of the program, the folder and all the files will be delete/remove. I would like to know how can i lock/block the folder and files. … | |
I'm new to C++, and i've seen some C and C++ code. I tried array[] and vector<> so i see i can use both, why should i use what way to work with vectors? Furthermore, i've seen a lot of "array[]" in this forum... so, any lead? Thank you! Oh … | |
hi, just want to ask, is it possible to restrict friend acess to a single class member function only? in other words, if class A grant class B friend access to class A member function, then class B can call that class A function. *note: this is suppose to be … |
The End.