Sign up to connect with siddharth_n and gain access to their complete profile
  • Member Avatar
    siddharth_n

    Began Watching Converting C++ code to C

    hi, please help me how can i convert this C++ code to C source code ... please help ..... this is the URL http://cppforschool.com/project/super-market-billing.html i dont understand this though please …
  • Member Avatar
    siddharth_n

    Replied To a Post in Converting C++ code to C

    #include<bits/stdc++.h> using namespace std; long long int color[51]={0},cost[51]={0}; int main() { int t; scanf("%d",&t); while(t--) { int n,c; scanf("%d%d",&n,&c); memset(color,0,sizeof(color)); memset(cost,0,sizeof(cost)); long long int dp1[51][51]={0},dp2[51][51]={0}; /*for(int i=0;i<41;i++) for(int j=0;j<41;j++) { …

The End.