Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
c++ x 27
Member Avatar for khevz09

MY problem is ..... Given an input 'n' came from the user and display a pattern. but my code is very long .... my code is only for 1-10 numbers i need to display any numbers that input of the users can u give me some short code or advice …

Member Avatar for cejay2b20
0
1K
Member Avatar for invisi

What does int* resizeArray do that int resizeArray doesn't, what' the deference? And why do I delete nArray, and not newArray? [CODE]#include <iostream> using namespace std; void printArray(int* nArray,int size) { // code printing array } int* resizeArray(int* nArray, int oldsize, int newsize ) { int* newArray = new int[newsize]; …

Member Avatar for Greywolf333
0
111
Member Avatar for invisi

Below is the code I wrote, for taking the arrow key imput, just wanted to share it and get some feedback thanks :) [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int number = 0; int number2 = 0; while(true) { int arrow = getch(); if (arrow == …

Member Avatar for invisi
0
187
Member Avatar for invisi

I love this programme :P [CODE]#include <iostream> #include <string> using namespace std; char lowerCase(char input0 = 0); char upperCase(char input1 = 0); int main() { char character = 0; while(true) { cout << "Enter a Character to change case: "; cin >> character; cout << endl; if(character > 64 && …

Member Avatar for WaltP
0
123
Member Avatar for invisi

:) My mind went blank for a bit and I couldn't figure out such a simple programme. But then I had a shower and all was well :) [CODE]#include <iostream> #include <string> #include <cmath> using namespace std; int factorial(int i = 1); int main() { int num = 0; bool …

Member Avatar for vmanes
0
71
Member Avatar for invisi

Why cant I pass variables into a void printPoint function, and not have to return a float ave. I tried just printing the coordinates but I got too errors. so my function looked like this [CODE]void printPoint(float x , float y, float z){ cout << " < " << x …

Member Avatar for invisi
0
96
Member Avatar for invisi

Well I wrote this programme, hoping what I wrote is a lenear sorting algorithm if it's not pls tell me :-O [CODE] #include <iostream> #include <string> using namespace std; int main() { int a[10]; int num = 0; int number = 0; cout << "Enter 10 int..." << endl; for …

Member Avatar for Narue
0
111
Member Avatar for invisi

It doesn't compile, why? [CODE]#include <iostream> #include <string> using namespace std; int main() { for(int cnt1 = 0, int cnt2 = 10; cnt1<10; ++cnt1, --cnt2) { cout << cnt1 << "--------Hello!---------" << cnt2 << endl; } system("PAUSE"); }[/CODE]

Member Avatar for WaltP
0
203
Member Avatar for OmarOthman

Dear All, I want to do two mathematical operations, say [CODE=c] a / b [/CODE] and [CODE=c] c / d [/CODE] then test whether they are equal. I'm really very bad at computer errors, I think I need to read more about it (any reference is welcome). So, my question …

Member Avatar for WaltP
0
159
Member Avatar for invisi

I wrote this programme but what two numbers you choose exit it? can you guess just by looking? Because I can't :( [CODE]#include <iostream> #include <string> using namespace std; int main() { bool aHo = true; int a = 0; int b = 0; while(aHo) { cout << "Enter Number …

Member Avatar for invisi
0
78
Member Avatar for invisi

[CODE]#include <iostream> #include <cstdlib> #include <ctime> #include <string> using namespace std; void RandomArrayFill(int* array, int size) { //int* array = new int[size]; cout << "Creating and filling the array with integers..." << endl; for(int i = 0; i< size; ++i) { array[i] = rand() % 101; } cout << "Array …

Member Avatar for invisi
0
139
Member Avatar for invisi

Okay I want to write a programme that saves a screen shot every second, but I don't want to use any print screen function: This is how I'd go about it, with my limited knowledge: first I'd calculate the resolution of the screen, and then loop through all the pixels …

Member Avatar for Ancient Dragon
-1
154
Member Avatar for invisi

Hi every one :) Well I wrote this code for deleting the pointers, and it compiles and runs. But at the end of the run it comes up with an Debug Assertion failed. WHY??? [CODE]#include <iostream> using namespace std; int main() { bool boolVar = true; int intVar = 50; …

Member Avatar for mrnutty
0
884
Member Avatar for JoBe

Hello ladies and gents, Ive got this example of a program that I tried out wich shows some special possibilities to use new. [code] #include <iostream> using namespace std; int main() { int a[100]= {0}; for (int i = 0; i < 100; ++i) a[i] = 100 * i; int …

Member Avatar for Fasola
0
272