Tags:C++ Questions | 172 views
Here’s my code for the upright triangle. Now I’m hard up on doing the code for inverted triangle, I’m working on it right now, but a little help would be great.
#include <iostream.h>
#include <conio.h>
void main()
{
int len,ht,ch,cho,sz,col=20,ctr=1;
cout<<"\nTRIANGLE";
cout<<"\nEnter Size: ";
cin>>sz;
[...]
Tags:C++ Questions | 155 views
Hi there!
I’m new to c++ and I’m having problems with ifstream. I assume that my question is pretty stupid but here you go:
I’ve got something like:
ifstream infile(inname);
Furthermore I do have an array - let’s call it Array - which contains several filenames I want to choose one from. With wrong synthax I want:
ifstream infile(Array[5]);
But [...]
Tags:C++ Questions | 121 views
Hello, I am wondering how its possible, to make a server that you can
connect to it, through IP and Port and than send data to it,
For example I am trying to make a simple multiplayer game. But I am really
amateur on connections etc. So please help me out.
Tags:C++ Questions | 126 views
Hi techies,
I am new into C++. I like to write a program that generates all the primes number between 1 and 100. Below is the code I have written but brings no output.
Thanks for any help…
//A program that generates all of the prime numbers between 1 and 100
#include <iostream>
using namespace std;
int main()
{
int n;
[...]