Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
69% Quality Score
Upvotes Received
8
Posts with Upvotes
7
Upvoting Members
5
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
2 Commented Posts
~21.9K People Reached
Favorite Tags
Member Avatar for OmniX

I know the dos command is "shutdown" then with your parameters of "-s -t xxx" etc. Anyways so "How to shutdown your computer using C++?" Thanks, Regards X

Member Avatar for Alex_34
0
2K
Member Avatar for Silvershaft

Hey all! I am interested in learning to use sockets. make client and server program. Where should I begin? Thanks!

Member Avatar for PriyankaMV
1
142
Member Avatar for lessonlearned

Sorry to bump this older thread, but I had a suggestion from a moderator to ask here. I signed up for an account to play a joke on one of my classmates at University. He was asking a question about our assignment, and I replied with a troll response. Well, …

Member Avatar for power_computer
0
205
Member Avatar for power_computer

Hello all, I am given a project and would like some help/guidance from the community. I am not asking for any code just a direction and little advice on how to approach this project or how these things work per-say. I am behind in my classes due to me having …

Member Avatar for VernonDozier
0
1K
Member Avatar for bpt0004

I'm trying to run my program but i can't find out why its giving me a segmentation fault. Please Help. [CODE]#include <cmath> #include <cstdlib> #include <ctime> #include <string.h> #include <fstream> #include <sstream> #include <stdexcept> #include <stdio.h> #include <ctype.h> #include <vector> #include <cctype> #include <algorithm> #include <iterator> #include <iomanip> #include <cstdlib> …

Member Avatar for donaldw
0
133
Member Avatar for gedas

hi guys im creating a dictionary which would show the word and the meaning of the word this is what i have done so far, i created a class called meaning which stores the meaning of the word [code] #ifndef MEANING #define MEANING #include<string> class Meaning { public: Meaning(); ~Meaning(); …

Member Avatar for power_computer
0
155
Member Avatar for book_worm

[code=c++] /*I have coded this but it is not working fine it kept saying "Segmentation fault" and i can't track it down, can someone help me on this i want it badly!*/ #include<iostream> using namespace std; int k=0; void gcd(int a, int b); void gcd(int a, int b) { static …

Member Avatar for jonsca
0
111
Member Avatar for yatman

I have a file reg.txt which has 32 bit binary values like below 00000000000000000000000000001000 00000000000000000000010100100000 00000000000000000010000000000000 00000000000000000000000000000000 00000001000000000001000010010000 00000000010001000010000100100100 00000000001001000100010000000000 is there a way to read the 32bit binary value and store in an int?

Member Avatar for donaldw
0
370
Member Avatar for power_computer

I need a bit of clarifaction here. When you allocate memory in a dynamic memory it is depending on however you decide to increment your max of your array, so if my objective was to delete a single object in the array I would do the same as a static …

Member Avatar for power_computer
0
105
Member Avatar for power_computer

For the life of me I cant figure out this simple task I know with a static array you just simple shift over one element and decrease the size in variable pertaining the length of the array as such [code] for(i = 0; i < n; i++) if(key == array[i]) …

Member Avatar for power_computer
0
3K
Member Avatar for power_computer

I have a linked list containing the following data struct node { string name; int hours; node* next; } I have all function I've made so far working, adding indiviual node, deleting node, printing data in nodes, Ive made the program to read from a file upon execution to create …

Member Avatar for power_computer
2
1K
Member Avatar for tkud

Hey,everyone.. pls I need a very exhaustive example of a typical linked list for better understanding .Any help will be appreciated..Thanks

Member Avatar for tkud
0
102
Member Avatar for .:Pudge:.

*EDIT* IT IS A SEGMENTATION FAULT NOT BUS ERROR (anyway to change thread title?) I am trying to make a deep copy of a linked list, but whenever I run a test of the constructor i get a "Segmentation Fault". I tested the "Append" method and it works fine. I …

Member Avatar for power_computer
0
102
Member Avatar for power_computer

Ok, I am trying to figure out how to purse this current project which deals with dynamic allocation and linked list Here is the information I am given the following two structs [code] struct employee { int ssn; string name; float hours; assignment * list; }; struct assignment { string …

Member Avatar for power_computer
0
211
Member Avatar for AdRock

I don't know if this is the right board for this but here goes I have finsihed writing my program and it compiles fine on windows using the MinGW compiler. Ihave it compiling and running fine I tried compiling on a linux machine to create an executable but i an …

Member Avatar for AdRock
0
172
Member Avatar for debasishgang7

hi i want 2 know ho to make Instant Messenger client with c++. pls. provide web resources if available.., .. pls..

Member Avatar for kabeer.khan
0
2K
Member Avatar for IT seeker

[COLOR="Green"][B]salam i m new here. i m student of MIT. the basic problem is with that i cant understand the statement of proagram that what i have to do in it. and theoratical i know what is cin, cout, headerfiles etc but not very much. so i ve to submit …

Member Avatar for IT seeker
-2
463
Member Avatar for power_computer

I have created a insert function which inserts the item in the template array, the position of the item in the array template list is depending on the ratio of wins over total games played, I have manged to work out the insertion sort if the two scores of a …

0
75
Member Avatar for power_computer

I have a program that reads from a file, and inserts the read items into a template array. Once that file is read into the array the second file is read, if there is a invald name ie name not int the array it is not updated. The second file …

Member Avatar for power_computer
0
127
Member Avatar for JoQsh

I'm working on some code for a school project that involves outputting the average GPA of a group of male and female students. The total GPA (before dividing to get the average) needs to be rounded as each student's GPA is added in order to get the correct output. However, …

Member Avatar for JoQsh
0
145
Member Avatar for chubzyko

I've been surfing the net for hours now looking for a good example of reading and sorting data from a textfile.:pretty: But I can't find a good one that is working. :(Can somebody give me a simple example code of reading and sorting data from a textfile in ascending order …

Member Avatar for Lerner
0
2K
Member Avatar for power_computer

I have the following driver for my template class the parameter being passed to the template is another class, the error I get is Error line 28 : templateclass.h std::ostream<<ballteam is illegal driver.cpp line 30 Where instationating templateclass<ballTeam>::print const () driver [code] #include <iostream> #include <fstream> #include "arrayListTypeT.h" #include "ballTeam.h" …

Member Avatar for power_computer
0
137
Member Avatar for caprio.nups

I have a 10x10 matrix.basically this matrix is a square of 50 cm.and In this square we cut circles of diameter 5 cm each.The x and y co-ordinates are specified.I need to fill the martix depending on the circle it represents(with the help of given x and y co-ordinates). I …

Member Avatar for power_computer
0
105
Member Avatar for power_computer

Ok, I have a given template class code the only thing we are to implement is inserting an item so that the template array list is still in ascending order my template passes the parameter of another class, this classes contains overloaded operators < > == based upon the win …

Member Avatar for Tom Gunn
0
111
Member Avatar for power_computer

I previously asked how to install the CC compiler earlier, I decide to share my knowledge of how this compiler instead of g++ I installed this compiler because the CC compiler can handle separate template class files. I hope this is useful to some when looking for a separate C …

0
67
Member Avatar for power_computer

As seen in my previous post I had a problem with some code dealing with linking a template class, I emailed my professor and the g++ compiler cannot handle the seperate compilation of template classes. So now im stuck with no compiler, in labs we use the CC compiler with …

Member Avatar for power_computer
0
142
Member Avatar for power_computer

I currently have a template class, another class that is passed as the parameter to the template and a driver and I am getting these errors, I have no clue what the problem is. Also I have another issue with this project I need to sort out which is insert …

Member Avatar for power_computer
0
251
Member Avatar for power_computer

I was given a template class code here and I have to add the code to a insert function in there, I have no real experience with templates, how would I go about doing this ? here is the template class code.cpp [code] // Implementation of the templated version of …

Member Avatar for power_computer
0
134
Member Avatar for power_computer

I have the following code snippet which is the most important as you can see I have two arrays defined of two different classes, my main agenda is printing them both out in a single list in ascending order based on the .GetDay value in each array, however when read …

0
67
Member Avatar for power_computer

Wow sorry for so many edits I just need to swap the rest of my array of structs along with the day value now delete this post or post insight on how [code] int x, y; for(x = 0; x < l; x++) { for(y = 0; y < x; …

Member Avatar for Ancient Dragon
-1
72