49,761 Topics

Member Avatar for
Member Avatar for Kyle Willett

Hi I have a CS class assinment that invloves solving a word search puzzle with a brute force string matching algorithm. I have made a lot of head way in getting the four search methods to work, however when I search for words that end along the edges of the …

Member Avatar for Kyle Willett
0
4K
Member Avatar for Vaspar

Hi I am facing problem using float in loop its value stuck at 8388608.00 int count=0; long X=10; cout.precision(flt::digits10); cout<<"Iterration #"<<setw(15)<<"Add"<<setw(21)<<"Mult"<<endl; float Start=0.0; float Multiplication = Addition * N; long i = 1; for (i; i <= N; i++){ float temp = Start + Addition; Start=temp; count++; if(count%X==0 && count!=0) …

Member Avatar for Vaspar
0
163
Member Avatar for 0773247886
Member Avatar for vijayan121
0
171
Member Avatar for acerious

// #include <iostream> #include <iomanip> using namespace std; int main() { float assign1, assign2, assign3, assign4, examScore; float assignWeight; cout << " Welcome to UOW Score System" << endl; cout << " " << endl; cout << "Enter the scores for Assignment 1 / 2 / 3 / 4" << …

Member Avatar for Gonbe
0
154
Member Avatar for chulu

the assignment is to multiply two strings of minimum 50 digits in each,and display result showing step by step multiplication

Member Avatar for Gonbe
0
102
Member Avatar for Vaspar

The assignment is to write a computer program that will add 1/3 to itself a large number of times and to compare the result to multiplying 1/3 by the number of times 1/3 was added to itself. It is also to do the same thing with ½.The program is to …

Member Avatar for TrustyTony
0
256
Member Avatar for smichels

Good Day all! Looking for a little help here. I have to open a file containing a few words, some of which ending in "ed" and print the only the words ending in "ed" back to file. Here is what I have so far. I cannot seem to open the …

Member Avatar for Agni
0
577
Member Avatar for BunBean

A text file, grades.txt, contains data pertaining to student grades. Each line consists of: student number,course mark1, course mark2, course mark3, course mark4 The last line contains a student number 0 to indicate the end of the data. Write a C program to print a grade report, as outlined below, …

Member Avatar for Schol-R-LEA
0
414
Member Avatar for ShEeRMiLiTaNt

Hello, I need to wwrite a function that will go through a dynamic character array that the user inputs then take it and delete the repeated characters. My program partially works but it seems as though whenever it deletes a set of repeated characters then it just stops rather than …

Member Avatar for vijayan121
0
2K
Member Avatar for Vaspar

OpenGL GLUT **My question is at the end of this topic** 1) a) Use your logo you drew within a world coordinate space that has 0,0 at the center. You may choose any width and height for your world coordinate space, glut window and viewport. Be sure that you separate …

Member Avatar for Vaspar
0
786
Member Avatar for Bubbles26

I'm fairly new to C++ and my professor gave me most of the code to start with. I'm supposed to write a program that uses the add_day(int n) function I wrote in Chrono.cpp. There must be a problem with the **Chrono::Date add_day(int n);** line. Here is the error: hw4pr2.obj : …

Member Avatar for Bubbles26
0
389
Member Avatar for Elixir42

Hi sorry for yet another circular inclusion problem but I need help understanding why I cant add a new class CSprite to my project that inherits CShape. I get an error C2504 base class is undefined. I've tried so many permutations of including files. Also can anyone suggest a neater/efficient/correct …

Member Avatar for Elixir42
0
1K
Member Avatar for rena0514

Ackermann's function is a recursive mathematical algorithm that can be used to test how well a computer performs recursion. Write a function A(m,n) that solves Ackermann's function. Use the following logic in your function: If m=0 then return n+1 If n=0 then return A(m-1,1) Otherwise, return A(m-1, A(m, n-1)) Test …

Member Avatar for guly2010
0
4K
Member Avatar for bloominninja

So im having issues with a sorted list template, heres how I implemented it enum RelationType {LESS, EQUAL, GREATER}; template<class ItemType> struct NodeType { ItemType info; NodeType<ItemType>* next; }; template<class ItemType> class SortedType { public: SortedType(); ~SortedType(); bool IsFull() const; int GetLength() const; void MakeEmpty(); ItemType GetItem(ItemType item, bool& found); …

Member Avatar for bloominninja
0
335
Member Avatar for ShEeRMiLiTaNt

I need to write a program that takes in two big integers from the user and puts them into a dynamic array so that we can add them together. It says to use "paper-and-pencil" mehtod meaning to pretty much reverse the dynamic arrays and carry the ones over as you …

Member Avatar for Agni
0
243
Member Avatar for DelilahDemented

My program will process the first and second line of the text file but gets a bit crazy after that. Lines 1, 2, 3, and 5 are supposed to match and line 4 does not. It gets lines 1 and 2 but 3 and 5 are incorrect and it processes …

Member Avatar for DelilahDemented
0
178
Member Avatar for GeneClaude

This is the problem. The program works in the first run. but after you enter a key and proceed for another entry, it skips the "LAST NAME:" line and directly asks for the "FIRST NAME" line. i can't find the problem in the code so...help! >.< (skip forms and frames …

Member Avatar for Ancient Dragon
0
117
Member Avatar for Jattvirk

I need help with my code, i can't figure it out by myself. If someone can do it for me, I CAN PAY but be reasonable. You can email me at desi_jatt92@yahoo.com This is the question You can assume the name of the month will be typed in with the …

Member Avatar for Jattvirk
0
98
Member Avatar for anonymous213

well i have to make one and before i make i wont to know what it is and what is the order the number come out random or like 1 12 123 1234 12345 please explain to me in detail to thanks

Member Avatar for anonymous213
0
739
Member Avatar for davecoventry

I am studying the C++ code from an opensource project (libredwg) I have the following code: `*offset = *(*src)++;` What does this do? I understand offset = *src++; which would assign src[0] to the variable 'offset' and then increment src so that it points to what was previously src[1].

Member Avatar for davecoventry
0
138
Member Avatar for Tinnin

Hi all. This regards "Accelerated C++" Exercise 7-2. I'm trying to write a program that uses a map to put students grades into grade bands and print which band each student falls into. The grade bands are (A: 90-100, B: 80-89.99, C: 70-79.99, D: 60-69.99, F: <60). I'm getting into …

Member Avatar for Tinnin
0
122
Member Avatar for Redhaze46

[B]Hello all..[/B] is it possible to create my own simple programming language in c++? complete with the compiler,editor and the libraries.. just a basic model where i can write simple instructions,save it with my own extension and run atleast a few simple algorithms..

Member Avatar for mrnutty
1
227
Member Avatar for Darth Vader

Hi, I am starting another applicaton with this code below. When starting that application it is called "javaw" in the ProcessesTab in TaskManager. I simply wonder if it is possible to give this a choosen name in taskmanager under ProcessesTab when starting an application like this with the below code. …

Member Avatar for Ancient Dragon
0
120
Member Avatar for rkstengel

Getting error : not sure why error C2660: 'convert_to_Fahrenheit' : function does not take 1 arguments #include <iostream> #include <iomanip> using namespace std; int convert_to_Fahrenheit(); int main() { int celcius = 0; int fahrenheit = 0; cout << "Enter a temperature in Celcius and I will convert to Fahrenheit: " …

Member Avatar for rkstengel
0
212
Member Avatar for gazzy1

I have no idea how it will be created plz help me as long experience I have forgotten due to my illness. Write a program to determine if the digits in a three digit number are all odd, all even, or mixed odd and even. Your program should prompt the …

Member Avatar for Ancient Dragon
0
241
Member Avatar for on93
Member Avatar for jongiambi

Hi im writing a program to simulate a slot machine, where a user enteres a coin and has a 70% chance of winning (say 3 coins). Anyways, I have a class slotMachine with a public int random() function. Here is the function: int slotMachine::random() { srand( time(NULL)); randomNum = rand() …

Member Avatar for KaeLL
0
436
Member Avatar for gtsreddy

hi can any one help me which is the best C++ compiler one can download it freely for C++ programming i will appreciate if some one post any web links for this cheers reddy

Member Avatar for vijayan121
0
709
Member Avatar for i3-540

I am developing a very simple notepad-type program in C++. The only problem is that when I prompt the user to delete their newly written text file, it doesn't work. Since I let the user pick the name for his/her file, I can't figure out the code to delete it. …

Member Avatar for i3-540
0
786
Member Avatar for JustHere155

Okay, I keep getting an error stating that I have few arguments in my void function. I changed it so many time with different combination and yet I still get this error. I just simply want the program to print each digit in a vertical line. #include <iostream> #include <cmath> …

Member Avatar for Ancient Dragon
0
148

The End.