- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
16 Posted Topics
Hi. I was wondering if there was a command that allows you to return to the beginning of the script. Let's say /pseudocode/ You ask for pass word if password is correct --> do nothing or just display a random message else if password is incorrect or no password is … | |
Hi I have this code with a function that outputs a square filled with the given char but for the [CODE] square(4);[/CODE] I want it to just output a square like this [CODE] **** **** **** **** [/CODE] How would I do this without changing the function definition or using … | |
Hi. This program has a function that divides an unsigned arg by another unsigned arg. I want it to only keep outputting "I'm really upset" after the first time it outputs "I'm really upset". Right now it outputs as [CODE] 5 0 I'm really upset 6 Press any key to … | |
Hi I'm trying to make a program that returns the number of letters in a string but it seems that the function I have is not working as it returns 0 every time. Can someone check what I'm doing wrong? Thanks in advanced. [CODE]#include<iostream> #include<string> using namespace std; unsigned letters(const … | |
Hi, I have this program that outputs a triangle when given the size. Right now the triangle outputs like this [CODE] 5 * ** *** **** ***** [/CODE] Does anyone know how I would make it look like this? [CODE] 5 1 12 123 1234 12345 [/CODE] Thanks in advanced … | |
Hiya. I have this program that gives me alternating squares that switch from full squares to hollow. The problem I am having is that the squares that should be hollow are showing up with numbers in them like this. Anyone know what my problem is? [CODE] *** *** *** 0000 … | |
for lines 14, 15 and 16 the error is that I have undeclared identifiers for a, b and c. Does anyone know how to fix this? thanks for your help. [CODE]#include <cmath> #include <iostream> #include <string> using namespace std; bool die(const string & msg); bool getDouble(double a, const string & … | |
Hi, I'm trying to get this program to read a file which contains a matrix. I am trying to output a text file which has the matrix of the input file but with the average of each row. Every time I enter the name of the inputFile and the outputFile … | |
Hi, I need some tips on how to fix the errors of this program. I do not understand what the linker errors are telling me. thanks in advanced. the errors are Error 1 error LNK2005: _main already defined in test.obj test2.obj Error 2 fatal error LNK1169: one or more multiply … | |
Hi, I'm trying to make a program that reads a text file that contains about 4 rows of numbers and outputs the average for each row. I need help with these two errors. It is not complete but I need help on these so I can continue. Any help is … | |
For lines 23 and 22 it says "you cannot assign to a variable that is constant." anyone know how to fix this? thanks in advanced, bookmark. [CODE]#include <iostream> #include <string> #include <algorithm> using namespace std; void print (const string & s); string reverse(const string & s); int main(){ print("blah"); reverse("blah"); … | |
Why won't this output my string vertically? THanks in advanced, bookmark. [CODE]#include <iostream> #include <string> using namespace std; void print (const string & s); void main(){ print("blah"); system("pause"); } void print ( const string & s){ int i; int clrscr(); for(i=0;i<4;i++) { cout << "\n %c", s; } } v[/CODE] | |
Hi, I'm having a problem with this program. When I choose an option, all the program does is output three random numbers with letters in them. Do any of you know what my problem is? Any help is appreciated. Thanks for taking the time to read my program. - bookmark. … | |
Line 10 keeps on getting a Type "Double" Unexpected Any idea what the problem is? [CODE] #include<iostream> using namespace std; double grossPay(double a, double b); int main(){ double a,b; cout << "Hours worked this week and hourly rate of pay"; cin >> a >> b; cout << double grossPay(a,b); system("pause"); … | |
[CODE]// #include <iostream> using namespace std; #include <cmath> #include <math.h> int main() { float a, b, c, t, s, area; cout << "Enter the lengths of your triangle's sides: "; cin >> a >> b >> c; if(a>b) {t=a; a=b; b=t;}; if(b>c) {t=b; b=c; c=t;}; if(a>b) {t=a; a=b; b=t;}; if((c*c) … | |
[CODE]// This program gives the number of boxes required for a number of figurines #include <iostream> using namespace std; int main() { unsigned boxcapacity; cout << " Enter the total amount of figurines each box can store: "; cin >> boxcapacity; unsigned figurines; cout << " Enter the total amount … |
The End.