49,765 Topics

Member Avatar for
Member Avatar for ischuldt

I'm getting an error saying: error: passing `const model::container::Item' as `this' argument of `void model::container::Item::get_fields()' discards qualifiers I'm getting the message for each of the getters in my class which are declared like this [code=c] const int& division()const{ get_fields(); return division_; } [/code] I'm assuming I'm getting this error because …

Member Avatar for arkoenig
0
124
Member Avatar for hg_fs2002

Hi,Is someone could help me how is it possible to implement Generalized Linked Lists? I've implemented it somehow but I'm not sure it works or not. Now I'm going to print the nodes I've implemented.When I want to declare the print function in class Glist with first1 argument,I get this …

Member Avatar for hg_fs2002
0
1K
Member Avatar for cmutzel02

Hi all, I am having a problem when trying to compile this. from compiler: error: name lookup of 'pixel_number' changed for new ISO 'for' scoping error: obsolete binding at 'pixel_number' I understand that I cannot use the pixel_number variable outside of the for loop, have read so in other posts. …

Member Avatar for cmutzel02
0
271
Member Avatar for Red_Dragon

I'm trying to write a Tic Tac Toe game but I'm stuck at the computer AI. Basically for the computer move I need a random generator to pick a number and insert it into a 2D array. The parts that I'm stuck at is writing a code so that computer …

Member Avatar for ischuldt
0
75
Member Avatar for rakeshk_87

Hi I am writing a c++ program to implement a symbol table. I am trying to view the symbol table which the gcc or any other compiler uses before i get started...how do i do that ???

Member Avatar for Fbody
0
68
Member Avatar for wwefriend

hi there, currently i starting to learn C++.i using VC++ 2010.hmm,i want to ask why this code must be compile under console application [CODE]#include <iostream> int main() { std::cout << "123"; return 0; }[/CODE]

Member Avatar for wisaacs
0
139
Member Avatar for darelet

Hey community members, I'm just from an unsatisfactory search through Google. I'm trying at a program that automatically reads in numerical values dumped into a file by an Algebra software. Problem is, whenever I try to sort out numbers they are not appearing the way I want them to. These …

Member Avatar for jonsca
0
157
Member Avatar for Dimesh

What is the difference Between those types of initializing An array called "IntegerArray" With 5 element : [CODE] int IntegerArray[5] = {0}; int IntegerArray[5] = {0,0,0,0,0}; int IntegerArray[5] = {10,20,30,40,50}; int IntegerArray[] = {10,20,30,40,50};[/CODE] Please i need an obvious explanation for each line as i am confused..... Thanks for reading...............

Member Avatar for Dimesh
-1
73
Member Avatar for jeffpro

Hey guys, First post here. This community looks create. I'm working on a final school project and we must move the cursor to a designated position without the use of: mouse_event() SetCursorPos() we then need to perform a check to say if the position is correct with the numbers we …

Member Avatar for mitrmkar
0
100
Member Avatar for Jackie91

when i enter '1' .. the cout is connected,i cant even input the 1st line,which is the 'name = '.. help me pls. [CODE]#include<iostream> #include<string> using namespace std; void main() { int input; int choose; string name; string icNum; string parentName; string address; string TelNum, parentTelNum; cout << "\n\t\t\t STUDENT …

Member Avatar for jonsca
0
143
Member Avatar for Danny_501

Hi all, why do I get an error with this line of code? [CODE]string test("a" + "b" + "c");[/CODE] error C2110: '+' : cannot add two pointers I have included the string class. thanks.

Member Avatar for Danny_501
0
111
Member Avatar for cyqrus

just want to design a software that called reminder sofrware. Its like resource project.And ı dont know even how to start. Its gonna be a software that is designed to alert the user of important events that they have input to the program and the program provide a calendar and/or …

Member Avatar for cyqrus
0
183
Member Avatar for cap2361

lost!!! I took a homework assignment that worked written in just main and for practice I wanted to make them classes with pointers and have one derived class of base. Although the while loop, for the most part worked before it was turned into a class, it now does not …

Member Avatar for sunrise_cool
0
199
Member Avatar for kshitij tyagi

Hi all.. I want to know the file descriptor of a file that I have opened in my program. I know open(char*,int,int) returns a file descriptor. What if use fstream out("...").. Is there any way to know the file descriptor this way?? thnx.

Member Avatar for kshitij tyagi
0
105
Member Avatar for fuggles

I'm experimenting with GDI+. Say I have a box and want it to move across the screen on a keypress. Do I have to clear the screen and redraw everything everytime I want to move the box? Or is there a way to just change the coordinates of the box?

Member Avatar for jonsca
0
132
Member Avatar for anjoz

can you guys help me out i dont know any of the c++ functions and i dont know how to convert this tnx in advance [CODE]#include <iostream> #include <stdlib.h> #include <fstream> using namespace std; struct student { char fname[100]; char lname[100]; int id; float cgpa; }; int add( student * …

Member Avatar for Ancient Dragon
0
99
Member Avatar for Awah Mohamed

hello guys , i want to earn c++ but i dont have it's compiler but i have c compiler so can i use it or i need c++ compiler and where can i get it

Member Avatar for Ancient Dragon
0
230
Member Avatar for hg_fs2002

Hi,I want to ask how it is possible to read a file without printing newlines? I'm using getline() to read the strings but I want to print all the strings consecutively even if they've been seperated in the file with a new line.

Member Avatar for Ancient Dragon
0
93
Member Avatar for enkidu75

I am new here and this is my first post so I'm sorry if anything in this post is done incorrectly. I have taken a C++ class but did not get into any object oriented parts of it (all linear). Now I am in an object oriented class which is …

Member Avatar for Ancient Dragon
0
341
Member Avatar for creative9k

Sorry for the new questions... I've created this program to display a table . How could I write this code using while statements instead of for? [code]#include <iostream> using namespace std; int main() { for (int x = 1; x < 4; x++ ) { cout << x << " …

Member Avatar for creative9k
0
146
Member Avatar for Unas

Please help me try to figure this out. Keep getting this error, error C3861: 'intialbid': identifier not found Can't figure out how to fix it, here is my code, the program is not finished. [CODE] #include "stdafx.h" #include <iostream> using namespace std; #include "myfuncs.h" int main() { do { char …

Member Avatar for Unas
0
158
Member Avatar for Excizted

Hello! :) I'm trying to achieve an 'engine' of a kind in a DLL project. I have successfully made a DLL that works, but as simple as Hello World. Now I'm coding a framework into the DLL project, but I'm having some trouble with the singleton function. Im getting this …

Member Avatar for oktalist
0
194
Member Avatar for vbx_wx

Hello,i had to write a paper about data structutes implemented using STL,and I was wondering if anyone can answer this question for me for the conclusion of the paper: 1) What can i say about the results obtained with STL when implementin Data Structures 2)Future research about data tsructures using …

Member Avatar for mrnutty
0
203
Member Avatar for VBNick

I just finished a small winsock program for sending files, but its soooooooooooooooooooooooooooooooooooooooooooooooooooooooo slooooowwwwwwwwwwwwwwwww:yawn: so I am hoping someone here may be able to offer me some advice. so far, the program works as follows: 1. User1 chooses a file and attempts to send it. 2. User2 chooses to accept …

Member Avatar for VBNick
0
653
Member Avatar for XxPKMNxX

I have this program, when it starts, i am unable to press numbers. By pressing F this turns the numbers on. However, the result is, i have to hold down F to use the numbers. I thought declaring ignition as true would stick after i had released F. And pressing …

Member Avatar for mrnutty
0
111
Member Avatar for Awah Mohamed

hello , i want to know where i can get all the 3d and all the other c++ and c libraries and where can i learn how to use it

Member Avatar for SgtMe
0
39
Member Avatar for VBNick

I made a simple app to turn off a monitor. The entire program consists of just this: monoff.cpp [code] #include "windows.h" #define MON_OFF 0x2 int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, MON_OFF); return 0; } [/code] For some reason it still wont run …

Member Avatar for VBNick
0
289
Member Avatar for akj_1989

hello sir! i am a new user here. I am trying to compile a C code(for 32bit x86 systems) on VS2008 using Lindo API 6.1 for windows(x86) [URL="http://www.lindo.com/index.php?option=com_content&view=article&id=1&Itemid=9"]link[/URL]. My OS is Windows 7 Home Premium x64. After successfully compiling the code, when i run the exe file for debugging, I …

Member Avatar for wisaacs
0
93
Member Avatar for rakeshk_87

Hello I am new to C++ programming and i am trying to write a c++ class for a calculator. I am having trouble with my get_token function where i'm trying to read one character at a time and if the character represents a number , it should convert it into …

Member Avatar for rakeshk_87
0
237
Member Avatar for kunkunlol

Hey there, I'm trying to organize a file that contains the name of the player, and his score. ex: kunkunlol 473 marc 94 Susan 134 I have 2 functions, one to read the file (will show the top 10 players like above), and another to write on it (like above …

Member Avatar for Excizted
0
102

The End.