-
Began Watching Equivalent iteration of 2D and 3D array flattened as 1D array?
I have the following code for 2D dimensional arrays being flattened as 1D C-style arrays: #include <iostream> int main() { int width = 4, height = 10; int arr[width * … -
Replied To a Post in Equivalent iteration of 2D and 3D array flattened as 1D array?
You have this wrong arr[k + width * (j + depth * i)] = l++; //works just fine. perfect. Compare with your 2D example, in that it is the outer … -
Began Watching While Loops
Hey there, I'm having a problem and I tried several times to solve this problem maybe you could help. I need to modify the program below so that it asks … -
Replied To a Post in While Loops
You shouldn't need 2 nested loops, I single for loop should be enough for this. If you are testing just the last input value then you shouldn't need 3 variables, … -
Began Watching pibonacci series
write a c++ program generat a fibonacci series using while loop statement .(Hint0,1,1,2,3,5,8,13,21,34,55,...) -
Replied To a Post in pibonacci series
Start with the values 0 and 1 each value in the series is made up by adding the previous 2 values so 0 + 1 = 1 1 + 1 … -
Replied To a Post in BigInt Problem Using Tens Complement
Sorry I read this just before home time and didn't have time to reply. I have read up on 10s complement, which appears to be a way to simplify dealing … -
Began Watching BigInt Problem Using Tens Complement
Hey guys so I'm having an issue with my program. Some information about my program it stores a const char* str converts it to int which is in ascii then … -
Replied To a Post in BigInt Problem Using Tens Complement
The problem is your representation of the data (which of course then effects all your code). You have represented the data in the way you think about it as a … -
Replied To a Post in Path trou the matrix
At anytime you think (while programming C++ (or C)) what would work here would be convert all my data to a string so I can interpret it you have made … -
Replied To a Post in Problem with c programming!
> He doesn't have any choice but to use that formula, his instructor gave it to him. Agreed, just don't get me started on instructors that set 1/2 baked questions … -
Replied To a Post in Path trou the matrix
I am not offended, it is just that putting functions into a header is such an `attrociously bad idea` that you should avoid doing it in even the smallest project. … -
Replied To a Post in Problem with c programming!
The issue isn't doing compound interest, it is how the queston originally posted converts from an annual interest rate to an equivilent monthly compound interest rate which is completely wrong. -
Began Watching Problem with c programming!
Here is my question: Write a program that reads from the keyboard an initial balance b, the annual rate of interest r and the projected balance you want to reach. … -
Replied To a Post in Problem with c programming!
It should be noted that b should also be a floating point number, or alternatively it should be balance in pennies not dollars (or what ever currency you're using). Also … -
Replied To a Post in read file character by character for char and the number set for numbers
@COKEDUDE I would never use fscanf, scanf, sscanf, vfscanf, vscanf, vsscanf or any other scanf derivertive on principle (the principle being they are a nightmare and cause problems and process … -
Began Watching Path trou the matrix
Well I have created this one and on my computer it is working. I would like to hear about some alternative solutions. INTRODUCTION This time I have one algorithm, but … -
Replied To a Post in Path trou the matrix
The way you have written Functions.h is more than something I don't like. The moment you start creating projects with more than 1 cpp file this approach will cause you … -
Began Watching read file character by character for char and the number set for numbers
Is there a way to read a file character by character for chars and the number set for numbers? bob 4567 joe 39083 sara 4239824 That is my file while … -
Replied To a Post in read file character by character for char and the number set for numbers
You appear to be processing a file that contains a list of 1 line records. In you case the records are simple "<name> <number>" however I would always approch this … -
Began Watching if else C
#include <stdio.h> #include <stdlib.h> int buku; int jum; int total; char member; int main(int argc, char *argv[]) { printf("\n---------Tarif Peminjaman Buku-------\n"); printf("Member Rp.5000.oo,-\n"); printf("Non-Member Rp.15000.oo,-\n"); printf("Regist Member Rp.30000.00,-\n"); printf("-------------------------------------\n"); printf("Silahkan … -
Replied To a Post in if else C
Also at line 23 ` else (member !='t');` remove the ;. -
Began Watching Whcih language is best in this field?
Hi Guys, Which language would be best for building utility applications for windows?(Tune-Up,Advanced System Care,CCleaner etc.) I'm inspired by the visual display of those programs.I'm currently learning VB.NET and I've … -
Replied To a Post in Whcih language is best in this field?
Well assuming that you don't just want to stick with VB.NET in your position I would go for C# which is also a .NET language so uses the same class …
The End.