| |
thread by: jackwld |
last post Jan 21 '18 by: weaknessforcats
Hello,
I am trying to make a program in C with multiple bouncing balls. The problem is that I have created a code, but my program doesn’t run properly. To be more exact, I think the part where it reads the data is fine, but then there is a problem in the code of the graphics.h library. I cannot understand where the problem is, as it is the...
|
thread by: dev7060 |
last post Jan 18 '18 by: donbock
The program is of addition of the polynomials. Implementing it through linked lists. Every node of the list has three fields: coefficient, exponent and the next pointer field pointing to the next node of the polynomial expression. The next pointer field of the last node contains NULL.
Right now, the coefficients and exponents are to be entered...
|
thread by: kabaismael |
last post Jan 13 '18 by: weaknessforcats
What are the advantages ans disadvantages of employing the "using"
directive?
|
thread by: vinaykumaar |
last post Jan 10 '18 by: donbock
Hi
here is the error I got after executing the program
prog.c:12:5: error: redefinition of ‘main’
int main() {
^~~~
prog.c:3:5: note: previous definition of ‘main’ was here
int main() {
^~~~
|
thread by: Laserblade |
last post Dec 22 '17 by: Laserblade
I'm having a hard time detecting XMaskEvents in C using Xlib. I want my program to be alerted whenever a window gets the focus and when it loses its focus.
Here is my code:#include <gtk/gtk.h>
#include <gtk/gtkx.h>
#include <X11/Xlib.h>
#include <stdlib.h>
static void activate (GtkApplication* app, gpointer user_data)
{
GtkWidget...
|
thread by: Bluerose939 |
last post Dec 22 '17 by: donbock
ive been stuck on this problem for a while and I cant figure out how to write the program without using anything past looping because I'm a beginner so please help!!
Write a program that prompts the user to input a positive integer. It should then output a message
indicating whether the number is a prime number or not. Solve this program using...
|
thread by: ProgramingQUeen |
last post Dec 22 '17 by: donbock
Please help ive been stuck on this for a while and I'm just starting programming so I cant use anything past looping.
Write a program that prompts the user to input a positive integer. It should then output a message
indicating whether the number is a prime number or not. Solve this program using a flag
controlled loop.
For an added bonus...
|
| |
thread by: nang007 |
last post Dec 19 '17 by: nang007
I am very new to programming.
I am working on a light sensor so I want only the sensor readings (the last column) displayed in the console and make a decision based on the data.
Can anyone please help.
Thank you.
|
thread by: suliman11 |
last post Dec 16 '17 by: weaknessforcats
hello
I have a problem In this code
//Function to minimize DFA
pair<int,vector<string tuple<int,int,bool>> > minimize_dfa(vector<dst) {
cout<<dfa.size()<<endl;
vector<int> grp(dfa.size()); /// Group number for states
vector<vector<int> > part(2, vector<int>()); /// Partition for groups
|
thread by: fairywendy9x |
last post Dec 9 '17 by: weaknessforcats
Hi all,
Hope you are doing well. After a very long time, I have visited bytes.com hoping that I should continue my visits regularly from now on.
Out of interest, when I had browsed my profile, I could see that I had subscribed to "java" topic alone. I would like to subscribe for few other topics as well. However, I don't find a way to do so....
|
thread by: Shivi Wariku |
last post Dec 8 '17 by: donbock
tell me the output of the following c program and the reason behind it
long int a=400*400/400
result =72
|
thread by: Sashakt |
last post Dec 5 '17 by: Frinavale
i want to make c program which takes the input..until it is greater than 18 when it becomes greater than 18 then print adult.
|
thread by: nazimhussain |
last post Dec 2 '17 by: donbock
1. #include <iostream>
2. using namespace std;
3. void generateTable(int x, int y){
4. int result = y / x;
5. for(int i = 1; i <= 10; i++){
6. cout<<result<<" * "<<i<<" = "<<i*result<<endl;
7. }
8. }
|
thread by: safa14 |
last post Nov 30 '17 by: weaknessforcats
hello ! im kind off new in programming with c++ i created a project with name trigo who had 2 classes and i have this problem that i could not fixed any suggestions ?
|
thread by: khobby |
last post Nov 28 '17 by: Sharoo123
how to create a c++ program to convert currencies
|
| |
thread by: davgre |
last post Nov 26 '17 by: weaknessforcats
Getting a segmentation fault for the following:
/*
*
* Linked lists and an editor buffer
*/
/* A doubly-linked node structure.
*/
|
thread by: lokesh007 |
last post Nov 23 '17 by: weaknessforcats
#include<iostream.h>
#include<conio.h>
void main()
{
double emp_sal;
int cout=0,no_of_employees;
clrscr();
cout<<"enter the no.of employees";
cin>>no_of_employees;
cout<<"enter the monthly salaries of employees";
|
thread by: Treasure1 |
last post Nov 21 '17 by: weaknessforcats
I need help, I am a beginner in C++ programming.
I have been given an assignment and I tried several times but cant do it and need help
this is the question and what I have done so far:
/*
Q1. Develop a C++ program that will determine the gross pay for each of several employees.
The company pays “straight-time” for the first 30 hours...
|
thread by: samdude5556 |
last post Nov 21 '17 by: weaknessforcats
Hey guys i keep getting an "expected unqualified id before "{" token in line 19 anyone help please very urgent
#include <iostream>
using namespace std;
int main();
struct student
{
|
thread by: JUNAYED HOSSAIN |
last post Nov 15 '17 by: donbock
Is binary search work for odd number OF element ?
|
thread by: LordBolt |
last post Nov 15 '17 by: LordBolt
I am trying to convert this program to international numerical system, its in Indian system any suggestions will help
#include<stdio.h>
#include<conio.h>
void convert(long,char);
char *one={" "," one"," two"," three"," four"," five"," six"," seven","eight"," Nine"," ten"," eleven"," twelve"," thirteen"," fourteen","fifteen"," sixteen","...
|
thread by: M Sharif Bugti |
last post Nov 13 '17 by: donbock
a labour work in a factory if he works 40 hours he will pay 1000 for one hour, if he works more than one hour he will pay 1500 for above hours. How we do it without using if else condition in C++.
|
thread by: aRiFiN |
last post Nov 7 '17 by: Tasnin Khan
im newbie here.. n need some help..
alphabets got 26 character n each character got secret number..
example: a = 01
|
| |
thread by: jia123 |
last post Oct 30 '17 by: weaknessforcats
ask the user to enter a number
a)get separate digits of this number
b)find the sum of the digits
|
thread by: KDamon |
last post Oct 30 '17 by: weaknessforcats
I made a linked sorted list type, and I'm trying to insert unique random integers into it. I tried using the following method to keep the integers unique, but when I try it, I'm still getting duplicate integers. Is there something I'm missing with this method?
int generate_numbers(const int min, const int max)
{
LinkedSortedList<int>...
|