No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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 … |
|
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 … |
|
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 … |
|
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"}, … |
|
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 … |
|
Re:
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |