Yes, it is homework, thanks for pointing me in the right direction. Loli10
Loli10
Posts
-
Networking Question -
Networking QuestionI am now looking at the same numbers on the windows calculator. Thanks for helping. Loli10
-
Networking QuestionIt is a homework question for my networking class and I wasn't sure where to find the conversion. Loli10
-
Networking QuestionWhat is the binary equivalent of the following TCP.IP address: 131.72.211.40? What is the dotted decimal equivalent of the following binary address:10110011.00010100.11000111.01101010? Can anyone tell me where to find out this information? Thanks. Loli10
-
Class Function?Why is it required to place a scope resolution operator when writing code out for class functions, and why does it cause a syntax error? Loli10
-
Struct QuestionThanks! Loli10
-
Struct QuestionConsider the following file in a C++ program: fstream employees(ios::in|ios::out|ios::binary); This file is going to be a random access file in the program. The user will be allowed to read and write records. Records are based upon the following struct: struct emp { int empId; char empName[20]; long empSalary; chat smpDept[4]; } The question is as follows: Is the file required to be a binary file, or can the ios::binary clause be omitted? Can anyone explain this to me? Loli10
-
Code Segment Questionstruct Inst { char Iname[20]; char Office[10]; float salary; int InstId; char phone[10]; } void main() { Inst ISInst1; Inst* InstPtr; . . } How much space will the ISInst1 variable take up in main memory. How much space will InstPtr take? Can you explain this to me? Loli10
-
Code Segment QuestionThanks Mike - it makes sense! Loli10
-
Code Segment QuestionNot quite. It's something that came up in lecture. My homework is writing a program. Loli10
-
Code Segment QuestionConsider the following section of code: int a = 10; int* b; Which of the following statements places the address of a in b. Remember, more than one of these options may be correct. In your response, explain which ones work and why, and also explain why the incorrect answers will not work. I want more than a listing of the syntax errors! b = a; b = &a; b = *a; *b = a; &b = &a; Loli10
-
Help with Array SortConsider the following array, whose contents are NOT sorted: int Ids[10]={12,4,22,67,2,5,11,33,6,10}; If a binary search routine is written to search through this array, what will happen? For example, Will the program abort, since the array is not sorted? or will the binary search routine be successful, but inefficient? or Will the binary search fail? or ??? Loli10
-
Question about C++Consider the following 2 program code segments. Which one utilizes main memory more efficiently, and which one takes up more space in main memory for variables? Code segment #1: int score1, score2, score3; . . Code segment #2: int score[3]; . . :rose: Loli10
-
It's snowing!Why does anyone like snow? More than once per year is enough for me. We've already had our snow storm (thankfully we got less snow then was predicted) only 6 inches fell, then the winds blew it around to make it even more interesting to drive in. Loli10
-
ApologySorry for posting in the wrong place. Loli10