Programming c Definition and 17 Threads
-
C/C++ Suggested books to supplement learning C and C++ programing?
Aloha, I am wanting to teach myself C and C++ programming languages and before I purchase any books or materials on the subject. I would like to see if anyone has any recommendations?, and the pros and cons if any, ect.- KonaGorrila
- Thread
- Books C++ Programming c Programming c++
- Replies: 15
- Forum: Programming and Computer Science
-
[C] Use recursive function to get the min value of an array
Homework Statement Using these two prototypes, double minValue( const double a[], unsigned els); double minIndex(const double a[], unsigned els); I am supposed to find the smallest value of an array using the minValue function as well as it's index by using the separate minIndex function and...- bornofflame
- Thread
- Array Function Programming c Recursion Recursive function Value
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
TeamTreeHouse, to enroll or not to enroll
For a beginner in programming with some prior experience and the one eager to get started in c would you recommend?- doktorwho
- Thread
- Coding Programming c
- Replies: 3
- Forum: Programming and Computer Science
-
G
C: Problem with accessing struct variables
Homework Statement I have problems with the following program which is long to post at once so I will explain what are the problems step by step. 2. The attempt at a solution 1. Define two structs that represents books and a bookstore as following: typedef struct { char id[14]; char...- gruba
- Thread
- Programming c Variables
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
G
Print Highly Prime Numbers in an Input Interval | C Program
Homework Statement Write a program that will print all highly prime numbers from the input interval <a,b>. Prime number is highly prime if deletion of every digit from right is a prime. Example: 239 is highly prime because 239,23,2 are primes. 2. The attempt at a solution Could someone point...- gruba
- Thread
- Numbers Prime Prime numbers Problem solving Programming c
- Replies: 8
- Forum: Engineering and Comp Sci Homework Help
-
G
Solving Arithmetic on Large Positive Integers with Bignum Strings
Homework Statement Write a program (without using GMP library - https://gmplib.org) which performs arithmetic operations on large positive integers (addition, subtraction, multiplication and division). Maximum number of digits in one number is 100. Large number is the number that can't be...- gruba
- Thread
- Arithmetic Programming c String
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
G
C: How to allocate memory for char*** data type
I have an array of n strings (with blank spaces). Data type of an array is char***. How to allocate memory for char*** data type?- gruba
- Thread
- Data Memory Programming c Type
- Replies: 12
- Forum: Programming and Computer Science
-
G
C: Squaring string represented as positive integer
Homework Statement Write a program that will square the input positive integer represented as a string. Homework Equations 3. The Attempt at a Solution [/B] Is there another way of squaring a string number instead of multiplying it by itself? Something like a pow() function for strings? If...- gruba
- Thread
- Integer Positive Programming c String
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
G
C: Print specific fields from a structure
Homework Statement Define a structure VEHICLE which contains producer, model and chassis number. Store the content of a structure in binary search tree such that the key for storing contains all fields of a structure (producer has the highest priority, and chassis number has the lowest). Print...- gruba
- Thread
- Fields Programming c Specific Structure
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
G
C: Manipulation with structures
Homework Statement Write a program that reads data about n number of books. Sort data about books lexicographically by title (if the title is the same, sort by publish year), and then for every book sort data about authors. Then, read name and surname of one of the previously read authors, and...- gruba
- Thread
- Manipulation Programming c Structures
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
G
C: Sorting and searching data from separated files
Homework Statement Write a program that reads data from binary file EMPLOYEE.DAT (employees are proffesors and teaching assistants, assume that the file exists). Split data about proffesors and teaching assistants in two separate text files and sort data by ID using insertion sort algorithm...- gruba
- Thread
- Data files Programming c Sorting
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
G
C: Recursive function into iterative
Homework Statement Write an iterative function char* conversion(unsigned int num, int base), that converts an integer num into any base (base <=10). Homework EquationsThe Attempt at a Solution How to transform the following recursive function conversion() into iterative: #include <stdio.h>...- gruba
- Thread
- Function Iterative Programming c Recursive function
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
G
Why Does This Program Cause a Segmentation Fault?
Homework Statement Write a program that reads strings(words) from a text file and copy the inverted words to another file (use the command line arguments). Form a new array of words b from original array a using the function void formNewArray(char **a, char **b, int n, char* (*t)(char *))...- gruba
- Thread
- Function Programming c
- Replies: 11
- Forum: Engineering and Comp Sci Homework Help
-
Pointers -->(makes integer from pointer without cast)
Homework Statement I am to write a program that has its user enter 100 character or less and determine if the line is a palindrome or not. I must use pointers one that starts at the beginning and one at the end of the array that must work their way in until they meet.(I'm also having trouble...- SnakeDoc
- Thread
- Arrays Integer Pointers Programming c
- Replies: 8
- Forum: Engineering and Comp Sci Homework Help
-
G
C: Printing specific elements of a structure
Homework Statement I have the following code which manipulates with basics of structures. There are function like reading and sorting data from structures. Now, I don't know how to write a function that reads name and surname of an author of a book, and then prints data about books that are...- gruba
- Thread
- Elements Printing Programming c Specific Structure
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
D
Programming C The Hangman Game - Array/Strings Help
I'm well aware of all the Hangman codes that are out there given, but I feel that I will get a better understanding of this project if I did it myself with some help. My main problem is knowing how to compare one character of array from a string text file. The text file consist of a whole...- denZer
- Thread
- Game Programming Programming c
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
H
Troubleshooting C++ Code: How to Fix Input Issues in a Programming Project
I am working on a project, I am attaching my code and the Solutions...im not sure wat is wrong w/ the code, but i couldn't get it to ask for "Inputting a value for a" at all...i was able to get it to input theta1 and theta2 though. Plz help me out ASAP...I want to attach my assignment pages...- hytuoc
- Thread
- C++ Programming Programming c Programming c++ Project
- Replies: 6
- Forum: Introductory Physics Homework Help