Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for bookmark

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 …

Member Avatar for bookmark
0
93
Member Avatar for bookmark

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 …

Member Avatar for MasterGberry
0
125
Member Avatar for bookmark

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 …

Member Avatar for jonsca
0
123
Member Avatar for bookmark

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 …

Member Avatar for bookmark
0
257
Member Avatar for bookmark

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 …

Member Avatar for bookmark
0
212
Member Avatar for bookmark

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 …

Member Avatar for VernonDozier
0
119
Member Avatar for bookmark

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 & …

Member Avatar for Narue
0
273
Member Avatar for bookmark

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 …

Member Avatar for Fbody
0
206
Member Avatar for bookmark

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 …

Member Avatar for Ancient Dragon
0
132
Member Avatar for bookmark

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 …

Member Avatar for Perry31
0
185
Member Avatar for bookmark

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"); …

Member Avatar for alaa sam
0
140
Member Avatar for bookmark

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]

Member Avatar for natha_peepli
0
99
Member Avatar for bookmark

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. …

Member Avatar for bookmark
0
132
Member Avatar for 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"); …

Member Avatar for bookmark
0
352
Member Avatar for bookmark

[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) …

Member Avatar for bookmark
0
213
Member Avatar for bookmark

[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 …

Member Avatar for packetpirate
-1
110