Beginners - November 2013 (Page 35)

by enemy
How to DECLARE cout???
 
1. Line 2: error: invalid suffix "a" on integer constant 2. Line 17: error: 'cout' undeclared (first use in this function) How to DECLARE COUT, for God's sa...
[4 replies] Last: It happended also that codepad left one program, devcpp wrote "cout no... (by enemy)
Help to take away global varaibles and to make use of return value
 
Hello, i would like to ask for an advice on how to change my code so that i can take away my global variables but still being able to have the new values cha...
[5 replies] Last: It could be considered a matter of style or preference. I've program... (by Chervil)
Thread Breakpoint Error
 
I am receiving an lldb error that I cannot get rid of with this code. The lldb debugger returns this information. I have changed things around, but the same err...
[2 replies] Last: I have edited the code to include call by reference parameters, but I ... (by ldelsignore)
by tim039
c++ programming
 
hey everyone, i would like to start learning c++ programming and i was wondering if the book c++ programming by steve holzner is a good book to learn from.
[3 replies] Last: On the contrary, I suggested so many so that you pick any one and foll... (by The illusionist mirage)
learning C++ without an IDE
 
Howdy I was learning Python using 'learn python the hard way' and I found it extremely useful. Anyway, now I'm learning C++ specifically because Ill need ...
[4 replies] Last: What bad habits are you referring to OP? (by ranfan)
enabling EHsc
 
Hi i have installed latest version of codeblocks 12.11 and wrote a an example code and tried to run it but it says "c4530 c++ exception handler used but ...
[no replies]
by er0007
creating a calculator
 
Hello world! i need help to code a programm that will find the max and min digits from a given number,then find the sum or difference of the two max and min di...
[2 replies] Last: first of all i would like to thank you for the reply. secondly,can yo... (by er0007)
Problem passing a vector through a function
 
I'm new to programming, so bear with me. Part of my code requires me to calculate the mean of all the elements of a vector but I am having problems putting my v...
[7 replies] Last: There may be an integer divide problem. Try changing the definition to... (by Chervil)
Code not appearing in IDE console?
 
This could be a codeblocks question but as is often the case, my code is more than likely the cause of this problem. When I compile my program (code below) and...
[2 replies] Last: NT3, you're a legend. That is exactly what is wrong with it. You're... (by dominover)
facing run time error
 
First the prog asks for "enter character 1:", but when I press enter it should ask for "enter character 2:" and then wait for my input.Instead of that it only p...
[3 replies] Last: Perhaps like this: do { if (c != '\n') pr... (by Chervil)
by enemy
k not declared in this scope???
 
k not declared in this scope??? scope??? int Prime (int array_ , int st) { do { int e=1; for (int i=2; i<st; i++){ if (st%i==0) { e=...
[9 replies] Last: [quote=enemy]So, when b=0, Prime() is not called, when b=1 we call Pri... (by Chervil)
by Blank
i need help please
 
this is what i have so far...for some reason when i output the amount the number is too big for example "24443423.0" im confused. Write a program that asks h...
[1 reply] : try this instead : cin >> TitcketA >> TicketB >> TicketC; ... (by nvrmnd)
need help with fraction operations assignment
 
I have to work on an assignment were I write a program where the user inputs a numerator and denominator value, and then the program spits out the corresponding...
[1 reply] : Were you given a prompt to follow? I would suspect that you're expect... (by Albatross)
I need help
 
I'm a college freshman with no experience in programming. Can I please have some help with errors and adding code (based on the instructions) to my project? ...
[3 replies] Last: display full program :/ (by white beauty)
Learning a New language
 
Hi everyone, i am new to this forum and to C++. I am a web developer, and have knowledge in HTML, CSS... I wanted to try something new and have been looking a...
[1 reply] : [quote=ransack]my question is: why is it so easy for me to look at HTM... (by The illusionist mirage)
Read from console
 
Hi guys :) I want to read the console output in a string. Is there a easy way to do this ? Something like: #include <iostream> #include <string> using n...
[3 replies] Last: Thanks JockX,I ment the second task.I will take a look at those links ... (by Guzfraba)
by enemy
Declaration of function
 
Hello! Is that the normal function declaration, for function named "numbers" having 2 parameters (int a - reference and int st-by value?) int * number...
[2 replies] Last: First of all please use indentation... http://indentcode.net/ Secon... (by giblit)
how to see if all elements of two arrays are equal
 
i'm stuck on how to compare all the elements of two arrays to see if they're equal. the code I've written only seems to check the first element of the both arra...
[2 replies] Last: Lets see how we would do this on paper first. Check each letter and s... (by giblit)
by enemy
print 20 prime numbers bigger than 6
 
Please, where is the mistake? int prime(int d){ int e=0; do { for (int i=2;i<d;i++){ if (d%i==0){e=e;} else{e+=1;} d+=1; cout<<e<<endl; ...
[4 replies] Last: Hello! Printing numbers is not enough. The problem is,I have to save ... (by enemy)
by enemy
array filling in function Prime-please, they are requiring this!!!
 
invalid conversion from 'int' to 'int*' ??? int e=1; for (int i=2; i<st; i++){ if (st%i==0) { e=0; break; } } if(e==1){array_f =st;}...
[3 replies] Last: int Average(int array_f , int st){ int m=0; int k=0; int e=1; for (in... (by enemy)
November 2013 Pages: 1... 3334353637... 80
  Archived months: [oct2013] [dec2013]

This is an archived page. To post a new message, go to the current page.