473,547 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
1
1,585
thread by: john301 | last post Apr 5 '18 by: weaknessforcats
I was wondering if the bubble sort could work with character strings, to sort names in C?
1
2,223
thread by: glenpharmd | last post Apr 5 '18 by: weaknessforcats
Need pseudo code example c++ for loops
2
1,635
thread by: john301 | last post Apr 2 '18 by: weaknessforcats
I have to write a C program that takes input of clients for a business. I am using a structure with an array to store the data, then passing the array to functions to be sorted. The issue is that the data is not being passed. Here is the code. #include <stdio.h> #include <string.h> #define CLIENT 5 struct clients { int ...
1
2,915
thread by: 11709191 | last post Mar 26 '18 by: weaknessforcats
#include<iostream> using namespace std; class teacher{ protected: char name; int integer; char qualification; int experience; int salary; public: void get(){
9
1,894
thread by: zentrox21 | last post Mar 19 '18 by: Luuk
A = 1 so on then small letters a = 27 using ascii please help thank you so much
1
2,101
thread by: Pardeep Bhatt | last post Mar 18 '18 by: donbock
#include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <limits.h> #include <stdbool.h> void func(int** a, int rows, int cols) { int i,j,t=0;
8
2,163
thread by: ovince01o | last post Mar 15 '18 by: ovince01o
they give us 10 days to do a program of finding the modes using array. and i dont really know how to do it :( 1.get the number of score of the user 2.allocate array 3.get the scores 4 short scores(array) 5. find the mode ang how may use it. i hope you can help me.thank you in advance :)
2
1,501
thread by: jaredv11 | last post Mar 11 '18 by: weaknessforcats
Okay, so I've gotten what I think is a good start on this project, not sure though. I am confused on how to make my program be able to run for 0 to an infinite number of employees. I know its a loop but not sure how to prompt int main to run again after computing for an employee. I'm assuming I need a kill command of like "5" to stop the program....
3
1,566
thread by: lillianmutinda | last post Mar 4 '18 by: weaknessforcats
I am confused on the difference between static and dynamic arrays,in the examples part
3
1,320
thread by: moronjoe | last post Feb 27 '18 by: donbock
how can count how many variables from file in c code and how many function in c file please give answer write a c/c++ code thanks
2
1,391
thread by: tupacshakaur | last post Feb 24 '18 by: weaknessforcats
Hi, Opening eclipse from windows operating system is it possible to create a project in c language and compile the program for linux and not for windows?If possible, can someone give me some guidance? I didn't find the right solution from the internet.
1
1,383
thread by: tupacshakaur | last post Feb 24 '18 by: weaknessforcats
Hi, First question, is it possible/useful to program OpenGL just with C and not C++? If it's possible, does it have severe limitations on what I can do? I have just finished a cource on C and would like to get things happening with OGL straight away instead of learning C++. In as little code as possible, what's the minimum I need to get a...
1
1,037
thread by: tupacshakaur | last post Feb 24 '18 by: weaknessforcats
Hi, Enough about my background, I just want to to start learning C++. I have been watching thenewboston C++ tutorials and I learnt alot like functions, making a basic calculator, variables, if statements and so fourth. I just want a good beginners book that covers basic C++ in a level of English that I can understand. I have been looking to get...
2
35,700
thread by: k1ckthem1dget | last post Feb 24 '18 by: ovince01o
I dont know how to find the mode of an array. I am to do the following. (1) Given the following: · A list of 11 integers; 1,2,3,3,3,2,2,1,3,4,5 (2) The program should:
0
1,089
thread by: tupacshakaur | last post Feb 24 '18 by: tupacshakaur
Hi, I am trying to make a program in C with multiple bouncing balls. I know it is a very known program and I have already searched the internet and seen different versions of it. However, because I am new in programming, I didn’t manage to understand them and answer my questions. The problem is that I have created a code, but my program doesn’t...
1
1,202
thread by: Cando58 | last post Feb 23 '18 by: donbock
Doing my taxes. When I divide $2220.00 by$2,500.00 you get .888 what is the next higher whole number, I need to know to complete worksheet
2
5,592
thread by: gaotianyu | last post Feb 23 '18 by: donbock
Here is all my code but I get a error with N/=10 it says:assignment of read-only parameter N I don't know how to deal with it #include<stdio.h> #include<math.h> int number(const int N); int main() { int n1,n2,i,cnt;
2
2,130
thread by: Bhavana1 | last post Feb 21 '18 by: alexhuber
how to get started with pointers of c language and how can i get a good grip on them ?
1
1,345
thread by: aung zay phyo | last post Feb 20 '18 by: weaknessforcats
When I wrote c program in developer c++ ,appear gcc.exe Application error. If I compile program, error run.
1
1,280
thread by: anassamar | last post Feb 19 '18 by: weaknessforcats
I have error when I try to input string by the user in visual stdio 2015. scanf_s does not work
1
2,092
thread by: nomad2003 | last post Feb 10 '18 by: weaknessforcats
FILE *err_fp, *barcode_ffd; C++ code 64 bit LINUX. . . barcode_ffd = fopen(barcode_printer,"w"); . . tcflush(barcode_ffd,TCIOFLUSH); /* clear out buffers for printer */ THE TCFLUSH gives me the error, what code is needed to fix this...
4
2,066
thread by: LemonFoam | last post Feb 4 '18 by: donbock
My project is to control the LED by send '1' or '0' via serial monitor. My task for this project is when '1' is send via serial monitor, the Led ON PIN 3 need to blink until '0' is send via serial monitor, the LED will be turn off. Then, when next '1' is send , the Led ON PIN 3 will blink again. But it doesn't work for my code. This is my first...
5
8,051
thread by: saud king | last post Feb 1 '18 by: weaknessforcats
Kindly help me i want to submite a project tommorow . . . why shoul its come every tyme . . . fuction 'system' should have prototype
1
1,734
thread by: no landing | last post Jan 31 '18 by: weaknessforcats
want to know about ifstream and ofstream.
2
1,718
thread by: maria33 | last post Jan 26 '18 by: donbock
This is a code to do for extra practice before we go to our lab tomorrow morning. Our professor said if we can get through this practice example, the lab shouldn't be too difficult tomorrow. However, I keep running into errors (mainly syntax) or being told that I have illegal characters. Any and all help is much appreciated. /* Name Section...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.