Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 63
Member Avatar for unk45

need some help with an odd magic square assignment please 1)is there a limit my code should have as to the odd integer the user can input? 2)as far as declearing my array i think i need numbers inside those braces right, i just cant put in the user's odd …

Member Avatar for Rabia_Akhlaq
0
288
Member Avatar for unk45

Here is the assignment i need help with. i have attached the assignment and the main code and function file are below. thanks MAIN CODE clear all clc min_d=fminsearch(@distance, [0,30]); v=[3,7,4,5,2,6]; for i=1:6 if i==1; c1=.5 * min_d * v(i); end if i==2; c2=.5 * min_d * v(i); end if …

Member Avatar for unk45
0
77
Member Avatar for unk45

alright..so i have to create an overloaded func where i replace O with E in str and replace world with jack in str and print from main using pointers to pass my strings to the func(needs to adhere to the mentioned)...need help ASAP ppllzz.. thnx [code] #include <iostream> using namespace …

Member Avatar for rati
0
123
Member Avatar for unk45

why do i keep getting the same1?? [code] #include <iostream> #include <ctime> using namespace std; struct card { int value; char suit[10]; char faceCard[10]; }; int deal(card deck[maxcards], int decksize, int &z); void shuffle(card deck[], int decksize); int score =0; int main() { int scoretracker =0; card deck[52]={{11, "s", "ace"}, …

Member Avatar for chococrack
0
101
Member Avatar for unk45

so ive created a function that replaces all user input characters in a string with another specific user input character..the next task is to create a func that replaces a particular part of the string with a substring and ive got something down but i cant really test it becuz …

Member Avatar for mcriscolo
0
90
Member Avatar for ae012

hello! im trying to make a program where entered values should be displayed in a tabulated form. however, as far as i know, everytime we enter a value and press ENTER, the cursor goes to the next line. is there any way where in if a user enters a value …

Member Avatar for ae012
0
88
Member Avatar for unk45

im supposed to create an address book and so far have gone as far as getting the input..my problem now is the highlighted section..i have to return bak the info put in initially by the user (first, last name and address), based upon a question to the user to input …

Member Avatar for stilllearning
0
227
Member Avatar for unk45

i need help removing spaces from a string..how do i go about this?? i have to report back the number of spaces too but ive been able to do that thnx (i dont want to use any of the string functions in the string library) [code] #include <iostream> int stripspaces(char …

Member Avatar for unk45
0
269
Member Avatar for unk45

So this is the program description as per hw requirements. The following is a procedure for constructing an n x n magic square for any odd integer n. Place 1 in the middle column of the top row. Then after integer k has been placed, move up one row and …

Member Avatar for Salem
0
680
Member Avatar for unk45

hw assignment asks 4 the construction of a 2d array with the generation of random numbers 1-10 which has been done. next ask the user 4 which numbers occurence in the array he wants to find and its location. i have come up with this so far but the occurence …

Member Avatar for unk45
0
141