49,761 Topics

Member Avatar for
Member Avatar for Wayniepooo

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 …

Member Avatar for Wayniepooo
0
1K
Member Avatar for cambalinho

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

Member Avatar for Labdabeta
0
98
Member Avatar for lmuller89

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 …

Member Avatar for Lucaci Andrew
0
5K
Member Avatar for Damian_2

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 …

Member Avatar for Damian_2
0
337
Member Avatar for chubbyy.putto

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 …

Member Avatar for Ancient Dragon
0
176
Member Avatar for Elixir42

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 …

Member Avatar for Ancient Dragon
0
203
Member Avatar for Seba Sama

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 …

Member Avatar for Seba Sama
0
1K
Member Avatar for Justin_9

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 …

0
106
Member Avatar for mixelplik

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)] == …

Member Avatar for vmanes
0
131
Member Avatar for rat.man.9277
Member Avatar for vmanes
0
58
Member Avatar for nhrnjic6

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 …

Member Avatar for userasad
0
154
Member Avatar for chubbyy.putto

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 …

Member Avatar for Ancient Dragon
0
328
Member Avatar for mixelplik

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 …

Member Avatar for Ancient Dragon
0
122
Member Avatar for Neelam_1

why we can't declare a static variable incide local class(class inside a function) ?

Member Avatar for Neelam_1
0
270
Member Avatar for xednycrex

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 …

Member Avatar for Lucaci Andrew
0
188
Member Avatar for Seba Sama

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 …

Member Avatar for Seba Sama
0
2K
Member Avatar for mixelplik

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 = …

Member Avatar for Lucaci Andrew
0
188
Member Avatar for lmuller89

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 …

Member Avatar for AndrisP
0
168
Member Avatar for mixelplik

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 …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for jocker403

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; …

Member Avatar for Ancient Dragon
0
130
Member Avatar for mixelplik

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. …

Member Avatar for mixelplik
0
140
Member Avatar for cambalinho
Member Avatar for akfjmalcmask

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.

Member Avatar for akfjmalcmask
0
2K
Member Avatar for rocking.ganesh.9

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 …

0
42
Member Avatar for H_beginner

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.

Member Avatar for L7Sqr
0
245
Member Avatar for Harsh rocks
Member Avatar for javed.iqbal.3979

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 +---------------------------------------- …

Member Avatar for rubberman
0
101
Member Avatar for hitesh suthar
Member Avatar for sohail.butt.144

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

Member Avatar for Learner010
0
287
Member Avatar for chrisl007

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 …

Member Avatar for chrisl007
0
223

The End.