473,544 Members | 1,213 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.
4
4,884
thread by: joshi123 | last post Nov 5 '15 by: weaknessforcats
Hi All, does anybody know an API to convert Adobe PDF documents into MS Word format from C++ code? Your help is appreciated, Joshi
7
1,709
thread by: aminu241 | last post Nov 5 '15 by: aminu241
hi guys, i'm New to this forum and would really appreciate your help. I've been learning linked lists recently and am trying to implement the josephus problem using c++, josephus problem is a game in which there are N number of players who are going to be eliminated after every M passes, i think i got the insertion part alright, and also the...
1
2,112
thread by: dukeeduke | last post Nov 4 '15 by: donbock
I need help with arrays, as in how to set them up for this program I am working on. This is program I am doing. The State Department of Motor Vehicles (DMV) has asked you to write a program that grades the written portion of the driver’s license exam, which has 20 multiple choice questions. Here are the correct answers: 1.B 5.C 9.C ...
2
5,115
thread by: yashagrwal98 | last post Nov 4 '15 by: donbock
Hi, I was working on the random functions programs and i dont know the prototypes for random and randomize please can some one help me ?? #include<iostream.h> #include<conio.h> #include<stdio.h> const int max=3; void main() { randomize();
1
1,000
thread by: khanfrince | last post Nov 3 '15 by: weaknessforcats
i want to make stop words remover.
18
8,887
thread by: saykenari | last post Nov 1 '15 by: nigerija
Hello Friends I have a problem date format written as DD/MM/YYYY. Date already save into a file as binary. I don't know which technique should be used. Sample date as following a. 31/09/2009 in binary in the file written as 4f 75 25 00 b. 31/05/2008 in binary in the file written as 5a 74 25 00 My problem is how the date would ...
0
928
thread by: royboyg | last post Oct 31 '15 by: royboyg
2 5 1/4 disks could anyone tell me does this type of floppy drive still exist.
14
3,196
thread by: haidarrrr | last post Oct 30 '15 by: zuko32
Hi everyone ! i'm a freshmen in c programming, and we got an assignment to create a program that spit out the roots of an quadratic equation! I've given it a try but it seems to be wrong somehow that's why i need your help! thanks the formula is x= (-1/2)*p +- sqrt(1/4)*p^2 -q) and its (p,q) is my in-data. if the equation does not have...
2
1,212
thread by: Nilton | last post Oct 30 '15 by: Nilton
does anyone know a program split a c source into many c files, where each c file contains a function of the initial c source? example: this file: //file myprog.c ------------------ #include<stdio.h> int a(int a, int b){ return a+b; }
2
1,394
thread by: masqwerty16 | last post Oct 29 '15 by: weaknessforcats
what's wrong in this problem/program? this code cannot be run in borlan c++..?? #include <iostream.h> #include <cstring.h> #include<fstream.h> #include<string.h> main () { string name = ""; string course = "";
0
968
thread by: javiertw89 | last post Oct 28 '15 by: javiertw89
Hi everyone! I need to use libraries that allow me to recognize the contour of a drop from a photograph and create a set of 2d points from it. They have to be free software. Do you know if there are any of them? It would be nice if they worked in C, C++ or Python. Thanks in advance!
3
1,492
thread by: wempwer | last post Oct 27 '15 by: weaknessforcats
C99 says: "If any argument is not the correct type for the corresponding conversion specification, the behavior is undefined." I know what UB is. However, I am interested in a particular example of how can UB look like in such situation. For example, on x86 it may fail: int i = 10; printf("%s\n", i); Another example of UB I can...
3
1,114
thread by: rdomingue | last post Oct 27 '15 by: donbock
I am a ladder logic programmer and I want to learn a programming language that I can use for both work and play. I learned that C is a good option as it is widely used. I've been on my way trying to learn. I recently stumbled across differing opinions about C and C++ and now I wonder if I've chosen my route correctly. Should I continue with C...
1
1,066
thread by: rana tariq | last post Oct 27 '15 by: weaknessforcats
i have an problem with my program plzz give some suggestion the error is function should have prototype in draw_burst(200,300); plzz give soe suggestion
2
1,608
thread by: huzaifa ejaz | last post Oct 26 '15 by: donbock
i got a project in which i have to make a c program with hardware interaction. so what can i make ? any suggestions please! and how can i ? i want some assistance .
4
1,221
thread by: Starx | last post Oct 26 '15 by: AX3M
Why semi colon is written after loop statement, in c.
7
2,264
thread by: Am195 | last post Oct 26 '15 by: weaknessforcats
Hi here is the program description " Write a C++ program that prompt the user for the names of the two files and then it compares the files. Assume each file has five lines of text. The program should prints a message indicating that the files are exactly the same or that there are differences by comparing each line from file1 with file2. If the...
1
1,131
thread by: WHG1962 | last post Oct 25 '15 by: weaknessforcats
// Start // Declarations // num SIZE = 10 // num NUMBERS // num i // num j // num temp // for i = 0 to SIZE - 1 // output "Please enter a number: " // input NUMBERS
5
3,100
thread by: mumya0236 | last post Oct 25 '15 by: hpmachining
Hello Guys, invalid numeric argument '_CRT_SECURE_NO_WARNINGS error D8021: invalid numeric argument '/wd_CRT_SECURE_NO_WARNINGS' I can't build. I did try close warnings its just work for one.
5
1,236
thread by: AndrewCool | last post Oct 23 '15 by: donbock
#include<stdio.h> void crazy(int a,int b, int m, int n) { if(n==0) return; crazy(a+m,b,m+b,n-1); printf("%d %d %d %d ",a,b,m,n); printf("\n"); crazy(a,b+m,m+a,n-1);
2
1,154
thread by: AliRauf | last post Oct 23 '15 by: weaknessforcats
please tell me about abstraction polymorphism and encapsulation and with simple code example and solution thanks
2
1,207
thread by: pinnockf | last post Oct 23 '15 by: donbock
I am having trouble understanding why the compiler is giving me the following error: level0.c: In function ‘create_grid’: level0.c:28:9: warning: return from incompatible pointer type return grid; I am simply trying to return a pointer to a struct that I created in the function.
9
1,411
thread by: Alexhandler | last post Oct 22 '15 by: weaknessforcats
I`m a beginner and i`m trying to make a program that finds all the words that start with upper case in a sentence, and then list them one after another, separated. I'm only able to use : strlen strupr strlwr strcat strcmp strcpy strstr Ex:
2
1,854
thread by: mumya0236 | last post Oct 21 '15 by: weaknessforcats
Hi Guys I have some problem with C++ its give me error C2601 C2601:Compare: local function definitions are illegal C2601:FindPattern: local function definitions are illegal bool Compare(const BYTE* pData, const BYTE* bMask, const char* szMask) { for (; *szMask; ++szMask, ++pData, ++bMask) if (*szMask == 'x' && *pData != *bMask)...
2
1,253
thread by: fixotherm | last post Oct 20 '15 by: donbock
I have this program that gets the roots of a polynomial. In the function to get the roots, I have a condition that asks if a certain array element is equal to zero. It works for some input like 2 1,4,4 but not on this one: -2,-1,15 By the way, it also works with other values with a negative sign Plus I see a negative zero in the output....

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.