[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why does my c++ program not work?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 29
Thread images: 3

File: source.jpg (35KB, 453x369px) Image search: [Google]
source.jpg
35KB, 453x369px
Why does my c++ program not work?
>>
wtf I hate C++ now
>>
TAKBIR
>>
>>62021753
Because scanf doesn't work with UTF8 input

Also, why are you printing the address of X in the first printf?
>>
>>62021753
for debugging purposes, which country are you trying to blow up, ahmed?
>>
It's Arabic so you need to write your code right-to-left
>>
>>62021753
>no %d in printf

ahmed you should stick to (((clocks)))
>>
You need to smear some bacon on your keyboard before the code compiles properly.
It throws an error if it detects baconless keystrokes.
>>
>>62021766
ALLAHAKBAR
>>
>>62021753
>Not including stlib

wew lad
>>
File: isis uses google.jpg (66KB, 960x720px) Image search: [Google]
isis uses google.jpg
66KB, 960x720px
>>62021766
ALLAH AKBAR
>>
Nice clock, Ahmed.
>>
>>62021753
1. you should at least translate these arabic to english so everyone knows what you are trying to do

2. it might be %d not %i in that scanf
>>
3. also passing arguments to printf when it does not expect to
>>
>>62021852
%p
>>
>>62021753
i don't know, but -Wall -Werror probably will. there's a reason they exist.
>>
>>62021766
ALOHA
>>
>>62021753
Why are you not using iostream?
If you are going to use C's printf you should include <cstdio>
>>
File: 1421333795253.jpg (79KB, 403x498px) Image search: [Google]
1421333795253.jpg
79KB, 403x498px
>>62021753
>x = x - 1
>>
>>62021753
Allah Hackbar
>>
>>62021807
solid kek
>>
>>62021753
Because you are trying to write code in terrorist.
>>
>>62022080
OP is a troll, the Arabic language used there is broken and obviously was brought from google translate.

t. an ay-rab
>>
>>62021753
I dont know x++ but you instantiated x as null and then tried too incrament this null value. Set int x = 0
>>
>>62023617
Nevermind i didnt see the scanner.
>>
>>62023590
I would actually move to arab but I fear false allegations might take my head/hand off
>>
>>62023675
depends on the country and your nationality, if you are Murican or European then you have naught to fear, if you are a pajeet then moving to the middle east is practically making yourself a slave. North African countries are pretty chill about everyone though.
>>
>>62021753
Because it's shit.
أنت لا تعرف حتى كتابة العربية بدون أخطاء. زبي أنت وخراك.
>>
>>62021753
I know this is a troll but the serious answer would be you're using the wrong kind of string literals http://en.cppreference.com/w/cpp/language/string_literal
Thread posts: 29
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.