- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 24
- Posts with Upvotes
- 22
- Upvoting Members
- 15
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Well im a self taught programmer who stumbled upon programming at Uni in second semester on my 2nd year(07/08). Since then iv bought 13 programming books and completed well ,... 1 of them. But iv worked through a good amount of the rest just have to…
- Interests
- Umm ,... well as simple as it may seem my main interests are Alcohol (social drinking i think its called…
- PC Specs
- Core i5 quad 2.8ghz 4gb ram, 120gb ssd, HD6770 GPU
For some time I have been using a utility called [forcebindip](http://old.r1ch.net/stuff/forcebindip/) It's purpose is to start an application and force it to use a specific network adapter. So if you wanted to start IE on an adapter that is not the default, you can start it with this commandline utility … |
|
Recently i have come up with the scenario where i need a single class to handle a few different interfaces and i have found a few different approaches to take. I was wondering if anyone has encountered the same situation and can give me any suggestion(s) as to if there … |
|
I am writing a program that reads a fiel and displays the contents in hex values. The problem is that there are some very strange characters in my output. Code: #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_BUFFER_LEN 512 typedef enum cbool { ctrue = 1, cfalse = 0 } … |
|
What I want to understand is how it all works, including the following parts: WSADATA wsaData; SOCKET ConnectSocket = INVALID_SOCKET; iResult = WSAStartup(MAKEWORD(2,2), &wsaData); WSADATA is info, but what info is it specifically? WSAStartup is a function to initiate WS2_32.dll. What is the differenece between initiating WS2_32.dll and SOCKET? |
|
Hi again everyone, Im running into big trouble with my compiler Dev-C++, every time i compile any project, whether it is 1 im working on, or a completely fresh 1 I get the same error every single time, I have been on the bloodshed forums and IRC channel but Im … |
|
Hi, I'm trying to send an array of data to a .txt file, and after a couple days am just rewriting code I wrote days ago. I have an array of ints that I want to send to file in three columns outputFile.open("sorted.txt"); for(int i = 0; i < size; … |
|
Hi When I tried to compile like g++ -std=c++11 -W -Wall it gives this error error: ‘stoi’ is not a member of ‘std’ #include <string> #include <iostream> #include <fstream> class Grade { public: // Default Constructor Grade() {}; // Functors // If the given course and the score matches the … |
|
Hi there! I have a question related to filing in c++. I have to read data from a text file and load it into 2-d dynamic array. Here is the problem statement: 5 3 3 8 1 4 2 5 7 2 4 6 8 0 9 3 1 2 … |
|
I am just starting out with c++, but I have a goal in mid. I have already programmed the logical portion of what I wish to acomplish in Java, but it doesn't work, because I can't set a usb to read only for the whole system in Java (if I … |
|
Hi all, I have a problem with trying to call a protected base class function from an inherited class. I have done some research and from what i can gather what i am trying to do is simply not permitted by the standard. The error i get when trying to … |
|
Hi again and thanks in advance ! Last question ! I have to create a class called polygon (not normal) that has in private the number of sides and the length of each side and in public that has 2 constructors (the one has as variables the number and each … |
|
Hi, I have a matrix of size of n x m, how can the file be read without any given size, thus making it possible to be read with any given size matrix?. Here is the scenario, I have a matrix of size 3 x 2 then someone wants to … |
|
I have a C++ console project in Code::Blocks and I have set breakpoints to test an error. I have set the build for the project to produce debugging symbols for the debug build. I built it, then when I hit debug it just ignored my breakpoints and skipped to the … |
|
The idea is to get a sentence of words and then scramble the middle letters of each word without altering the position of the word in the sentance. So for example, the user inputs: Programming is very interesting! the output should be: Pogrmarmnig is vrey itenrseitng! So far, i have … |
|
Hi all, I have started finding lots of uses for abstract classes to define interfaces for common functionality using polymorphism and i know that using polymorphism and virtual functions incurrs some additional call cost of functions. So what im wondering is can i get the best of both worlds? consider … |
|
My professor told me to put an audio in my program but he did not taught me how to. please help me because i do not have any idea on how to do this thing. i know that you guys are experties so please help me.. tnx alot.. :) |
|
so i have the following code, it inserts a number to a list and then i call my sort function which is below this function, the problem is that my sort function takes forever, is there a way i can implement my insert function so that everytime it inserts a … |
|
Hello, I'm working on a project and the value of num is AdditonalAdultQty + AdultQty (AdditonalAdultQty and AdultQty will be inputted from the user) Then those two values will be stored in the text file. When the program runs again and a different user will input how many tickets he … |
|
Hi everyone, I'm not even sure if this is possible, but I seem to be struggling at the minute with it so here goes... I have a main.cpp where severeal different objects of different classes are created, such as say Log, ConfigManager, XMLReader and so on - what I'm trying … |
|
Hi there I've got a problem with functions, where it seems that function call return zero instead of the actual variable value, I will appreciate any help from you guys. I will post the major code parts because the program is big. I get the totallength variable value right but … |
|
As some of you may know already, I've been trying to re-teach myself through the data structures component of C++. I'm currently in the chapter of 'Pointers' and eventually want to make my way through finish learning hash-tables/trees/sort algorithms. Could someone give me a sort of "First learn this, then … |
|
So i have implemented the following link list, but i just want to know if i can sort the link list. any help? [CODE] #include<iostream> #include"ll.h" using namespace std; // PURPOSE: contructor which initializes front and rear to NULL and count // to 0 LL::LL() { front = NULL; rear … |
|
Hi, I need help with a program that you enter X and Y, and the program has to resolve a)X^Y *Y b)X/Y it most be recursively and only using addition and subtraction. For division the result most has 2 digits of precision but only using integer example INPUT OUTPUT X=1 … |
|
Why should a person learn win32 api? What things I can do when i have learnt it? Some people tell "There is no need to learn win32 api because literaly you will only design Window(box, messagebox etc), which you can easily do by MS Visual studio tools!". Is this true? … |
|
I am having and issue getting my add to list function to work in my data structure list class. I have all functions working except addToPostion. addToHead, addToTail, deleteFromhead, deleteFromTail, and DeleteFromPosistion all work as expected. I'm confused on the addToPosistion. The entire .cpp file is posted. Any and all … |
|
Hello, Simple question this time, I hope, I have a program that collects an argument from execution on another program, the argument is the path to a file. Now, the problem is that when I try to read the argument to a string using argv[1], it'll only get the first … |
|
Hi all, This is quite a specific question with a relatively large amount of explaining so ill try to make it really short to try save peoples time. In a nutshell what i have is a large csv file and im trying to search a particular entry (line in the … |
|
Hi am trying to write a program and its giving me this error "cannot instantiate abstract class", can someone help me please? this is the code: Header: [CODE]#ifndef ABSTRACTGEOMETRICOBJECT_H #define ABSTRACTGEOMETRICOBJECT_H #include <string> using namespace std; class GeometricObject { public: GeometricObject(); GeometricObject(string color, bool filled); public: string getColor(); void setColor(string … |
|
I have this code: [CODE]#include <iostream> using namespace std; int main() { enum foxtrot {green, yellow, red}; foxtrot colorSelect; cout << red << endl; [COLOR="Red"]cin >> colorSelect;[/COLOR] cout << colorSelect << endl; } [/CODE] Line 10 gives me the result 2 as expected, but line 11 gives me a compile … |
|
hello all i am new over here and i have got a project to make sudoku in c++ but i am getting problem to write a code for finding solution for the soduko plz help |