49,761 Topics
| |
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 … | |
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 … | |
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 : … | |
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 … | |
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. … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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.. | |
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 … | |
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 … | |
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 | |
Nevermind, Just got it to work. Please delete the thread. | |
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 … | |
[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 … | |
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 + … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
For a class I am taking I need to produce 1000 random numbers and store them in an array. I am totally lost and need some help. If someone can get me started on the program it would help me. Also, i need to write a function to find the … | |
I need help wirting a program that will count from 100 to 150 but in six lines, i have it were it contiues to count on one line, i dont know how to six lines using one single loop. i have this so far: Can some one help! thanks for … | |
Ok, i have been working on this program for a LONG time and i need some major help with the main.cpp file PLEASE. I have to design a function that Designs and implements a function void getJudgeData() that asks the user for a judge's score, stores it in a reference … | |
hello guyz iv got problem with [COLOR=#0000ff]void[/COLOR] pointers i cant work [COLOR=#0000ff]this[/COLOR] out ! i[COLOR=#800000]'m trying to read from a binary file using a struct and pass this struct arrays to class object and push them to stack and display them on screen while poping them out ! [/COLOR]but the … | |
I'm trying to figure out the avg of the sum of squares which I calculated by making a function in my program. The only problem is I dont how to count it. I think I can use the sq variable and divide it by the count, but I dont know … |
The End.