@Elvio Esposito dont worry mate... these sort of idiotic comments are expected from some people here who were probably the wimps and nerds in their schools..
This forum is used by them to reduce...
Type: Posts; User: theju112
@Elvio Esposito dont worry mate... these sort of idiotic comments are expected from some people here who were probably the wimps and nerds in their schools..
This forum is used by them to reduce...
Hi Guys,
I am trying to come up with interesting project ideas and recently been thinking of one ... i want to build a software that can be used to track the location of vehicles on google...
#include <stdio.h>
#include <string.h>
#define SIZE 100
int strip()
{
char s[100];
printf ("Enter some string \n");
//printf ("1\n");
tried out so many things but just couldn't avoid the run time errors and segmentation faults...
so i chose java and it finally compiled..
heres the code anyway: please move it if pasting java...
Hey guys,
Its a bit urgent..
please see the code below:
#include<iostream.h>
#include<stdio.h>
#include<string.h>
while(fgets(a,sizeof(a),stdin)!=NULL)
try this
this site has one of the best tutorials you can get online..reading the tutorials on arrays strings and pointers will help..
one thing i would recommend is to make sure that you have the exact idea...
there are many issues to be addressed here..but i think that you have to learn a bit more on 2d arrays. and also on pointers..
so ill paste your code and give you some hints as comments next to...
I guess the problem was at #include<conio.c> I started using a new compiler : c free standard(developed by programarts.com) recently.
so when i used #include<conio.h> and clrscr(), i was getting...
This is a slightly enhanced version of my previous code..just added a few more spook effects that's all
#include <iostream.h>
#include <stdlib.h>
#include<conio.c>
#include<stdio.h>
int...
hey Im not able to send pms? so I am pasting it here.
first of all, thank you so much for putting up the contest. i was about to go nuts when i played the game the british corporation logos just made me feel that this was something done by extremely...
#include<iostream.h>
int main()
{
int a;
cin>>a;
cout<<a;
}
thanks
cout<<endl<<"ENTER SIZE OF ARRAY";
cin>>size;
int input[size];
cout<<endl<<"ENTER ELEMENTS OF AN ARRAY TO LIST THE NUMBERS IN IT WITHOUT REPITITION"<<endl;
for(int...
@salemI am not sure if i get your point..elements are added to the record array if they are encountered for the first time...initially the record array contains 0s only.
the size of the record...
Sorry forgot specifying that the elements in the input array can only be negative or positive integers..
Apart from this anything else needs repair?
also any logic for a better...
hey guys i have written this function to list the elements in an array without
repetition. i.e if an int array with repeating elements is passed to the function,it should return all the numbers in...
initiaize E to zero(see line 6 in the code)...otherwise some garbage value will be stored there..thats your problem i guess..my code works fine for 32..it gives 63...hit like if it works:p
hint:...
#include <stdio.h>
main()
{
int p,N[100] = {0},d,c,E=0;
printf("Input a number: ");
scanf("%d",&p);
for(d=1,c=0;d<=p;d++)
{
ok sorry for the wrong info.
first you will have to declare a pointer of type FILE.
then you will have to open the file using the fopen("PATH_to_file","access mode") function which returns a FILE struct, which can be assigned...
hey dude pls explain your question more clearly
#include<iostream.h>
int main()
{
int a=10,b=200;
bool result=a<b;
cout<<result;
if(a<b)
{
//some 100 lines code
}
one way i can think of to reduce all the if statements are
#include<conio.h>
#include<iostream.h>
int main()
{
int obama=0,romney=0,bank=0,answer=0;
while(obama<5&&romney<5&&bank<5)
...