₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,014 members, 8,448,240 topics. Date: Monday, 20 July 2026 at 03:25 AM

Toggle theme

Sirnuel's Posts

Nairaland ForumSirnuel's ProfileSirnuel's Posts

1 2 3 4 5 6 7 (of 7 pages)

ProgrammingRe: Help Me Ooo. I Sleep When Coding. by Sirnuel: 11:30am On May 28, 2017
It has happened to the best of us.... I almost called it quit.


The trick is to not quit.
.
.
Eat sleep and try again

Dont forget to Keep practicing the little you have learnt
ProgrammingRe: Need A Facial Recognition Software For Attendance Written In Python Or Java. Fo by Sirnuel: 10:03pm On Apr 14, 2017
I can do it in android and java call me 08115056400
ProgrammingRe: Sony Vaio I Core7 Laptop For Sale by Sirnuel: 7:20am On Mar 15, 2017
See this one just pack all her problem put for one chinko laptop.
.
.
.
.
If you will sale it for 40k leme know
Christianity EtcRe: Having Two Wives But Now A Born Again by Sirnuel: 1:18pm On Feb 26, 2017
enshy:
My Brother In Christ!
We Christians believe the scriptures only and obey.
In the beginning, he made them one man, one wife.
Now you are born again, your first wife is your wife if you have performed her marital rites, if not the whole context changes.
The second wife is adultery, if she has children for you, you must take responsibility for all children, for this is the Will of God! You dont just send her out, get her accommodation, speak to her and her family.
If you are sincere with God, he will direct your paths!
Stop quoting the bible out of context bro...
.
.
will this your advice still stand if the second wive was to be your sister.
.
moreover the Bible never said a man cannot marry more than one wife.
.
.
.
.
.
God knows if I have enough money, i will marry more than two ooo... I go be father of many nation bro.
ProgrammingRe: Please You Guys Should Help Me by Sirnuel: 5:47pm On Jun 12, 2016
I am also from enugu.
.
learned c++ but discovered without java you cannot bea great android developer. currently learning JAVA
RomanceRe: Are You Ready For Sex? Let’s Take A HIV Test And Pay Me Well -Lady Says On FB by Sirnuel: 11:18pm On May 11, 2016
All I see is someone proud of what she does... Plus very cautious too.
.
.
.
Unlike all those church whores wey dey spread HIV and STDs like rumours.
EducationRe: I Saw This In My Student's Note Book Today. Who Can Explain Please? (photo) by Sirnuel: 1:35pm On Mar 03, 2016
Tell am say Arsenal go cut that slip
ProgrammingRe: Java Vs C# Which Do You Prefer? by Sirnuel: 7:14pm On Feb 28, 2016
LEARN C AND C++

THANK ME LATER
ProgrammingRe: 6 Programming Exercises by Sirnuel: 5:21am On Feb 22, 2016
.
ProgrammingRe: Try This Math Problem by Sirnuel: 10:00am On Feb 11, 2016
using c++

======================================================================
#include <iostream>

using std::cin;
using std::cout;

int main(){

cout << "A program to find the nth term of a sequence with the difference (+3) and (-2)\n\n";

int first;
int nth_term;

cout << "Enter the first term of the sequence: \t";
cin >> first;
cout << std::endl;

cout << "Enter the nth term you want to find: \t";
cin >> nth_term;
cout << std::endl;

int answer = first;

for (int i = 0; i < nth_term; i++){

cout << answer << " ";

if ((i%2)!= 0){
answer = (answer + (-2));
}

else {

answer = (answer + 3);
}
}

cout << "\n\n";
cout << "The " << nth_term << " of the sequence is: " << answer;

return 0;
}
ProgrammingRe: Please Programmars Help Me Out With This C# Program! I Have Test Tommorrow!!!!! by Sirnuel: 9:11am On Feb 05, 2016
//in C++, using recursion;


#include <iostream>

int factorial (int x); //function prototype

using namespace std;

int main (){

int x;
int fact;

cout << "\nEnter a positive integer: \t";
cin >> x;

fact = factorial(x);

cout << "The factorial of " << x << " is " << fact;

return 0;
}

//function definition;

int factorial (int x){

if(x == 1) {return 1;}

else {return x*factorial(x-1);}

}



//in C++, using iteration;

#include <iostream>

using namespace std;

int main (){

int x;
int fact = 1;

cout << "\nEnter a positive integer: \t";
cin >> x;

cout << "The factorial of " << x << " is ";

//forever loop
for(; wink{

if (x == 1){
break;
}

else {
fact = fact * x;
x--;
}
}

cout << fact << endl;

return 0;
}
Forum GamesRe: Fish Riddle: How Many Fish Left? (See Picture) by Sirnuel: 9:06pm On Jan 13, 2016
3 fishes
ProgrammingRe: If You Were Imprisoned In A Room For 3 Months, Had A Computer With Internet..... by Sirnuel:
.
SportsRe: Nigeria Vs Swaziland : World Cup Qualifier 2 - 0 On 17th November 2015 by Sirnuel: 5:44pm On Nov 17, 2015
BlackAlbino6:
[color=#000000]
That is harsh and uncalled for, you know!!!

What an irresponsible comment I have come across on sport section, since I joined Nairaland.

Bros I beg grow up. I don't even think you know more about football than her.
In as much as you feel you are a man.







**Am Waiting for you to call me woman wrapper!!!





Even if you do, that wouldn't take away the facts I have stated.
[/color]
See person dey talk dey judge himself
ProgrammingRe: C++ Programmers Help!!!!!!!!!!!!!!!!!!!!!!!! by Sirnuel(op): 10:44pm On Oct 23, 2015
WhiZTiM:
I glanced over your code and can see a bug with the second switch statement.

You are testing for roman.at(i + 1) under the premise that i < roman.size().... That's wrong cause when you reach the last element, i will go overboard. If you are ever testing i + x, then your condition should be i - x....
What i am saying is...

Your while loop should be

.....
while (i < roman.length() - 1){
.....
Thanks.... I also found few bugs out on my own too. the program now runs smoothly
ProgrammingRe: C++ Programmers Help!!!!!!!!!!!!!!!!!!!!!!!! by Sirnuel(op): 8:50pm On Oct 21, 2015
codemarshal08:
hmm........your program structure is making it hard for me to scan through. Anyways, i tried to reproduce the error but your code kept giving me multiple errors different from the one you posted here

Please are you sure you were able to pass the COMPILE stage to the RUN stage ?
.yes it compiled successfully
ProgrammingC++ Programmers Help!!!!!!!!!!!!!!!!!!!!!!!! by Sirnuel(op): 12:04pm On Oct 21, 2015
I can't seem to find the bug in this my program


====================================================================
roman_to_dec.h

#include <string>
using namespace std;

int M, D, C, L, X, V, I;

class romanType{
public:
romanType();
void set_roman_type(string);
int get_roman_type()const;
int convert_rom_to_dec();
int get_answer_in_decimal()const;
~romanType();

private:
int answer_in_decimal;
string roman;
};


-----------------------------------------------------------------------------------------------------------------------------
roman_to_dec.cpp

#include <iostream>
#include <string>
#include <cstring>
#include "roman_to_dec.h"

int display_menu();
void switch_stat(int, romanType);

using namespace std;

int input;

romanType::romanType(){

answer_in_decimal = 0;

roman = " ";
}


void romanType::set_roman_type(string x){

for(int i = 0; i < 10; i++ )
x[i] = roman[i];
}

int romanType::convert_rom_to_dec(){

int answer;


int roman1, roman2;

string::size_type i = 0;

while (i < roman.length()){

switch(toupper(roman.at(i))){

case 'M': roman1 = 1000;
break;

case 'D': roman1 = 500;
break;

case 'C': roman1 = 100;
break;

case 'L': roman1 = 50;
break;

case 'X': roman1 = 10;
break;

case 'V': roman1 = 5;
break;

case 'I': roman1 = 1;
break;

default: roman1 = -1;
}

switch(toupper(roman.at(i + 1))){

case 'M': roman2 = 1000;
break;

case 'D': roman2 = 500;
break;

case 'C': roman2 = 100;
break;

case 'L': roman2 = 50;
break;

case 'X': roman2 = 10;
break;

case 'V': roman2 = 5;
break;

case 'I': roman2 = 1;
break;

default: roman2 = -1;
}

if ((roman1 == -1) || (roman2 == -1)){

cout <<"\n\n\tError incorrect input";
return -1;
}

else if (roman1 < roman2){

answer = roman2 - roman1;
i +=2;
}

else if (roman1 >= roman2){

answer += roman[i];
i +=1;
}

}

answer_in_decimal = answer;

return answer;
}


int romanType::get_answer_in_decimal()const{

return answer_in_decimal;
}
romanType::~romanType(){

cout << "calling destructor";
}


int display_menu(){

cout << "\n\t---------------------------------------------------------------------";
cout << "\n\t---------This program converts Roman Numerals to Decimals -----------";
cout << "\n\t| |";
cout << "\n\t| |";
cout << "\n\t| Press 1 to perform a new converstion |";
cout << "\n\t| |";
cout << "\n\t| |";
cout << "\n\t| Press 2 to view last result |";
cout << "\n\t| |";
cout << "\n\t| |";
cout << "\n\t| Or press 0 to exit |";
cout << "\n\t| |";
cout << "\n\t| |";
cout << "\n\t---------------------------------------------------------------------\n\n\t";

cin >> input;


while ((input != 0) && (input > 2)){

cout << "error incorrect input\n try again";

cout << "\n\t---------------------------------------------------------------------";
cout << "\n\t---------This program converts Roman Numerals to Decimals -----------";
cout << "\n\t| |";
cout << "\n\t| |";
cout << "\n\t| Press 1 to perform a new converstion |";
cout << "\n\t| |";
cout << "\n\t| |";
cout << "\n\t| Press 2 to view last result |";
cout << "\n\t| |";
cout << "\n\t| |";
cout << "\n\t| Or press 0 to exit |";
cout << "\n\t| |";
cout << "\n\t| |";
cout << "\n\t---------------------------------------------------------------------\n\n\t";

cin >> input;

}

return input;

}



void switch_stat(int input, romanType roman_type){

string input_roman;

switch(input){

case 0: cout <<"exiting the program\n\n";
break;

case 1: cout << "input the numbers in roman figures:\t";
cin >> input_roman;
roman_type.set_roman_type(input_roman);
roman_type.convert_rom_to_dec();
cout << "\n\n\t" << input_roman << " = " << roman_type.get_answer_in_decimal()<< "in decimal";
cout << endl;
break;

case 2: cout << "testing case.......it works";
break;

default: cout << "\n\tError 505....Incorrect input!!!";
break;
}

}
--------------------------------------------------------------------------------------------------------------------------------

roman_to_dec_main.cpp

#include <iostream>
#include "roman_to_dec.cpp"



int main(){

romanType roman_type;

int input = display_menu();
switch_stat(input, roman_type);


return 0;
}






----------------------------------------------------------------------------------------------------------------------------------



this is the error i get whenever i try to run the program


termincate called after throwing an instance of 'std::out_of_range'
what(): basic_string::at _n (which is 1) >= this->size() (which is 1)

this application has requested the Runtime to terminate it in an unusual way.
Please contact he application's support team for more information.
Sports. by Sirnuel(op): 11:46am On Oct 17, 2015
.
ProgrammingRe: Nigerian Programmerz The Time Is Now by Sirnuel: 8:43pm On Sep 30, 2015
I am learning c++ as a first language and it's frustrating as hell... Please recommend any study materials most especially videos



Thanks in advance
PhonesEngineers And Geeks In The House by Sirnuel(op): 5:43pm On Jun 28, 2015
Please I have three questions

Is there any website aside the random google search for downloading stock roms and firmwares for android phones ??

And secondly,
Aside SP flash tool, is there any other tools for flashing a rom to an android phone?

One more
Please
How can one flash china phones like none android techno, itel etcetera


Please can anyone invite me into that android forum whatsapp group?
CrimeRe: Nigerian Trekking To Abuja For Buhari Declared Missing by Sirnuel: 8:21pm On Jun 11, 2015
Is it the swearing in that happened decades ago or is there another one upcoming??


Why didn't the family members go to the police earlier.


Anyways,
I pray he is found in perfect health condition and all his body parts intact.
Certification And Training AdvertsRe: Video Tutorials For Programmers And Video Designers by Sirnuel: 10:22am On Jun 07, 2015
EngrBouss:
INFINITESKILLS - ADOBE PHOTOSHOP CS5 TRAINING VIDEO TUTORI
InfiniteSkills - C++ Programming Bundle Training Video
Infiniteskills Microsoft Windows Server 2012 Certification Training
InfiniteSkills - Cisco CCNA Routing and Switching Bundle Training Video
INFINITESKILLS ADVANCED MICROSOFT EXCEL VIDEO TUTORIAL-
INFINITESKILLS ADVANCED MICROSOFT ACCESS 2013 TRAINING VIDEO TUTORIAL
infiniteskills - Learning Oracle 12c Training Video
INFINITESKILLS LEARNING PHP MYSQL TRAINING VIDEO TUTORIAL
InfiniteSkills Learning Eclipse Java IDE Training videos
Infiniteskills - Certified SolidWorks Associate (CSWA) Exam Training
Infiniteskills - Microsoft Excel For Business Training Video
InfiniteSkills - Learning Photoshop CC Training videos
Infiniteskills - Advanced White Hat Hacking And Penetration Testing Training Video Tutorial
Infiniteskills - Learning PHP and MySQL Training+ Working file
InfiniteSkills - Learning Windows PowerShell Training Video
InfiniteSkills - Learning ZURB Foundation Training Video
Infiniteskills - Learning Maxon Cinema 4D R15 Training Video

You can contact me at 07087210933 or WhatsApp me @08093852664..... More list coming soon
would be needing about 5 of those videos

Email me: sirnuell@gmail.com
PhonesRe: Advice Needed by Sirnuel(op): 11:33am On May 20, 2015
gentlejoe1:
AJAH lagos
i stay in Enugu distance is a problem
PhonesRe: Advice Needed by Sirnuel(op): 11:23am On May 20, 2015
gentlejoe1:
would u buy my cubot s308 it rooted and configure to use
the Glo bb subscription 3gb for 1k. the phone is a month old
it goes for 23k u can check about the phone online
where do u reside
PhonesAdvice Needed by Sirnuel(op): 10:13am On May 20, 2015
Please which good phone can I get with a budget of 25K
ProgrammingRe: PPT: Personal Programming Tutorial by Sirnuel: 10:57pm On May 10, 2015
hope am not late

sirnuell@gmail.com
Foreign AffairsRe: Foreigners Targeted In Massive Police Raid In South Africa by Sirnuel: 12:25pm On Apr 28, 2015
osas5683:
Am sure most of them will be igbos causing troubles everywhere they go..set of useless beings
I blame your Illiterate dad for having to sleep with that LovePeddler of a woman you call mother without condom
CareerAdvice Needed by Sirnuel(op): 7:19pm On Apr 07, 2015
I am planning to apply for the up comming Airforce recruitement.

Pls what are my chances of success.

1 2 3 4 5 6 7 (of 7 pages)