49,757 Topics

Member Avatar for
Member Avatar for Kunyepa

**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; // …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for Joshua_14

Enter 10 student grades and print the total number of passing and failing grades entered

Member Avatar for David W
0
209
Member Avatar for المهندز

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

Member Avatar for rubberman
0
261
Member Avatar for deboararo
Member Avatar for stilllearning

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.

Member Avatar for parchuresunilv
0
2K
Member Avatar for chrisschristou

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Asmaa_7

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 …

Member Avatar for ddanbe
0
291
Member Avatar for Vessy

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 …

Member Avatar for rubberman
0
334
Member Avatar for Devon_1

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, …

Member Avatar for rproffitt
0
224
Member Avatar for Zeenat_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

Member Avatar for rubberman
0
38
Member Avatar for DANIELJB
Member Avatar for rubberman
0
94
Member Avatar for jessmark

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 …

Member Avatar for pritaeas
0
82
Member Avatar for Arslan_1

sir i want to make a calendar of any year... date of calendar starts from any day..

Member Avatar for David W
0
101
Member Avatar for ALosh99

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.

Member Avatar for ALosh99
0
261
Member Avatar for toxicandy

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, …

Member Avatar for rubberman
0
268
Member Avatar for toxicandy

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 …

Member Avatar for rubberman
0
452
Member Avatar for miruuu

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?

Member Avatar for rubberman
0
178
Member Avatar for danibootstrap

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 …

Member Avatar for rubberman
0
291
Member Avatar for Muhammad_102

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 …

Member Avatar for 2teez
0
235
Member Avatar for JamesCherrill

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 …

Member Avatar for invisal
1
664
Member Avatar for Zzz_1

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; …

Member Avatar for gemsvidhi
0
606
Member Avatar for Romina_1

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() …

Member Avatar for admiri92
0
281
Member Avatar for altjen

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) …

Member Avatar for JOSheaIV
0
779
Member Avatar for admiri92

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. …

Member Avatar for ddanbe
0
192
Member Avatar for khaled02

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, …

Member Avatar for khaled02
0
238
Member Avatar for ALosh99

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() { …

Member Avatar for ALosh99
0
609
Member Avatar for Kunora

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

Member Avatar for 2teez
0
109
Member Avatar for Romina_1

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++

Member Avatar for ddanbe
0
147
Member Avatar for whaleflipper

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 …

Member Avatar for invisal
0
706
Member Avatar for can-mohan

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 …

Member Avatar for JamesCherrill
0
300

The End.