49,757 Topics

Member Avatar for
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
96
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
178
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
502
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
156
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
195
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
218
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
146
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
101
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
127
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
122
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
118
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
112
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
138
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
156
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
136
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
107
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
106
Member Avatar for Slate2006

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 …

Member Avatar for Etniespr101
0
84
Member Avatar for dasani

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 …

Member Avatar for dasani
0
97
Member Avatar for jrice528

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 …

Member Avatar for zandiago
0
175
Member Avatar for rowly

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 …

Member Avatar for summu
0
155
Member Avatar for garc2541

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 …

Member Avatar for vmanes
0
95
Member Avatar for Duki

Is there any reason to check for self assignment, if you're not using array's or pointers, when overloading the = operator? For example, if the only datatypes in Vehicle are int cylinders and string manufacturer, do I really need to check before assigning? If so, what's the point?

Member Avatar for vijayan121
0
84
Member Avatar for hellokitty88

[COLOR=#0000ff]//this is the class that I must declare to be public class[/COLOR][COLOR=#000000] Zoo[/COLOR] { [COLOR=#0000ff]private[/COLOR]: [COLOR=#008000]//create 4 pointers to instances of house class [/COLOR]Animal *M; Animal *C; Animal *D; Animal *L; }; [COLOR=#0000ff]// constructor [COLOR=#000000]Zoo[/COLOR]::[COLOR=#000000]Zoo[/COLOR]() { Animal *M;= [COLOR=#0000ff]new[/COLOR] Animal(); [COLOR=#0000ff]char[/COLOR] M[64]; strcpy(M, [COLOR=#a31515]"Monkey"[/COLOR]); M->SetHouseName(M); Animal *C; = [COLOR=#0000ff]new[/COLOR] Animal(); …

Member Avatar for Duoas
0
96
Member Avatar for mqueene7

I'm struggling with my code and was looking for a tutor. Does anyone know of a tutor available? Thank you!!

Member Avatar for WaltP
0
81
Member Avatar for winky

Hey guys. I am trying to take a normal queue and change it into a cyclic queue, which basically means that the enqueue operation will make the elements shift to make space if the rear pointer is pointing at the end of the queue. I am getting an error about …

Member Avatar for winky
0
187

The End.