49,761 Topics
| |
Hi basically i need help , i am not good with c++ but i am trying my very best. i am currently stuck with trying to do an infix to postfix conversion that reads from a textfile. The text file contains the infix notations and the code is suppose to … | |
i have 1 class that have members dependents of the class pointers. when i do the Copy Construtor with assignment operator, how can i use the instance class this, instead copy from 1 instance to another? i don't want 1 instance member be pointed to another instance | |
Hi all, I am coming accross a problem that says "C4703: potentially uninitialized local pointer variable 'data_list' used" and "C4703: potentially uninitialized local pointer variable 'filter_list' used". I have tried initilizing the pointer like I have read while googling it but have not managed to get it to work as … | |
Okay so I have an `inventory` class that accesses a static vector from my base class `MainShop`. I also have a `SwordShop` class which inherits from `MainShop`. (Both Inventory and SwordShop are derived classes). //SwordShop class void SwordShop::Shop { //I have a setter function where it takes an integer and … | |
Random Number: Whenever I run it show me an error. Here is an error "implicit conversion loses integer precision 'time_t' (aka 'long') to 'unsigned int'", so i put change to `srand( (unsigned int) time(NULL) );` it run but it seem the number is not change at all. void read_array (int … | |
I have read tutorials using my google-fu on how to set up Pre-Compiled Headers, and now I wanted to clear up a few questions: If all the 'to be pre-compiled' headers go in one file - "stdafx.h" then how do you say you only want 1 of those files in … | |
Hello, I need to start using databases with c++. I know in VB or VBA is simple and easy to find tutorials. I've done a lot of database apps in VBA and VB. I couldn't find help for c++, only for vc++. I use Code::Blocks and mingw. If anyone knows … | |
Im developing a windows form application is Visual Studio Express 2013 I made a New Project -> Empty CLR Project then i added the windows form UI and i coded the (myprojectname).cpp this code #include "MyForm.h" using namespace winformapp; [STAThreadAttribute] int main(array<System::String ^> ^args) { // Enabling Windows XP visual … | |
I'm trying to scroll through a list of cstrings and if they end in an 's' I want to replace it with a '\0' the problem is somtimes it catches the word and corrects it for a comparison, but other times it doesn't while (ptr != NULL) { if(ptr[sizeof(ptr)] == … | |
I have hard time understanding how does it happen. I mean how does : 6 / \ 3 8 / 2 I get that program finds the num on the left side whos equal to null so its smallest and it prints out 2. But how does it go back … | |
here is question: Write a function that accepts an array of integers and its size as arguments. The function should create a new array that is one element larger than the argument array. The first element of the new array should be set to 0. Element 0 of the argument … | |
Can someone explain this line a bit for me, I get the big picture, but the under-the-hood aspects are eluding me. testFile.getline(buffer, sizeof(buffer)); I have a char array buffer of size 80. Get line extracts a line from my testFile, and puts it into the buffer. When I "cout" the … | |
why we can't declare a static variable incide local class(class inside a function) ? | |
Hi my name is Xednyc, I'm very new to C++ since this is my first year in college, I am taking an IT course. I am currently out of ideas on what program to make, anyone could suggest an interactive, fun, yet not so simple program for a newbie like … | |
Hello, I lost some hours trying to set up wxWidgets and starting a simple program using Code::Blocks. wxWidgets is installed and built, following [this](http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef) tutorial. But when I start a new project I get into some message saying: "A matching debug configuration cannot be found in the wxWidgets directory you … | |
I'm reading a file in line by line. At the end of the file there wackily are to carriage returns. I'm reading the lines in like this (code below) then parsing them. Because there are two wonderful returns the wonderful program crashes everytime I run it. char* ptr; ptr = … | |
Hi All, I am having trouble trying to locate the problem with this code. When I run it I get the follow error "First-chance exception at 0x0FADA9E8 (msvcr120d.dll) in ConsoleApplication2.exe: 0xC0000005: Access violation reading location 0xCCCCCCC0." It seems to show an error on the dbgdel.cpp but I am completley lost … | |
I'm trying to parse an input file line by line. I want to grab each line one at a time, put it into a null terminated char array. I can't seem to do it. I tried something like this and just got weird ass results. int q = 0; do … | |
I try to compile the next code but the compiler says that **`int base::i' is private ** #include <cstdlib> #include <iostream> class base { int i; public: base (int i=0); void set (); int get (); }; class derivada:public base { public: void set (); } ; using namespace std; … | |
I'm trying to search for a word in an array of strings, everytime it gets to the while loop it just loops infinitely. It's getting the words and comparing just that when it gets to the second else, It just takes a fat dump. Can anyone help? So damn frustrating. … | |
using API functions, can i get the text rectangule? | |
| Hi guys, i am so new here, but i work c++ for 3 years but i have a hard. i have a executable file and i want to encrypt this, how i manipulate an exe file ? i have a little bit asm x86. Thanks for your comments. |
Iam a student of computer science and i am in the first year of my college(I am studying computer science and engineering). I am thinking of doing a project in c++ which analyses the amount of oops concept used in a specific code. To speak more elaborately, I want to … | |
I am using the gcc compiler and I am new to using flags. Can any one tell me a source for it. e.g. I wanted to use *-funroll-loops* but I dont know the proper syntax. Can any one help. | |
Write a C++ program which takes a positive integer N from the user, and prints the multiplication table of size N by N. For example, if the user enters 10, the following table should be displayed by your program. 1 2 3 4 5 6 7 8 9 10 +---------------------------------------- … | |
I need a program which shows the number is even or odd and print the table of 2 if the any even number we enter and when we enter the any odd number the program print the table of three please help as soon as possible | |
Hello, as it can be inferred from profile, I am new. I have read the community guidelines and I have done prior research. I am a very weak coder(through my own fault). However, I like to believe I firm conceptual understanding. **So What is my problem?** I have an assignement … |
The End.