Beginners - August 2012 (Page 18)

Getting errors when trying to complile this can anyone see what i may be doing wrong?
 
#include <iostream> #include <string> #include <iomanip> using namespace std; //Function prototypes declared before main function ...
[6 replies] Last: Okay so I've made some changes to my code and got rid off all of the e... (by jerwolfenstien)
selection sort
 
#include<stdio.h> #include<conio.h> int main() { int arr ,least_ele,j,n,i,index; printf("enter size\n"); scanf("%d",&n); printf("ente...
[4 replies] Last: @xordux line 18 and 19 should be enclosed in Braces {...} at line 22 ... (by Akshit)
simple generating letters program
 
Ok so I'm trying to make a program that outputs 100 random lowercase letters in rows of 10. I got this far below, but the program keeps outputting only a bunch ...
[1 reply] : ¿Do you understand the difference between a bottle and the beer that'... (by ne555)
Main code skips function.
 
Hi im a beginner in programming and c++, and i'm trying to learn to use functions. I don't get any errors but the main code just seems to skip the function i w...
[1 reply] : First of all learn to put your code in code blocks , second you should... (by xordux)
"Illegal Else Without Matching If" - Error
 
#include <iostream> using namespace std; int main() { calc: system ("cls"); char ans; int length; int width; int area; int perimeter; cou...
[16 replies] Last: @Techy24 Actually You Are Wrong, Its Is 'Else If' not 'ElseIf' @The... (by ScriptKiddie)
How to Create Tables
 
Hi I just made this simple program and I want to create some tables so that the result does not appears so chaotic.. #include <iostream> #include <fstream> us...
[6 replies] Last: If you would google for the function you would see it requires iomanip... (by expor)
by oblaq
Where does this go?
 
Here is what I am trying to accomplish. Add a while loop to display characters A-C here is my code: // #include <iostream> using namespace std; str...
[2 replies] Last: Hmm.If I Were You,I Would Include <string.h> And Then Assign A Number ... (by Techy24)
by Ch1156
Output error
 
I cant get this to work, i wanted to output the random names but it wont output it. #include <iostream> #include <string> #include <fstream> #include <...
[5 replies] Last: or is it TIME2? im confused a bit, i read that link but dont really un... (by Ch1156)
How to run a DEV C++ code on another PC
 
Hello, As in the subject of this topic, how to make a program run on other PC's without having to install DEV C++? What files/libraries should I copy? ...
[3 replies] Last: Why not compile the code to a stand-alone .exe and then let it run. Th... (by sh4rd)
do temporaries of built-in and user-defined types behave differently?
 
class A { public: A(int a=0) {} }; int f0() {int i(9); return i;} A f1() {return A();} int main() { f0()=9;//compile error {expected} f1()=...
[5 replies] Last: thank you Peter87 and guestgulkan ! yes it is annoying or confusing ... (by ustulation)
How to Export a .txt file from a .cpp file
 
I just made this simple code and I was ask to export it to a .txt file does anyone knows how to do that? #include <iostream> #include <stdio.h> using name...
[5 replies] Last: Thanks LowestOne that really help nw i just need to learn how to make... (by Mario Robles)
i have problem with using a string in a function
 
Hello i have this function in c++ double f_x(double y , string sfy ) { return sfy; } 1- I want to read the string sfy from a file and pass it to the f_x...
[3 replies] Last: Hi Thanks In fact here i have brought a minimal example of my real f... (by ranjbar)
C++ Battle Game Crashing
 
Ive tried to fix certain things on this for a while and recently its just been crashing so much I dont know where Ive gone wrong, Im an absolute noob at C++ and...
[2 replies] Last: line 186. You use operator= instead of operator==. Make sure that the... (by Peter87)
Trying to get Allegro to work with Code::Blocks
 
I'm trying to install 4.4 for use with the Code::Blocks IDE. Here's what I did: 1) Downloaded allegro-4.4.2-mingw-4.5.2. 2) Extracted to get three folders: ...
[no replies]
Review of my code?
 
hey I started learning programming about a month ago and i've been teaching myself in hopes that when i start college i will be above average. I wanted to make...
[7 replies] Last: pbd2012 (1) You have hijacked this thread with your own and unrelated... (by TheIdeasMan)
Binary Search
 
Hi, I tried to write a binary search algorithm, but for some reason, I have an error: // Search.cpp : Defines the entry point for the console application. ...
[8 replies] Last: When I wrote int i, there was an error that i was defined before bein... (by TheIdeasMan)
Various symbols
 
Hello, I want to know how can we implement(by pressing key / other) following symbol which i found on internet in c++ programme code and i want to use that in ...
[6 replies] Last: @akshit thank you for your reply. i got it and it worked for me. (by smile58)
C++ book for blind learners?
 
I am currently learning the basics of C++. I have had problems with my eye sight through all my years which can not yet be treated and it reduces my vision quit...
[1 reply] : I don't know any c++ courses for the blind but I could suggest that do... (by syyswilla)
by h4344
How Can I Find a Folder Name?
 
So i know what the folders directory is, but its name will be different on each computer. I just need to get the folder name and put it into a string. Its size ...
[2 replies] Last: What do you mean by "folders directory"? "folder" is another name for ... (by andywestken)
finding highest value in array
 
i am having a little trouble with getting the highest value in this array. can someone please tell me whats wrong? here is the code. #include <iostream> ...
[7 replies] Last: i meant to come back and tell you all thank you for your help! (by peazyex)
August 2012 Pages: 1... 1617181920... 45
  Archived months: [jul2012] [sep2012]

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