473,544 Members | 420 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
987
thread by: akshatha kini | last post Oct 19 '15 by: weaknessforcats
what is the purposes of the keyword void?where is this keyword is used?
2
1,326
thread by: piu15 | last post Oct 19 '15 by: piu15
line 15:type mismatch in redclaration of 'merge' #include<stdio.h> #include<conio.h> void mergeSort(int x,int lb,int ub) { int m; if(lb<ub) { m=(lb+ub)/2;
1
1,735
thread by: 19is97 | last post Oct 19 '15 by: weaknessforcats
Hi, I'm new to C++ programming and this program basically needs to populate an array with integers from the user and display the array as part of a string. The catch is that I have to use specific functions given to me. However, one of them(populate_array() ) keeps bothering me to return a value but I don't know how to fix it. Any help would be...
1
1,217
thread by: Shady2 | last post Oct 17 '15 by: weaknessforcats
NEED HELP..!!! Guys I have been given a project to create a C++ program to manage staff of a school. I can Do the programming part But I wanted to know that is there any way through which I can use SQL in my program. Because, you know, storage and usage of data is way easier in SQL. So is it possible? If yes, How? Thanks.
0
995
thread by: Menen | last post Oct 16 '15 by: Menen
Hello, I want to read multiple bytes from ADXL345C sensor and someone suggest to use : int16_t m = foo.read(); but I didn't understand what foo.read() do!!! can somebody help me?
4
1,542
thread by: ungetuem | last post Oct 14 '15 by: donbock
i just started learning C, but after i finished writing this programme, it wouldn't respond to the number that i had entered. can anyone please tell me what is going on? thx!
1
1,269
thread by: yashmohan | last post Oct 11 '15 by: weaknessforcats
void initial::update_balance(int t_accno,char t_name,char t_address,float t_balance) { int recno; recno=recordno(t_accno); fstream file; file.open("INITIAL.dat",ios::out|ios::ate); strcpy(name,t_name); strcpy(address,t_address); balance=t_balance; int location;
3
1,404
thread by: gneisler | last post Oct 9 '15 by: weaknessforcats
I can not get this program to work. #include <iostream> #include <iomanip> #include <string> using namespace std; const int SIZE = 80;
2
1,478
thread by: zeroxster | last post Oct 9 '15 by: zeroxster
Hi there, Iam a beginner in c language. When I try to run a set of code I get two errors. One is expression syntax error and the other error says " variable is assigned a value that is never used". Please help me with this Find my code here
15
12,642
thread by: abhi17 | last post Oct 6 '15 by: weaknessforcats
this expression has undefined o/p but how could it give 4 4 pls suggest any possible mechanism by which 4 4 is produced
2
1,154
thread by: alsahfi | last post Oct 6 '15 by: weaknessforcats
/*header file declare*/ #include<stdio.h> #include<conio.h> void main(){ /*Declare local variable*/ char ch; int valuea; int valueb;
1
1,234
thread by: sandy04 | last post Oct 4 '15 by: weaknessforcats
#include <iostream> using namespace std; int ConvertToBinary (int); int main() { int num; cout << "Input Number"; cin >> num; cout << ConvertToBinary(num);
5
1,287
thread by: xenium | last post Oct 4 '15 by: weaknessforcats
While compiling my code in turbo C++ error "Segment _TEXT exceeds 64k" shown what does it means and how to solve the problem?
2
1,642
thread by: JabirFarah | last post Oct 3 '15 by: donbock
Hi guys, i apologize for my lack of knowledge or how silly this question may be, but can someone explain to me how does ndebug cancel the assert function of C? and an example would be most useful, if possible of course. Thank you for your time!
-
-
thread by: rupalkataria | last post Oct 2 '15 by: rupalkataria
Moved:
3
1,847
thread by: Clearner321 | last post Oct 2 '15 by: weaknessforcats
I was trying the program to calculate the factorial of a number. The program is to identify the value of number at the which the factorial crosses the range of the data type. How should i do this? Please help me for the logic. I want to accommodate all kinds of data types. Thanks.
3
1,301
thread by: rashi agrawal | last post Oct 2 '15 by: weaknessforcats
how to print : 1) 3 2) 1 2 3 3) 1 2 3 4) 1 6 5 4 5 5 6 4 5 7 8 9 7 9 7 8 9
2
1,175
thread by: gneisler | last post Oct 1 '15 by: gneisler
I am having trouble cleaning this mess up. This overloaded program is supposed to utilize an overloaded equality operator that should return true if the two student’s objects are equal and false if the two are student objects are not equal. And include an overloaded assignment operator in the Student class that assign one Student object to...
1
4,760
thread by: silencejk | last post Sep 30 '15 by: weaknessforcats
I have a problem that involves the use of a structure and pointers (not allowed to use arrays). I have to add a record using pointers and memory allocation and then eventually delete records. I do not know how to use memcpy to copy the structure itself to add to the program. I have a structure: struct childrensBook //Structure of books using...
2
1,264
thread by: Rifki | last post Sep 29 '15 by: jaseel97
#include<iostream.h> int main() { char *nama_siswa; int nilai_1; int nilai_2; int rata_rata; char *phi; int r; int luas;
3
1,340
thread by: SelNasser | last post Sep 28 '15 by: donbock
Hi all, I'm working on an assignment and I've been asked to change my code so that I am not using any if or if else coding... So as of now, my full code works perfecting but uses If Else and I've been trying everything but I can't seem to find a good alternative. Here's a small sample of what I have, I don't want to post the whole thing...
1
1,204
thread by: Freshmen | last post Sep 27 '15 by: Clearner321
for(int k=1;k<=num;k++) printf(\nPlease enter your desired seat %i: ",k) scanf("%i",&a); //num is declared if how many the user will input How to use scanf?
1
2,128
thread by: JollyGoodDaySr | last post Sep 27 '15 by: weaknessforcats
I have been at this for hours now, and I cant get the damn thing to work. every time I try to just stuff that should work it comes back with weird errors. Please help I have no idea how to fix it. Ill put the errors i get at the bottom of the code. #include <stdio.h> #include <stdlib.h> void arithmeticSequence(void) { int a = 1; int y =...
1
7,463
thread by: chandresh | last post Sep 24 '15 by: weaknessforcats
How to print hello world in double quote in c ?
2
1,492
thread by: Manoj Manu | last post Sep 24 '15 by: Manoj Manu
Hi, I just confused with strtok() functionality. while Iam trying to know about strtok() function, I found a sample code in one of the C websites. After executing that code what i come to know was "the string which we are giving" was separated and printed as a separate strings. The below code is that reference code. #include <stdio.h>...

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.