51,593 Topics

Member Avatar for
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
146
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
198
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
88
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
90
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
249
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
133
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
190
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
101
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
212
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
103
Member Avatar for pymatio

Attached is a project that lets you control a sports league. If you enter these teams: [CODE] FOO A FOO B BAR BAZ [/CODE] & the restart the program it should print out something like this: [CODE] FOO A vs BAR FOO B vs BAZ [/CODE] but it doesn't it …

0
85
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
134
Member Avatar for jayson pons
Member Avatar for Ancient Dragon
-2
28
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
83
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
91
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
385
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
135
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
144
Member Avatar for markhuz

Please help with my assignment, our teacher told us to write a code in c++. 1.Enter 15 students and their general average. 2.List the top 10 students with a highest general average. thank you very much for helping me.

Member Avatar for markhuz
-1
147
Member Avatar for alishujahx

Hi everyone! If anyone interested in learning C++ you can add me on skype. My skype id is alishujahx I am programming in c++ since past two years and have written several big projects in c++. I have done 10 projects on rentacoder with average rating of 10/10! However this …

Member Avatar for ithelp
0
469
Member Avatar for swolll

Do any of you have aim or google talk or email that I could ask some C++ questions through?

Member Avatar for ithelp
0
93
Member Avatar for fazzer2

Hello people I have jusrt recently started to study C/C++ and I am using Borland 5.02. I am having a problem examining my outputs. when I run a successfully compiled program the Dos window that I should read my print from flashes on then flashes off:'( and I do not …

Member Avatar for fazzer2
0
157
Member Avatar for stevencolbert86
Member Avatar for dkalita
0
115
Member Avatar for triumphost

Ok the code below is supposed to edit a file called license.dat and replace texts in it... it works great it does all that but I want to implement user input in it. By this I mean I want the user to be able to enter the drive letter for …

0
80
Member Avatar for new programer

Hello all, As my name indicates, I am a new programmer. I was doing a program which calculates the roots of a quadratic equation but unfortunately there seems to be something wrong as it ignores my if statements! Please take a look at my code and I'd appreciate your help

Member Avatar for new programer
0
79
Member Avatar for Zohar

Hi, This is a very basic question, but I can't seem to get working, I've a set of numbers that I need to display in the following, this is a class function btw. The ouput should be something like { 1, 2, 3, 4, 5} (there are {} brackets and …

Member Avatar for Zohar
0
268
Member Avatar for prinju

can any one give me a c program for finding the length of the string and also to compare it with other strings with the help of linked list

Member Avatar for DangerDev
0
91
Member Avatar for StaticX

Hi ,im having a problem with my do while loop,basically I want it to loop so long as the users attempt is less than 10. However,it just doesnt want to seem to let me do this.Ive tried putting the "attempts++" several places through the loop as i thought this might …

Member Avatar for bennie22
0
146
Member Avatar for swolll

New Question. I end the output to one file (fout1) and try to start it to a new input and output file, using this code: [CODE]" fout1.close(); } cout << endl << "Detailed employee reports have been printed in " << fileOutput1 << "." << endl << endl; cout << …

Member Avatar for Ancient Dragon
0
363
Member Avatar for shakunni

I was wondering if there was a way to control the cursor on Linux and use a C/C++ program to make a certain 'output' appear on the screen in any co-ordinate we want for a specific period of time?

Member Avatar for Ancient Dragon
0
55
Member Avatar for triumphost

Below is the code that I have to find the Mac address of any pc (physical host ID) I struggle to make it print to a file but now i have a problem... It prints MAC Address: XX-XX-XX-XX-XX-XX to C:\\Physical-Address.txt but I only want it to print the XX-XX-XX etc …

Member Avatar for triumphost
0
146
Member Avatar for Tjvelcro

[CODE] #include <iostream> #include <iomanip> using namespace std; int main() { // Variables for used for user input int nbase; // Users input is needed but no error checking is done as per lab instuctions cout << "Please enter your choice for conversion. The letter O for octal OR B …

Member Avatar for Grn Xtrm
2
85
Member Avatar for froggy1976

Good evening, I am writing a program in C++ for a Tic tac toe game. Here are my directions: Create a C++ console application that allows two players to participate in a tic-tac-toe game. The program will be responsible for deciding who wins the game. The program should include the …

Member Avatar for froggy1976
0
330
Member Avatar for ramsdellcp

[code c++] // AY3814 - Chris Ramsdell. Program 1 - Hangman game per guidelines. #include "stdafx.h" #include <time.h> #include <stdlib.h> #include <iomanip> #include <iostream> #include <string> #include <fstream> #include <cmath> #include <stdio.h> #include <cstdlib> #include <sstream> #include <vector> using namespace std; int main(); class Hangman { public: void set_values (string, …

Member Avatar for NathanOliver
-1
119
Member Avatar for Star Frost

I have been struggling with this one for a day now and I cant seem to figure out if my problem is syntax or simple impossibility. The function in question looks something like this: [CODE] string *function( string temp[] ) { string sides[ 4 ]; // code return sides; }[/CODE] …

Member Avatar for Star Frost
0
127
Member Avatar for newsguy

Mobile developers will be pleased to learn that Recursion Software has announced the availability of a C++ Toolkits Symbian bundle. The cross-platform, mobile and embedded app development tools specialist took the opportunity at the CTIA Wireless IT and Entertainment Expo 2009 to announce that C++ libraries for the iPhone and …

2
356
Member Avatar for ineedhelp3

i am haveing alot of problems in my computer programming 1 clas in school and was wondring if any people on here would be kind enough to help me out with some programs 1 of them is this i need to make a basic program in the compiler that allows …

Member Avatar for Grn Xtrm
0
91
Member Avatar for charmedangerous

Use a do-while statement, write a program that continuously requests a grade to be entered. If the grade is less that 0 or greater than 100, your program should print an appropriate message informing the user that an invalid grade has been entered, the program should exit the repetition loop …

Member Avatar for Grn Xtrm
0
94
Member Avatar for Juliebadeya

Here is the mortgage calculation in C++ but I don't know why the table dosn't print out when I make run. #include <cstdlib> #include <iostream> #include <cmath> #include <iomanip> #include <string> using namespace std; bool exit_p=false; unsigned short select_opt1(); void cont(); void second_opt1(); void first_opt1(); void print_table(unsigned short mm,unsigned short …

Member Avatar for jameson91
-1
107
Member Avatar for koreanbo1

Hi I am very new to C++ and I was told to make a program that start with the ammount you choose but it has compound interest of 6% a year (0.5% a month) and you take out 500 dollars a month, at what months and years would the account …

Member Avatar for kolosick.m188
-1
103
Member Avatar for saintandsinner

hi! im new with inheritance. can anyone tell me what to do/how to solve this error: LNK2001: unresolved external symbol "public: __thiscall Circle::Circle(double,int,int)" (??0Circle@@QAE@NHH@Z) cylinder.obj : (?area@Circle@@QBENXZ) error LNK1120: 7 unresolved externals I've already searched for it but i didn't get it.. thank you! (I removed my codes. thanks for …

Member Avatar for Dave Sinkula
0
80
Member Avatar for Towely

I'm trying to create a program that takes 2 numbers from a user (a numerator and a denominator), displays one ontop of the other separated by dashes, and then shows the answer of one number divided by the other. Inside an If statement, I want to output several lines using …

Member Avatar for Towely
0
233
Member Avatar for number87

I got a question about c++ strings. Let's say string text = "0R14" and I access each element using text[0],text[1] etc does text[0] return an integer 0? or a character '0'? if it doesn't return an integer, how do I convert individual string element to integer type if I need …

Member Avatar for number87
0
165
Member Avatar for srivastavarupal
Member Avatar for K0ns3rv
-3
115
Member Avatar for loolyn

Hi All. I have created a message box using Win32 API messageBox() function. Now I want to move a button on that message box a little higher. I'm trying to get that by the following code, but when executing the code only the button is moving, leaving its background in …

Member Avatar for K0ns3rv
0
84
Member Avatar for IndyColts

First off, you should know I just started learning C++ today. Anyway, whenever I type in my code to Dev_C++ Compiler, and then try to run it, it always says "Source file not completed." Here's my code: [CODE]// operating with variables #include <iostream> using namespace std; int main () { …

Member Avatar for TheComputerGal
0
129

The End.