User forums > Using Code::Blocks

cout not working in codeblocks

<< < (3/3)

cbusername:
it doesn't work from c:\ either, where i copied it. It still says access denied after long pause
there's no other program i know as i am just begining
i know nothing about SRP and GPO, need guidance

It might not be my os issue as devc++ is working fine.

stahta01:

--- Quote from: cbusername on February 23, 2013, 06:29:05 am ---it doesn't work from c:\ either, where i copied it. It still says access denied after long pause
there's no other program i know as i am just begining
i know nothing about SRP and GPO, need guidance

It might not be my os issue as devc++ is working fine.

--- End quote ---

WARNING: The root drive (C:\) is a Special Folders in Windows 7!!

I suggest trying "c:\users\orindombanerjee" and make sure your anti-virus software is not the issue.

Also read the FAQs at least this one http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.

cbusername:
hi,
I had the same problem but then when that got solved this doesn't work:
#include <iostream>

using namespace std;

int main()
{
    int tag = 9;
    cout << tag;

    return 0;
}

but this works:
#include <iostream>

using namespace std;

int main()
{
    int tag = 9;
    cout << "value" << tag;

    return 0;
}

How bizaare! Can someone please help. I am not able to progress as I need codeblocks for c++. Its working fine in devc++.

Alpha:
When posting code, please use [code][/code] tags.

Both code snippets you provided work as expected for me.  However, as I am unsure what you mean by "doesn't work", I cannot further diagnose.
(Also, have you gone through everything in the FAQ entry posted by stahta01?)

Jenna:
Compiler- and programerrors related question violate our forum rules.

Topic locked !

Navigation

[0] Message Index

[*] Previous page

Go to full version