15,552 Topics

Member Avatar for
Member Avatar for Andrey_4

Here is a small e-Book for your attention: [The Ultimate Question of Programming, Refactoring, and Everything](http://www.viva64.com/en/b/0391/). This book is intended for C/C++ programmers, but it could be of interest for developers using other languages as well. What makes the book peculiar is the descriptions of real, not theoretical cases at …

0
142
Member Avatar for chrisschristou

hello, how to setup eclipse IDE to use visual c/c++ compiller. i have visual studio express on my computer i guess this include c++ compiller what probably do compile c. so i would like to know how can i use the the visual c/c++ compiller in eclipse IDE thanks you …

Member Avatar for rproffitt
0
1K
Member Avatar for Haider85

I have some data in varbinary(max) from database and I have exported it to physical files. Some of these files were in jpeg so I was able to just add an extension .jpg to it and it opened. The rest are not jpeg files. **I have tried almost all the …

Member Avatar for rproffitt
0
434
Member Avatar for humble55

Hello Hello i have struct dynamic array (matrixCov) like this *array = (struct matrixCov*)malloc(sizeof(struct matrixCov) * counter); now i have another struct Link list with element Data type -struct matrixCov (struct matrixCov * data) now when i type this line for (k=0;k<conter;i++){ (*pointer)->data =array[k];} when k=0 copied well but from …

Member Avatar for AssertNull
0
729
Member Avatar for Strong_1

1. Design a system for an electronics retail store which sells different brands of electronic items like TV, Fridge, Oven, Music System of different brands and styles. 2. You develop a menu driven system which looks like as given below: s. Sell g. Generate Bill c. Cancel the sale r. …

-1
143
Member Avatar for Gede_1

#include<stdio.h> #include<stdlib.h> struct node { int data; struct node *next; }*head; void append(int num) { struct node *temp,*right; temp= (struct node *)malloc(sizeof(struct node)); temp->data=num; right=(struct node *)head; while(right->next != NULL) right=right->next; right->next =temp; right=temp; right->next=NULL; } void add( int num ) { struct node *temp; temp=(struct node *)malloc(sizeof(struct node)); temp->data=num; …

Member Avatar for AssertNull
0
6K
Member Avatar for Haider85

I have a Health based .Net (C#) project that needs to import a huge chunk of medical records from an old database that were used in a different application. The database has been successfully migrated to the version compatible with our application. The problem is the contents in one of …

Member Avatar for rproffitt
0
384
Member Avatar for BHUJI

[CODE]/*This program is going infinite.PLS help*/ #include<stdio.h> #include<conio.h> void main() { int a,b,c,d,e,f,flag=0; printf("Enter first date"); scanf("%d%d%d",&a,&b,&c); printf("Enter second date"); scanf("%d%d%d",&d,&e,&f); const int days[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; while(c!=f||b!=e||a!=d) { a++; if((b==4)||(b==6)||(b==9)||(b==11)) f=30; else if(b==2) { if(d%4==0) f=29; else f=28; } else f=31; if(a>f) { b++; a=1; } if(b==13) { c++; b=1; } flag++; …

Member Avatar for Sby_1
0
22K
Member Avatar for COKEDUDE

I am trying to add an int to a Multi-dimensional char Array. After reading the link below I would think I can use sprintf. If I can't use sprintf what is another way I can do this? http://www.cplusplus.com/reference/cstdio/sprintf/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int main(int argc, char …

Member Avatar for AssertNull
0
320
Member Avatar for justin_17

#include <stdio.h> #include <stdlib.h> int Client_Records(); int outstanding_balances(); int total_company_expenses(); int profit_loss(); void file_guard(); void file_sentinel(); struct records { char client_first_name[30]; char client_last_name[30]; char street_adress[20]; int phone_number; char email_adress[20]; char client_security_package[20]; int annual_package_fee; int payment_made; int annual_vehicle_servicing_expences; int employee_pay; int lot_rental_fees; int utility_bill_payments; int total_expenses; int total_company_earnings; int loss; int …

Member Avatar for Reverend Jim
-3
154
Member Avatar for justin_17

#include <stdio.h> #include <stdlib.h> int Client_Records(); int outstanding_balances(); int total_company_expenses(); int profit_loss(); void file_guard(); void file_sentinel(); struct records { char client_first_name[30]; char client_last_name[30]; char street_adress[20]; int phone_number; char email_adress[20]; char client_security_package[20]; int annual_package_fee; int payment_made; int annual_vehicle_servicing_expences; int employee_pay; int lot_rental_fees; int utility_bill_payments; int total_expenses; int total_company_earnings; int loss; int …

Member Avatar for rubberman
-2
199
Member Avatar for Haider85

I have a Health based .Net (C#) project that needs to import a huge chunk of medical records from an old database that were used in a different application. The database has been successfully migrated to the version compatible with our application. The problem is the contents in one of …

0
247
Member Avatar for blacklune

Hello, I have been struggling with this project for several days. This is all about doubly Linked List and I have to add reverse section with given code in project. So far it was doing good. I learned a lot from this but the only thing I had issue is …

Member Avatar for AssertNull
0
282
Member Avatar for amvx86

Good Morning, For the last few weeks I've been searching HIGH AND LOW. All forms, dozens of tabs open, and bought about 200 bucks in books. My goal is to learn the windows win32 API and I'm hitting brick walls everywhere I look. So far, I've learned that findwindow (or …

Member Avatar for rubberman
0
260
Member Avatar for brandon66

#include <iostream> #include <iomanip> #include <stack> #include <queue> #include <vector> #include <fstream> using namespace std; class graph { public: graph(); graph(int); //graph(int, int); void setEdge(int src, int dst); void printGraph();//print graph void bfs(int);//Breadth First Search void dfs(int);//Depth First Search void bfsSpan(int);//Breadth First Search Spanning Tree void dfsSpan(int);//DepthFirt Search Spanning Tree …

Member Avatar for brandon66
0
517
Member Avatar for Nyron

the last array array 3 is not giving me the desired output. i see no logic errors therefore i do not know why i am getting the wrong output. #include<stdio.h> int arr1[5]={55,145,950,25,500}; int arr2[5]={44,58,98,25,62}; int arr3[5],array1,array2,array3; int i=0,j=0,k=0; for(i=0;i<5;i++){ array1=arr1[i]*2; printf("array 1 doubled is %d . \n",array1); //i++; } for(j=0;j<5;j++){ …

Member Avatar for Nutster
0
236
Member Avatar for COKEDUDE

How would I go about making this table? ID Type Value X int 4 Y int 4 Z float 0 This is the only way I can think of but I don't think this will work. int main(int argc, char *argv[]) { char *strings_line1[3] = {"ID", "TYPE", "Value"}; char *strings_line2[3] …

Member Avatar for rubberman
0
190
Member Avatar for amvx86

Ladies and Gentlemen Coders, I'm working with the code below: int GetDrives(void) { wchar_t LogicalDrives[MAX_PATH] = {0}; DWORD r = GetLogicalDriveStringsW(MAX_PATH, LogicalDrives); if ( r == 0 ) { printf("Failed to get drive names. %ld", GetLastError()); return 1; } int NumDriveCount = 0; if ( r > 0 && r …

Member Avatar for amvx86
0
450
Member Avatar for kxjakkk

A C/MPI program that is executed using two processes. Process 0 hold a 4 × 4 array A that contains the floating-point values shown below. 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 A[4][4] 9.0 10.0 11.0 12.0 13.0 14.0 15.0 16.0 What is the ordered sequence of the values …

Member Avatar for Nutster
0
198
Member Avatar for akshayg

after writing a c program and running it,it shows that fatal error:abort(programcollect2).......i have correctly installed codeblocksmingw version......but not compiling

Member Avatar for tinstaafl
0
61
Member Avatar for JosesMelo

Hello, Is there any limitation for the length of array variables in C++? Can I specify the length as wanted or is there any limitation for the array length? What should be the array length, if the length is not known. wchar_t commandString[10000]; Cheers

Member Avatar for rubberman
0
290
Member Avatar for alegatross

I am using C language to encrypt a text file and decrypt it by the means of an AES Algorithm. This algorithm can only encrypts characters if they are stated in the format of an unsigned character where a letter A is represented by 0x41. what i am trying to …

Member Avatar for alegatross
0
710
Member Avatar for soujanya.bhat.184

Hi all, I was wondering how to access individual elements in the below case: char *three=(char*){'2','5','8'}; If the assignment were like this: char *three="258"; it can be accessed with three[0],three[1].....etc. How to access in the first case?

Member Avatar for rubberman
0
177
Member Avatar for glao

Hello , I want to ask why I am not receiving the same result using either the `if` with `break` inside the while loop ,either the `while( x!=X && y!= Y )`. #include <stdio.h> #include <stdlib.h> int sol( int X, int Y ) { int x = 0, y = …

Member Avatar for glao
0
187
Member Avatar for Esmerelda

One of the questions given to us for the lab exam was to generate the first 10 armstrong numbers. I could generate upto 5 numbers correctly..the rest are wrong. [code] #include<stdio.h> #include<conio.h> void main() { int n=1,a,b,i=1,r; clrscr(); while(i<=10) { a=0; b=n; do { r=b%10; a=a+r*r*r; b=b/10; }while(b>0); if(a==n) { …

Member Avatar for Tushar_4
0
2K
Member Avatar for kxjakkk

Just started learning MPI and all, need a little help with it though. int main( int argc, char *argv[] ) { int rank, n; MPI_Init( &argc, &argv ); MPI_Comm_size( MPI_COMM_WORLD, &n ); MPI_Comm_rank( MPI_COMM_WORLD, &rank ); int a = rank; int b = 0; int C[n], D[n]; for ( int …

Member Avatar for rproffitt
0
530
Member Avatar for jamzcee

https://www.daniweb.com/community/contribute# #include <stdio.h> #include <iostream> int main(int argc, char*argv[]) { int my2d[5][4] ={ { 36, 14, 41, 24}, { 47, 47, 49, 15}, { 40, 23, 29, 49}, { 17, 23, 7, 7}, { 48, 43, 35, 12} }; int result = 0; // avg int avg() float sum=5.4; for(i …

Member Avatar for rproffitt
0
381
Member Avatar for Elena_4

HI, i'd like to do a simple calculator in c. i write this program but all the results about subtraction ( SOTTRAZIONE) are not correct. can you told me why? thanks you so much `Inline Code Example Here` case 2: printf ( "the subtraction of these n numbers is : …

Member Avatar for ddanbe
0
88
Member Avatar for Sarlacc

I am creating multiple C++ DLLs which have a C wrapper around them for use by an external application. I wanted to have a single error handling library that each DLL has access to. If I created the error library as a static library and then include it in the …

0
185
Member Avatar for ressenjack

I having a problem which i cannot compare the deck 1 and deck 2 anyone can help me? #include <stdio.h> #include <stdlib.h> #include <time.h> #include <stdbool.h> // #include the std boolean library #define CARDS 52 #define DRAW 104 //The program will first open Deck 1 then Deck 2, after Deck …

Member Avatar for tinstaafl
0
1K

The End.