49,766 Topics

Member Avatar for
Member Avatar for skatamatic

Hey, I'm brand new to this site. Hopefully someone can help me out. How do you clear the console screen without any system-compatibility issues? This means that SYSTEM("CLS") and anything from a windows library (like #include<windows.h>) is not acceptable, as it will not run on linux/unix etc... I know theres …

Member Avatar for WaltP
0
2K
Member Avatar for rugae

I have like 5 classes, 3 of then need around 15 constants the other 2 classes need only 2 of the 15. I was thinking of having a header file to contain all the constants in header file and just include them in the header files of all 5 classes. …

Member Avatar for vijayan121
0
130
Member Avatar for Azurea

Hi there, Im trying to start learning C++, but I haven't been able to find any compilers for it. Does anyone know any good compilers for C++? Thanks.

Member Avatar for ithelp
0
118
Member Avatar for dabu

I tried following this code for my program, but counting the consonants and vowels are not doing what I want them to. Is this the correct format to use? [code] #include <iostream> #include <string> #include <algorithm> using namespace std; void StateInstructions(); void GetInput(); void TurnUpper(); void TurnLower(); int NumVow(); int …

Member Avatar for zandiago
0
155
Member Avatar for Flakester

Hello, I am having some trouble on a light program. Ive spent the last 5 hours on it, and I'm a beginner so I'm relatively slow. =) I will show you what I have, but first I'll explain to you what I'm doing. I am writing a numerology program. I …

Member Avatar for WaltP
0
122
Member Avatar for Arbhin

Hello, people. First of all, I am new to this forum, so greetings. Second, I just started with learning C++. All the help, on where to start lessons and the like, are ver welcome. Why did I start on programming. * I wanted to create a MMORPG. And thought about …

Member Avatar for Arbhin
0
130
Member Avatar for tracethepath

i have made a menu driven program for selection sort, bubble sort and insertion sort.. the first two are working correctly but despite writing the correct code (according to me, i have checked my code many times) the insertion sort is not giving the desired output.. here's my piece of …

Member Avatar for tracethepath
0
86
Member Avatar for cyndi.

Can anyone give me some help coz i need to make a program that accepts inputted decimal number and converts it to Binary, Hexadecimal, Octal. I should use looping statement, it should be function oriented, and uses switch case. This will be the sample output: ==================================================== Input decimal number : …

Member Avatar for WaltP
0
127
Member Avatar for nicz888

if i have 71, i need to display it like 17. backward if i have 113 i need to display it like 311. first number and last number are swiched i know i need to used a swap function but how do i used it? how do i extract each …

Member Avatar for WaltP
0
314
Member Avatar for jacknight

I'm wondering what steps I have to take to make progress in my programming skills. I am just starting my first semester as a computer engineer, and I picked up a lot of the syntax relatively quickly but I still have trouble solving a lot of the problems we get. …

Member Avatar for Ancient Dragon
0
98
Member Avatar for amishosh

Hi! Up until today I've been writing C with Borland C dos version. Only g-d knows why the school I go to teaches us C on that. I want to start using MS's Visual Studio and I'm totally lost. It's a whole new enviornment of work. All their tutorials and …

Member Avatar for iamthwee
0
181
Member Avatar for H a R o O n

Following is a C++ client(Network Programming) code, I need to translate it to TCL, if anybody can help me, I shall be thankfull ... [code=cplusplus] //<CLIENT.CPP> #include <iostream> #include <conio.h> #include <string> #include <winsock2.h> #include <fstream> using namespace std; void main() { string ip = "127.0.0.1"; int port = 6789; …

Member Avatar for Duoas
0
505
Member Avatar for gerronk

Hello all, My assignment is to write a quadratic equation solver. I have written the function, and it compiles well. However that is not the issue. The requirements are that it follows a command line interface specification as follows: <program name> -r <quadratic equation> In other words, the user is …

Member Avatar for Lerner
0
159
Member Avatar for dasani

I have to print out the numbers -2.3 to 2.9 in increments of 0.4, and then add the poss and neg number EX: -2.3 -1.9 -1.5 -1.1 -0.7 -0.3 0.1 0.5 0.9 1.3 1.7 2.1 2.5 2.9 Sum of negative values: -7.8 Sum of positive values: 12 i have gotten …

Member Avatar for Duoas
0
1K
Member Avatar for helixkod

What i need to do is convert the first letter of ever word into a caps letter. I know that in ASCII the lower case letters are between 97 and 122 and all i need to do it -32 to get the caps version. Now my problem is how do …

Member Avatar for vijayan121
0
197
Member Avatar for ChaseVoid

I've just looked up my homework and found that that I had to do a Project/Presentation on Microsoft .NET Development Tools and my sub-topic happens to be Visual C++. While doing research about it, I found out about Managed C++ and the recent advanced version C++/CLI by Microsoft. I know …

Member Avatar for Ptolemy
0
221
Member Avatar for akame

I Made A Sierpinski Triangle In Turbo C++.i Do Not Know How To Paste The Output Of My Graphics Image In Microsoft Word??what Are The Steps Involved..please Tell Me..

Member Avatar for Salem
0
68
Member Avatar for aus_fas1

Hi, I have the following structure to read the file data with fixed format of my binary file. Now I want that every time my ReadFromFile function is called with 'counter' variable it should 1. return me frame specified in the 'counter'. 2. The file needs to be closed only …

Member Avatar for Salem
0
148
Member Avatar for nitro

Can someone plz give me the C++ code for the following: (1) linear probing (2) separate chaining (3) quadratic probing (4) double hashing I know the theory behind it but i dont seem to be able to put it into code! plz help me P/S: im not asking you to …

Member Avatar for Ptolemy
0
103
Member Avatar for ajstyles_always

Can anyone help me solving this programmme] 1 2 3 4 3 2 1 1 2 3 3 2 1 1 2 2 1 1 1

Member Avatar for stymiee
0
36
Member Avatar for DeathEvil
Member Avatar for jrice528

without messing with the class, cause i cant modify it , i was wondering if there is a way to return thefunction calcscore as a float. I cant modify the class, where i call the function "This contestants average score was..." it always just returns a .000 is there a …

Member Avatar for Ancient Dragon
1
129
Member Avatar for Duki

[code=c++]#pragma once #include <string> #include <iostream> using namespace std ; class Document { public: Document ( ) ; Document operator= ( const Document & d ) ; void setText ( ) ; string getText ( ) ; protected: string text ; } ; #include "document.h" Document::Document ( ) : text …

Member Avatar for Ancient Dragon
0
123
Member Avatar for mqueene7

Below is the code for my merge sort - It doesn't like my temporary array c and I can't get anything to sort - I get all 0 in my output. [code] void merge(int low,int mid,int high) { int size, p, q, i, r; size = high - low + …

Member Avatar for Duoas
0
120
Member Avatar for bleonard989

I am trying to use fairly simple C++ code to complete this problem: The user will input a number of the Fibonacci series, and through a function called whichfib(), the program will then output the number using long double data type. I have gotten the code to work until the …

Member Avatar for bleonard989
0
114
Member Avatar for chizy2

case 'q' : case 'Q' : cout << "Computing your totals" << endl; break; default : cout << "Invalid choice!"; } } /* This is where it should break out of but it is not */ // while (choice != 'Q' || choice != 'q'); - this is what I …

Member Avatar for chizy2
0
143
Member Avatar for zandiago

Good day folks. I have a simple question anout structs. Say for example i have the following: [CODE] struct foodmenu { char letter; string food; double cost; }; [/CODE] We just started a look at struct and it's really not too clear. So with regards to my example above...how does …

Member Avatar for zandiago
0
157
Member Avatar for jrice528

Ok, i made a psot earlier but my code is alot different and different question so i didnt know where to put it. My question is thiss... in my calcScore function. This is my requirement: Design and implement a function double calcScore() that calculates and returns the average of the …

Member Avatar for AnthIste
0
138
Member Avatar for Etniespr101

Whats going on is an address book. There is a search function in the program that takes in a string for the phone number. The file is read and if the string exist, it file is reread and the characters infront of it are sent to output.... basically showing who …

Member Avatar for zandiago
0
111
Member Avatar for liphoso

[QUOTE]A. PROBLEM The purpose of this project is to equip students with skills of manipulating an array as a data structure to store and process information, using the C++ object structure construct: struct. The problem is poised as follows: create a data structure to hold a term of a polynomial …

Member Avatar for Etniespr101
0
108

The End.