convert char * into a string object first.
string a;
char *l="string";
a=l;
Type: Posts; User: qqqqxxxx
convert char * into a string object first.
string a;
char *l="string";
a=l;
intrare *citire_var(FILE *f,int *n)
{
intrare *in=(intrare*)calloc(1,sizeof(intrare));
void *t,*t1=NULL;
char c[1];
int j=0;
>in[*n].nume=realloc(in[*n].nume,(j+1)*sizeof(char));
as an approximation:
#include<stdio.h>
main(){
int a=35;
int b=46;
while((b-a)>1){
int array1[4];
int array2[4];
>array1[1]<array2[1]
compares the second element of array1 with the second element of array2
>printf("%s\n", ++str_ptr);
%c for character
and something like this *(str_ptr)
void ReadMusicData(CDInfo* p);
to access struct members using p.
p->artist;
p->album;
and so on.
#include <iostream.h>
#include <string.h>
int question1( int age);
int question2 ( char *user_input,int age);
int main()
{
char string[256]; //define variables
char...
>when a CAN message is received and I dont want a delay in the reception of messages
try multi threading then.
>so gotoxy() wont work
and check the faq entry on how to gotoxy in a windows...
>clrscr() wont work cos
just overwrite characters in the same space with a slight delay.
#include<stdio.h>
#include<stdlib.h>
#define MAX_GRID 16
#define BLANK ''
#define UNKNOWN '?'
void printGridMineSize(char displayGrid[][MAX_GRID], unsigned size, int getMineSize)
{
left means left justified
**pointer
>make_quiz(head);
&head
>fflush(stdin);
check the faq on why your compiler may not support this.
image[1] is the same as *(image +1);
arrays and pointers have alot in common.
int im[10];
im[10]=10;
int *p=im;
printf("%d",*(p+10));
nope first it finds a 1.
int r=0,side=0;
while(image[r]!=1)r++;
while(image[r]==1){r++;side++;}
>cout <<A->name
theres no name.
and each object of class atom that u create will have a seperate copy of vector<atom>,so its length will be 1 .
>For a class I have, it uses a vector to keep...
class matrix
{
private:
static int a[20][20];
u need to declare static int a[20][20] outside the class and use it directly.
fstream in(" \\insertfile name here.
string s;
while(getline(in,s,'\n')){
if(s.find("seconds")!=string::npos)
cout<<s;
}
heap?
#include"c:\anyfolder\anyfile.h"
or
#include<c:\anyfolder\anyfile.h>
> cout << setw(4) << i << " " << Small_Storm(Avg_Wind) <<
if(i<300)cout<<set(4)<<i<<" "<<small_Storm(avg_wind).
double Small_Storm ( double Storm ) //Returns a value and Adds 10 mph...
int size=0;
for(r=0;r<25;r++){
if(image[r]==1){
size++;
}
}
and i went through your code again,this is why u r not gettin anything
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include <windows.h>
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;