49,757 Topics
| |
**I'm having difficulty translating C code that loops through an array of grades. The C code is as follows:** int A, B, C, D, F; // declare grade counters int i; // declare loop counter int N ; // Number of scores to analyze A=0; B=0; C=0; D=0; F=0; // … | |
Enter 10 student grades and print the total number of passing and failing grades entered | |
iam asking about chimical equations how can i programme it to the computer how can i make the computer understand that c+o2=co2 or naoh + hcl =nacl+h2o i mean how he understand that acid +alkail= water +salt | |
please help in writing a programming code for this project | |
Hi, I looked for this information, but couldn't find it anywhere. Is there a difference between a "template class" and a "class template" or are they just two different ways of saying the same thing ? Thanks a lot. | |
hello i just get started with java so i have a question where the difference from c/c++ and the famous lovely java begin, the function or better method, so in c/c++ we can make a function prototype on top the main and then define it later like this int myfunctionprototype(int … | |
I'm doing a project that reads some string reactions from file at formula e.g: (5A+3B=c+10D) as an input, i need to do a parsing for the string reaction so that i can extract &(split) integer values beside a char and put them into a vector i.e vector associated with the … | |
I have to do this program in C++ but I don't know how exactly to write it so that it displays everything it has to display. I'll be really thankful if you try to help me because I'm not so good at programming. 1. Create a program that has linked … | |
Hi, I am converting some C++ code to C# now and need some help on reading it! The C++ code is: uchar p2 = im.at<uchar>(i-1, j); uchar p3 = im.at<uchar>(i-1, j+1); uchar p4 = im.at<uchar>(i, j+1); uchar p5 = im.at<uchar>(i+1, j+1); uchar p6 = im.at<uchar>(i+1, j); uchar p7 = im.at<uchar>(i+1, … | |
sir i am newer to C++ but i know about syntax and rules plz tell me about to design a project for my finals which could be efficient and easier to understand | |
Hello guys please help with my simple project. I'm new to c++.This is the problem. USING FOR LOOPING STATEMENT. CREATE A C++ PROGRAM THAT WILL ASK 10 INPUT VALUES. THE PROGRAM SHOULD BE ABLE TO ADD ALL THE INPUT VALUES AFTERWARDS. Thanks to those who will help. HAVE A NICE … | |
sir i want to make a calendar of any year... date of calendar starts from any day.. | |
How can we insert two independent random number to two equations (x,y) contain two parts like this: x = a* randomnumber1 + b* randomnumber2 y = c* randomnumber1 + d* randomnumber2 these two random number should be independent. Thank inadvance. | |
I just figured out the answer to one of my previous questions but now I have a new problem, before I was just being a tad silly and forgot how to properly write a function but now my question is if I have the following function `int findMobile( string word, … | |
I am trying to declare a function to find the largest mobile element for a program to list permutations using johnson-totter algorithm. Here is my definition of the function in the header file: `int findMobile( string, int[] );` and here is my actual declaration of the function: `int findMobile( string … | |
Hi can you help me. I was assigned to create a stack in c++ and my professor asked to put arrays inside each stack. how do i do that? | |
Hello, I am getting a linked error when I changed file name to cpp. 1>main.obj : error LNK2019: unresolved external symbol "void __cdecl func_name(double * *,int,int,int,double * *,double * *,double * *,double * *)" I am using objects in my new code but this function which was there earlier is … | |
Hy Guys,I Need Your Help Regarding This Question.. I run this Program on Dev c++ and Compiler did not Show Error but During INput I can not input Name and Address in both student class and School Class.. Sorry For bad English.. :) #include<iostream> #include<string.h> #include<fstream> using namespace std; class … | |
I'm looking for an algorithm, pseudocode or any langauge, to generate random numbers with the following characteristics: integer values in the range 0-n lower values much more likely to happen than higher values, eg prob of 0 is n/(n(n-1)), prob of n is 1/(n(n-1)) - linear relationship between value and … | |
the program is supposed to find the sum of 10 integer numbers stored in an array but i'm having this error: [Error] invalid types 'int[int]' for array subscript. this is my program: #include<iostream> using namespace std; void readarray(int array[][30], int rows) { int i=1; cout<<"Enter 30 Numbers into an array:"<<endl; … | |
Hi guys! I'm new in c++ so I really need your help. I have this code but I have to use classes, how can i modify the struct to class? Please help me. #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <conio.h> #include <iomanip> using namespace std; int main() … | |
Hi, I am trying to develop a software which can get information like listed bellow In System : -SERIAL NUMBER(847MY5N15) -UUID(4C4C4554-0134-3710-804D-B8C04F594E31) -BIOS VENDOR(Dell Inc.) -BIOS VERSION(A09) In Motherboard(Optional, but will be good if : -MOTHERBOARD VENDOR(Dell Inc.) -MOTHERBOARD MODEL(02XJP9) -MOTHERBOARD VERSION (A03) -MOTHERBOARD SERIAL NUMBER (/847MYN1/CN1296112402BB/) In CPU: -CPU MODEL(Intel(R) … | |
Hello, I am looking forward to buy a new C++ book which includes more advanced topics in algorithms, templates, STL, memory management, covering C++11/14 . I browsed on amazon but i feel confused, most of books are for beginners, more advanced ones looks like they do not have good feedback. … | |
Hi, I hope you can help me out of this because i really dont understand how to fix this code anymore, i tried and tried and it don't work. When i debug this code in Microsoft Visual Express 2010, it says the following erros are: 1>------ Build started: Project: Adreesbook2, … | |
Hello, I am trying to write two equations, each element in the equation is an arry , double XDiffusion (int D,int D11, int x, int s) { float DeltaX; return DeltaX; } double YDiffusion (int D,int D11, int x, int s) { float DeltaY; return DeltaY; } int main() { … | |
Hello guys, our teacher gave us this code to transform it into a code that includes classes. It is about students registration into courses. It has also logical problems. Since Im new in C++ I really need your help, this is important. thank you | |
Hi guys! I'm new in c++ so i really need your help. I have to do a project Student Course Registration. I have to do a program where students can insert their id name and course. I have to use classes in c++ | |
I'm a noob at C++ and this is the first assignment in my class. I'm not sure If I did it right. Can someone please check and correct it please? Thank you Question: develop the pseudo code for the following: Negotiating a consumer loan is not always straight forward. One … | |
Hi, Guys i just wanted to know whether set store elements in specific order or it contains unordered elements only. As per c++ specification http://www.cplusplus.com/reference/set/set/?kw=set Sets are containers that store unique elements following a specific order. As per my knowledge they are not ordered in the sense that you can't … |
The End.