Search:

Type: Posts; User: qqqqxxxx

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: char * substr

    by qqqqxxxx
    Replies
    8
    Views
    2,552

    convert char * into a string object first. ...

    convert char * into a string object first.



    string a;
    char *l="string";
    a=l;
  2. Replies
    5
    Views
    964

    intrare *citire_var(FILE *f,int *n) { ...

    intrare *citire_var(FILE *f,int *n)
    {
    intrare *in=(intrare*)calloc(1,sizeof(intrare));
    void *t,*t1=NULL;
    char c[1];


    int j=0;
  3. Replies
    5
    Views
    964

    >in[*n].nume=realloc(in[*n].nume,(j+1)*sizeof(char...

    >in[*n].nume=realloc(in[*n].nume,(j+1)*sizeof(char));
  4. Replies
    18
    Views
    2,078

    as an approximation: #include...

    as an approximation:


    #include<stdio.h>
    main(){
    int a=35;
    int b=46;


    while((b-a)>1){
  5. Replies
    26
    Views
    3,942

    int array1[4]; int array2[4]; ...

    int array1[4];
    int array2[4];

    >array1[1]<array2[1]

    compares the second element of array1 with the second element of array2
  6. Replies
    8
    Views
    1,413

    >printf("%s\n", ++str_ptr); %c for character...

    >printf("%s\n", ++str_ptr);
    %c for character
    and something like this *(str_ptr)
  7. Replies
    6
    Views
    1,481

    void ReadMusicData(CDInfo* p); to access...

    void ReadMusicData(CDInfo* p);

    to access struct members using p.
    p->artist;
    p->album;
    and so on.
  8. Thread: Need Help!

    by qqqqxxxx
    Replies
    17
    Views
    1,237

    #include #include int...

    #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...
  9. Replies
    6
    Views
    1,172

    >when a CAN message is received and I dont want a...

    >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...
  10. Replies
    6
    Views
    1,172

    >clrscr() wont work cos just overwrite...

    >clrscr() wont work cos
    just overwrite characters in the same space with a slight delay.
  11. Replies
    2
    Views
    907

    #include #include ...

    #include<stdio.h>
    #include<stdlib.h>


    #define MAX_GRID 16
    #define BLANK ''
    #define UNKNOWN '?'

    void printGridMineSize(char displayGrid[][MAX_GRID], unsigned size, int getMineSize)
    {
  12. Replies
    5
    Views
    850

    left means left justified

    left means left justified
  13. Replies
    6
    Views
    1,111

    **pointer

    **pointer
  14. Replies
    6
    Views
    922

    >make_quiz(head); &head >fflush(stdin); check...

    >make_quiz(head);
    &head
    >fflush(stdin);
    check the faq on why your compiler may not support this.
  15. Replies
    39
    Views
    2,698

    image[1] is the same as *(image +1); arrays...

    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));
  16. Replies
    39
    Views
    2,698

    nope first it finds a 1.

    nope first it finds a 1.
  17. Replies
    39
    Views
    2,698

    int r=0,side=0; while(image[r]!=1)r++;...

    int r=0,side=0;
    while(image[r]!=1)r++;
    while(image[r]==1){r++;side++;}
  18. Replies
    5
    Views
    1,061

    >cout

    >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...
  19. class matrix { private: static int...

    class matrix
    {
    private:
    static int a[20][20];



    u need to declare static int a[20][20] outside the class and use it directly.
  20. Thread: Question

    by qqqqxxxx
    Replies
    7
    Views
    849

    fstream in(" \\insertfile...

    fstream in(" \\insertfile name here.
    string s;
    while(getline(in,s,'\n')){
    if(s.find("seconds")!=string::npos)
    cout<<s;
    }
  21. Replies
    8
    Views
    1,034

    heap?

    heap?
  22. #include"c:\anyfolder\anyfile.h" or...

    #include"c:\anyfolder\anyfile.h"
    or
    #include<c:\anyfolder\anyfile.h>
  23. > cout

    > 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...
  24. Replies
    39
    Views
    2,698

    int size=0; for(r=0;r

    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
  25. Replies
    39
    Views
    2,698

    #include #include...

    #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;
Results 1 to 25 of 190
Page 1 of 8 1 2 3 4