Click here to Skip to main content
14,696,626 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to count occurences of a number and its most frequent pair in a text file? Pin
Stefan_Lang27-Apr-20 1:32
mveStefan_Lang27-Apr-20 1:32 
SuggestionRe: How to count occurences of a number and its most frequent pair in a text file? Pin
David Crow27-Apr-20 3:08
MemberDavid Crow27-Apr-20 3:08 
Questionarray of 32bit container Pin
Member 1481234224-Apr-20 7:28
MemberMember 1481234224-Apr-20 7:28 
Good afternoon

I am new in c++. I am trying to write a code that uses an array of 2 exponent 32, A small example is the code below.


#include <iostream>
# include <stdio.h>
# include <fstream>
# include <string.h>
# include <iostream>
#include <math.h>  
# include <stdlib.h>  
#include <cstdio>
#include <cmath>
#include <cstring>
#include <limits>
#define two_power(n) (1u << (n))
using namespace std;  


typedef unsigned long  word32; 

int main()
{
	word32 delta, alfa;
	static word32 array[4294967295][4294967295] ={0};
	for (delta = 0; delta < 4294967296; delta++)
	{
		for (alfa = 0; alfa < 4294967296; alfa++)
		{
			array[delta][alfa] = alfa + delta;
		}
	}
	cout << array[4294967295][4294967295];
	return 0;
}



I there any method I can use to instead of using array because arrays have limitation in size. 2^32 = 4294967296. You can send me an email if you have an answer

kdmuthavhine@gmail.com

AnswerRe: array of 32bit container Pin
Richard MacCutchan24-Apr-20 7:56
mveRichard MacCutchan24-Apr-20 7:56 
AnswerRe: array of 32bit container Pin
jeron124-Apr-20 8:07
Memberjeron124-Apr-20 8:07 
GeneralRe: array of 32bit container Pin
Richard Andrew x6424-Apr-20 14:09
professionalRichard Andrew x6424-Apr-20 14:09 
GeneralRe: array of 32bit container Pin
jeron124-Apr-20 15:27
Memberjeron124-Apr-20 15:27 
GeneralRe: array of 32bit container Pin
Member 1481234224-Apr-20 21:48
MemberMember 1481234224-Apr-20 21:48 
GeneralRe: array of 32bit container Pin
Victor Nijegorodov24-Apr-20 22:24
MemberVictor Nijegorodov24-Apr-20 22:24 
GeneralRe: array of 32bit container Pin
Member 1481234224-Apr-20 21:52
MemberMember 1481234224-Apr-20 21:52 
GeneralRe: array of 32bit container Pin
Member 1481234224-Apr-20 21:53
MemberMember 1481234224-Apr-20 21:53 
GeneralRe: array of 32bit container Pin
Richard MacCutchan24-Apr-20 23:07
mveRichard MacCutchan24-Apr-20 23:07 
QuestionFile Explorer Properties Dialog - SOLVED Pin
Richard Andrew x6424-Apr-20 5:27
professionalRichard Andrew x6424-Apr-20 5:27 
QuestionOpenGL stencil not working... Pin
Vaclav_22-Apr-20 11:38
MemberVaclav_22-Apr-20 11:38 
AnswerRe: OpenGL stencil not working... Pin
leon de boer22-Apr-20 20:16
Memberleon de boer22-Apr-20 20:16 
GeneralRe: OpenGL stencil not working... Pin
Vaclav_23-Apr-20 4:10
MemberVaclav_23-Apr-20 4:10 
GeneralRe: OpenGL stencil not working... Pin
Vaclav_23-Apr-20 9:11
MemberVaclav_23-Apr-20 9:11 
QuestionCross Reference/Reporting Tool avaiable which does not resolve macros? Pin
Hans99922-Apr-20 1:57
MemberHans99922-Apr-20 1:57 
AnswerRe: Cross Reference/Reporting Tool avaiable which does not resolve macros? Pin
Richard MacCutchan22-Apr-20 4:47
mveRichard MacCutchan22-Apr-20 4:47 
AnswerRe: Cross Reference/Reporting Tool avaiable which does not resolve macros? Pin
k505422-Apr-20 5:07
mvek505422-Apr-20 5:07 
SuggestionRe: Cross Reference/Reporting Tool avaiable which does not resolve macros? Pin
David Crow22-Apr-20 6:18
MemberDavid Crow22-Apr-20 6:18 
GeneralRe: Cross Reference/Reporting Tool avaiable which does not resolve macros? Pin
Richard MacCutchan22-Apr-20 7:25
mveRichard MacCutchan22-Apr-20 7:25 
GeneralRe: Cross Reference/Reporting Tool avaiable which does not resolve macros? Pin
David Crow22-Apr-20 7:43
MemberDavid Crow22-Apr-20 7:43 
GeneralRe: Cross Reference/Reporting Tool avaiable which does not resolve macros? Pin
Richard MacCutchan22-Apr-20 7:51
mveRichard MacCutchan22-Apr-20 7:51 
Question'get_osfhandle': identifier not found Pin
_Flaviu20-Apr-20 1:13
Member_Flaviu20-Apr-20 1:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.