| |
thread by: farheen |
last post Sep 28 '16 by: donbock
What is the main purpose of using void keyword
|
thread by: cameronmcisaac |
last post Sep 28 '16 by: donbock
The output should look like this:
This program will print a character diamond.
Enter a character: 6
Enter an odd number at least 1 but less than 40: 15
6
67876
6789:9876
6789:;<;:9876
6789:;<=>=<;:9876
|
thread by: wadzanisunday |
last post Sep 24 '16 by: Oralloy
I want a program that can convert fraction to whole number using C++ programming.
|
thread by: Saba |
last post Sep 23 '16 by: AR JAlbani
Create the equivalents of a four-function calculator. The program should request the user to enter a number, an operator, and another number. (Use floating point). It should then carry out the specified arithmetical operation: adding, subtracting, multiplying, or dividing the two numbers. Use switch case statement to select the operation. Finally...
|
thread by: Xillez |
last post Sep 22 '16 by: Xillez
Hey I'm trying to set up SFML but I get a couple errors:
Editor: Code::blocks
||=== Build: Release in SFML_test (compiler: GNU GCC Compiler) ===|
D:\SFML\lib\libsfml-graphics-s.a(CircleShape.cpp.obj):CircleShape.cpp|| undefined reference to `_Unwind_Resume'|...
|
thread by: narayan230979 |
last post Sep 21 '16 by: donbock
main()
{
int a=3;
float b=3.0;
if(a==b)
printf("3.0 is equal to 3 in c language");
else
printf("it's not\n");
}
|
thread by: Skydownbr |
last post Sep 21 '16 by: donbock
code:
volatile*boolean*TurnDetected;**//*need*volatile *
for *Interrupts
volatile*boolean*up;]
const*int*PinCLK = 2;*** //*Generating*interrupts*us ing*CLK*signal
const*int*PinDT = 3;**** //*Reading*DT*signal
const*int*PinSW = 4;**** //*Reading*Push*Button*swit ch *
...
|
| |
thread by: hussein |
last post Sep 15 '16 by: Oralloy
please help how can i define the heat flux as a function of temperature of wall q=1000*(1-0.014*(T-298)) any one can help me in writing the UDF please
|
thread by: td0g03 |
last post Sep 14 '16 by: Heather34
Hey guys, thank for the help before and maybe you can help me a little more :-).
Here is the question they are asking...
"Write a statement that reads a floating point (real) value from standard input into temperature. Assume that temperature. has already been declared as an double variable."
I been trying to figure out what it means. I...
|
thread by: Gplames |
last post Sep 13 '16 by: Gplames
Pls I am new to c++ and visual studio, I would like to know how to add the gtkmm lib to visual studio directories. Any help will be very much appreciated.thanks
|
thread by: Dwayne9 |
last post Sep 10 '16 by: Dwayne9
// 12 lines of code to work with windows
// What I added is in red, the dark red far left
// is needed the blue is what it wrote
#pragma once
namespace WriteRead {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace...
|
thread by: Xillez |
last post Sep 7 '16 by: donbock
Hey, How do you access a variable in main.cpp from a class?
So if I want to get access to "board" how would I do so?
main.cpp:
Boxes board;
|
thread by: Bluefree |
last post Sep 6 '16 by: weaknessforcats
Can you help rectify two errors in the following program:
1. Statement missing ;
2. Declaration terminated incorrectly
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
class student
{
|
thread by: radha gogia |
last post Sep 4 '16 by: weaknessforcats
I have written below code ,for the problem stated on below link under topic Array multiplication , I am unable to get the insight of why is the code not working for any test case ?
https://www.hackerearth.com/practice/math/number-theory/modulus-arithmetic/tutorial/
#include <stdio.h>
#include<inttypes.h>
#include<stdint.h>...
|
thread by: jinnejeevansai |
last post Sep 3 '16 by: ADezii
I am writing a program which involves lot of computation and 10^-7 difference is also making solution highly different. Calculation mainly consists of multiplying number by squareroot of 2 and addition of some number. I want to represent squareroot of 2 in some efficient way than floating point representation as representing that way is making...
|
| |
thread by: rizwan123456 |
last post Sep 2 '16 by: Oralloy
I couldn't understand that statement
|
thread by: radha gogia |
last post Sep 1 '16 by: weaknessforcats
I have already posted this question on stackoverflow but still I couldn't get my doubt clarified , my code is not working on 1st and 3rd input ,please clarify this .
http://stackoverflow.com/questions/39262644/how-to-find-the-maximum-product-of-two-prime-numbers-in-an-array/39262723?
|
thread by: ccgt |
last post Sep 1 '16 by: weaknessforcats
I need to read a txt and store it in a dynamic string array
the code I have now does but memory is wasted because it is static
I like to read a txt and every word stored in a string array of dynamic
#include <stdio.h>
#include <conio.h>
#define MAX_CHARS 20
|
thread by: park jae hong |
last post Aug 31 '16 by: weaknessforcats
i got problem of this question :
The input date will have the format mm/dd/yyyy. A valid month value mm must be from 1 to 12 (January is 1). The day value dd must be from 1 to a value that is appropriate for the given month. February has 28 days except for leap years when it has 29. A leap year is any year that is divisible by 4 but not...
|
thread by: radha gogia |
last post Aug 27 '16 by: weaknessforcats
I referred this link ,but I am unable to get the logic behind using %%*c or % as format specifier .
http://stackoverflow.com/questions/14494309/reading-multiple-lines-of-input-with-scanf
And how to scan multiple lines of input when we don't know the end of input , say in those cases where we have an online compiler which would be giving its...
|
thread by: jinnejeevansai |
last post Aug 17 '16 by: jinnejeevansai
It is also given that in case of a tie, a smaller indexed vertex should be preferable to a larger indexed vertex.
First in my approach i traversed graph using bfs finding distances of all vertices from start node ,i got the path length from start to end node,then i traversed from end node to start node by viewing if the length of node is one...
|
thread by: uricka |
last post Aug 16 '16 by: weaknessforcats
#include <iostream>
using namespace std
int main ()
{
cout<<"please input the size of the square");
cin>>("%d";& size);
for(int i=0;i<size;i++)
{
|
thread by: Keletso |
last post Aug 16 '16 by: donbock
How to write a program that reads a line of text, changes each letter to the lowercase, and place in a queue and onto a stack. The program should then verify whether the line of text is palindrome.
|
| |
thread by: chachacha |
last post Aug 10 '16 by: chachacha
|
thread by: Pushpavh |
last post Aug 9 '16 by: donbock
Hi,
i am getting segmentation fault with the below code.
size_t strlen(const char *str) {
const char *str1 = str;
if (str == NULL)
return(0);
while (*str)
|