- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
4 Posted Topics
I was trying to input strings into a structure I made, but I couldn't succeed. I use Visual C++ 2010 Express Edition. The code is this: [CODE]#include<iostream> #include<conio.h> #include<stdio.h> #include<string.h> using namespace std; struct schrec { char childname[20]; int childage; }; void main() { schrec record[20]; int n; cout<<"How many … | |
Re: Dude there is no need for an array to get the no. of positive and negative values. Make it something like [CODE] #include<conio.h> #include<iostream.h> void main() { clrscr(); long input,negaAr=0,posiAr=0; for (int x=0;x<10;x++) { cout<<"enter:"; cin>>input; if (input<-1) negaAr++; else if(input>=0) posiAr++; } cout<<"positive:"<<posiAr; cout<<"negative:"<<negaAr; getch(); } [/CODE] [QUOTE=bouldermash;1741492][CODE]#include<conio.h> #include<iostream.h> … | |
Hi, I'm an absolute beginner in Visual C++ (Express Edition 2010). I've just been trying out this very simple program, and I can't get to use the '\b' tag like I did when I used Turbo C++ v4.5. The cursor moves backwards, but the text does not get erased, as … | |
Hi, I'm a student and I've been using Turbo C++ (v4.5) for over a year now (that's what they teach us at school). I just attempted to try writing a simple code in Microsoft Visual C++ 2010 Express. I've even had a few successful runs, but when I look into … |
The End.