General C++ Programming - September 2013 (Page 21)

can anyone tell me?
 
how to print an N*N matrix in tabular form? # include<iostream> # include<conio.h> using namespace std; void printarray(int arg ,int length){ for (int ...
[2 replies] Last: Please don't cross post in multiple forums. http://www.cplusplus.com... (by AbstractionAnon)
help (1,2)
 
.............................................
[35 replies] Last: OP PM'd me to ask how to sort the numbers in ascending order before pr... (by Stewbond)
by aj3423
compile error "any.h"
 
Hi, There's a topic on codeproject that talks about implementing a high performance 'boost any' http://www.codeproject.com/Articles/11250/High-Performance-Dyna...
[2 replies] Last: It works, thank you JLBorges. (by aj3423)
allocating particles in cell
 
The problem I am having has to do with precision. My programme work when the x and y interval are 0.1 and the cell size is 0.2, but once the values are increase...
[no replies]
Array Help
 
I need to create a method (constructor) to initialize a bigint to an int value you provide [0, maxint]. Example: bigint(128). Here is my class: #ifndef ...
[2 replies] Last: I think that may work to. I have to do the same thing with a different... (by ADTR2012)
by maniac
Comparing char[]
 
Hello! I want to compare alphabetically two arrays. I try this: char a = "AABC"; char b = "ZABC"; if(a > b) cout << a; else cout << b; But it alway...
[3 replies] Last: Thanks for the suggestion. I was wondering how it is possible with cha... (by maniac)
Usage of "goto" - what's your opinion?
 
Hello, I've been dealing with a program for some hours and I finally solved it :), but I had to draw upon the "goto" sentence. I don't see any other way to mod...
[9 replies] Last: I remember working with someone who spent days trying to refactor code... (by thebeto1of)
by Rassus
Besoin d'aide pour ce problème en c++
 
Bonjour, je suis débutante en programmation c++. J'aimerai que vous m'aidez à faire ce programme donc l’énoncé est le suivant: "2.2 Définir un ADT ...
[6 replies] Last: Après avoir vu votre code source, je vous conseille de l'étude C++ u... (by Catfish4)
difficulty in getting the ip address by copmuter name
 
i'm working on a mini massanger using SFML library, in which i'm trying to get the IP address of client by his name using the SFML library function as following...
[1 reply] : If your computer isn't connected to the network, and it's relying on t... (by kbw)
PLEASE HELP ME WITH MY HOMEWORK !
 
BIT CODES. Create a program that will ask the user to enter a decimal value (1-999999) then display its corresponding binary numbers. Repeat this process unt...
[4 replies] Last: Thank u sir ! (by icanbe23)
by mattho
Problem with wrong outputs
 
Hello I need help in fixing part b anc c. the problem with part b is that the out put is the higher integer versus what the actual input was. for example i put ...
[no replies]
making variables available in the #include(d) file
 
I am writing a program that most of the functionality is in a .cpp file. I put some functionality in a .h file which I #include(d) at the beginning of the .cpp...
[2 replies] Last: Give external linkage to those variable that are needed to be accessed... (by JLBorges)
by Rassus
Besoin d'idée pour faire le code source en c++
 
Pour chacune des relations suivantes, soit prouver qu'il existe une équivalence relation ou de prouver que ce n'est pas une relation d'équivalence. (a) Pour...
[no replies]
BigInt
 
I need help with my project for my c++ class. I am a little confused on how to get started. I am making a class called "bigint" and i have to have a global cons...
[6 replies] Last: I like how this question is solved here but unresolved in the duplicat... (by Daleth)
by Niven
Taking a screenshot in opengl
 
I've read up on .bmp files on wikipedia and am currently attempting to make a function that can export a .bmp file of the screen of my programs. I've already be...
[4 replies] Last: http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html ... (by drew887)
Star pyramid program
 
hi. I have written a star pyramid program, it adds two stars at a time but I want to rewrite the program so the stars double each time. Can you help me? ...
[1 reply] : I haven't tried any code but the way I would most likely approach it w... (by Shuruki)
need help to change from array to pointer arithmetic
 
#include <iostream> #include <string> using namespace std; int main() { char aString = "hello world"; cout << "aString = " << aString << end...
[3 replies] Last: This is what can i get from the change from array to pointer. the prog... (by jocasio14)
How to change my array to dynamic
 
So this is the code I have so far, I didn't know it had to be a dynamic array so how would I Utilize dynamic array allocation to size the modal array #inc...
[1 reply] : Vectors or pointers. Pointers are simple. unsigned int size = 0; std... (by closed account N36fSL3A)
Problem with SFML
 
Hello everyone, I am trying to install SFML but I cant. I am doing everything in the tutorial for code::block but it compiles but gives that error when I try t...
[5 replies] Last: Yes but it is really easy. Since you mention Code::Blocks, I wrote ins... (by naraku9333)
Program wont run
 
Can someone tell me why this wont run correctly? #include <iostream> using namespace std; int main() { const int arraySize = 25; const int patternS...
[6 replies] Last: After creating the array, you can use a for loop to assign numbers 0 t... (by Daleth)
September 2013 Pages: 1... 1920212223... 36
  Archived months: [aug2013] [oct2013]

This is an archived page. To post a new message, go to the current page.