| | |
newcommer to c++ need help with simple program
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 7
Reputation:
Solved Threads: 0
hello all . well its pretty simple but i need to get this for loop sorted before i can move on.
<< moderator edit: added [code][/code] tags >>
so thats it .. and it wont print the stars . if i comment out the loop then it will display a star. so i dont know whats going on i cant see any error in the syntax or logic. so any help is appreciated thank you.
C++ Syntax (Toggle Plain Text)
#include <iostream.h> void square(); void circle(); void arrow(); void diamond(); using std::cout; using std::endl; void square() { //first line for (int e = 1; e >= 9; e++) { cout << "*"; } } int main() { square(); return 0; }
so thats it .. and it wont print the stars . if i comment out the loop then it will display a star. so i dont know whats going on i cant see any error in the syntax or logic. so any help is appreciated thank you.
![]() |
Similar Threads
- Error in simple "Hello World" program (C++)
- Need Help With Simple 'c' Program!!! (C)
- Need advice & help with a very simple program (IT Professionals' Lounge)
- Simple while loop in c++ (C++)
- a simple C program to create/open/write/close files generaing basic arithmetic ops (C)
- Erroneus outputs in string manipulation simple program (C++)
- Simple C++ program terminate prematurely (C++)
- I am a girl doing my 1st simple program (C)
Other Threads in the C++ Forum
- Previous Thread: Need hellp with my array
- Next Thread: sizeof() for a Structure
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





