- 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
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:
[CODE]#include<conio.h> #include<iostream.h> void main() { clrscr(); long input,negaAr[10],posiAr[10]; for (int x=0;x<10;x++) { cout<<"enter:"; cin>>input; if (input<-1) negaAr[x]; else if(input>=0) posiAr[x]; } cout<<"positive:"<<posiAr[x]; cout<<"negative:"<<negaAr[x]; getch(); }[/CODE] i dont whats thee problem of this, ihave to input 10 integers and display the number of positive and negative. |
|
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 … |