49,760 Topics

Member Avatar for
Member Avatar for dontcare

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 …

Member Avatar for shubh93
-1
169
Member Avatar for sebassn

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 …

Member Avatar for VernonDozier
-4
104
Member Avatar for GooeyG

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 …

Member Avatar for VernonDozier
0
145
Member Avatar for sebassn

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 …

Member Avatar for vmanes
-2
95
Member Avatar for sebassn

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. …

Member Avatar for sebassn
0
108
Member Avatar for Pepperonio

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 …

0
50
Member Avatar for ochambo

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] = …

Member Avatar for Dave Sinkula
0
144
Member Avatar for BlackPhoenix

[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 …

Member Avatar for Lerner
0
96
Member Avatar for tkud

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!!

0
187
Member Avatar for junioryz

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 …

Member Avatar for K0ns3rv
0
143
Member Avatar for C++ Beginner

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 …

Member Avatar for K0ns3rv
-1
3K
Member Avatar for triumphost

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> …

Member Avatar for triumphost
0
189
Member Avatar for infinities

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 …

Member Avatar for K0ns3rv
0
84
Member Avatar for katrine

i m working in c++ to make the 3D graphics project using opengl so if any one can help me regarding this

Member Avatar for junioryz
-3
88
Member Avatar for vileoxidation

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 …

Member Avatar for vileoxidation
0
246
Member Avatar for C++NOOOB

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 …

Member Avatar for C++NOOOB
-1
132
Member Avatar for shaifymehtadnn

1. Develop sigma and pie bonding and anti bonding molecular orbitals of 2s and 2p

Member Avatar for ShawnCplus
0
32
Member Avatar for preet4fun

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 …

Member Avatar for puranchandra248
0
2K
Member Avatar for yeya

Hi, I wonder if there is some open source C++ library for creating SWF movies, something like SWF Scout but open source? Thanks!

Member Avatar for jbennet
0
181
Member Avatar for infern0

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 …

Member Avatar for infern0
0
98
Member Avatar for lady_lyssa

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 …

Member Avatar for iamthwee
0
208
Member Avatar for CD-4+

[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 …

Member Avatar for Ancient Dragon
0
100
Member Avatar for turtail

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 …

Member Avatar for Ancient Dragon
0
129
Member Avatar for jayson pons
Member Avatar for Ancient Dragon
-2
27
Member Avatar for 0805638

[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 …

Member Avatar for Grn Xtrm
-1
81
Member Avatar for nicholasamh

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. …

Member Avatar for kvprajapati
0
89
Member Avatar for neithan

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 …

Member Avatar for neithan
0
382
Member Avatar for jakesee

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 …

Member Avatar for dkalita
0
132
Member Avatar for katamole

A quick question: I have been writing a small program to simply read a file and send to cout. [CODE]#include <iostream> #include <fstream> using namespace std; int main() { char ch; ifstream in_stream; in_stream.open("self.cpp"); while(!in_stream.eof()) { cout << ch; in_stream.get(ch); } in_stream.close(); return 0; } [/CODE] This works ok, except …

Member Avatar for dkalita
0
2K
Member Avatar for bobsta

Hi, I am writing a geometry engine using homogeneous coordinates (4D representing 3D Euclidean coordinates) used for perspective projection. This is handled by two classes a 4-Vector "fourVector" and a 4x4 Matrix "fourMatrix". For speed I have not (yet) separated class and member function declaration from definition. [CODE]class fourVector{ public: …

Member Avatar for dkalita
0
140

The End.