General C++ Programming - October 2010 (Page 7)

GUI question
 
Is it acceptable to develop a non-gaming yet graphical program like a text-editor or a spreadsheet using Allegro? or Qt should be used in such case? I sugges...
[3 replies] Last: Thanks everyone thank you Disch; what I understand now is Qt is for... (by SomeLearner)
c/ c++ struct question
 
Hi I need to convert some c++ code so that it runs on an iPhone (objectve c). I have the following struct in C++ format: struct tagMessage { //tagMessage...
[1 reply] : C doesn't support structures having methods at all, including construc... (by Zhuge)
by Kev17
hey guys first time here
 
Am trying to Write a program that will read two numbers and an integer code from the screen. The value of the integer code should be 1, 2, 3 or 4. If the value...
[7 replies] Last: thanks for the push Albatross, i finally get it. but i didnt use the s... (by Kev17)
by atrosh
Derived class copy constructor not being called
 
Hello all, I have a (probably very simple) problem with copy constructors in derived classes... The problem is basically that I have a base class, and then ...
[6 replies] Last: I found the solution when re-reading Disch's post (thanks again); I... (by atrosh)
Any ideas why this isn't working?
 
I'm making an simple bitmap loader/editor, and I've run into a REALLY weird bug in the loading section of the code. #include <windows.h> #include <stdio.h>...
[2 replies] Last: On a side note: #include <stdio.h>//for some reason, #include <c... (by Disch)
problems comparing 2 iterators
 
I need to compare the a string from codes.dat to a string in sales.dat and if they are equal do nothing for now and i will implement it later, if they don't equ...
[2 replies] Last: Hey thanks that worked. Umm now I run into issues when my sales.da... (by br0k3nfr4m3s)
switch case out
 
Hi I run the following program and excepting answer "third" but I did get. Could anyone point me reason. using namespace std; int main() { ...
[4 replies] Last: Thx for reply Ya correct I think this was issue. I got undertsandin... (by agoswami)
by suds
My first post ....12 element array
 
I'm trying to code a program that displays the number of days corresponding to the month numbered entered by the user I'm wanting to declare a 12 element int...
[12 replies] Last: ok. I may try to make hte while statement work then so it does ask ... (by suds)
Cannot connect using sockets once disconnected!
 
My program consists of three parts: SCTrans.cpp #include "SCTrans.h" WSADATA wsaData; SOCKET m_socket; SOCKET m_backup; sockaddr_in con; SOCKET Ac...
[no replies]
by Firsum
Text-Based RPG -Moving-
 
Hi guys!! I'm working on a simple Text-Based RPG in C + + I just finished with the movement of characters on the map, but I do not know how to put NPCs...
[5 replies] Last: I am enlightened! Thanks Disch! (by Firsum)
by Uni616
Segmentation Fault.
 
Edit:
[6 replies] Last: EDIT: (by Uni616)
by Null
x!=x vs x=!x
 
Hello, why x!=x doesn't equal x=!x ? int main() { bool b=true; b!=b; // == true , but I thought b!=b == false b=!b; // == false } Then I t...
[8 replies] Last: Sorry, instead of 'not-equal' I should have said 'inequality'. :-\ (by Duthomhas)
C++ program (1,2)
 
Heyy guys, my code is below..i don't know what is happening but when i enter the first month in the output window enter month#2 and enter month#3 gets skipped ...
[23 replies] Last: yea..thanks for ur hlp bro i really appreciate it (by qwertyasdfgh)
by ZALGO
terminate called after throwing an instance of 'std::out_of_range'
 
Hello everyone I'm new to C++ coding and i just registered on the site (nice forums!) I started c++ 2 months ago but i'm a very adaptive person. So anyway....
[4 replies] Last: Hi Albatross I never erase a string variable i only use .erase( ) ... (by ZALGO)
Circular Queues
 
Hey guys. Could anyone point me to some reference material concerning circular queues, or try to explain them here. I've got a project that requires reversing/r...
[7 replies] Last: Deeper Knowledge? Its like you want to know the biography of Newton an... (by Mike Sandy)
by wtf
operator not working.
 
I would appreciate if someone can tell me what I'm doing wrong with my operatr(). Some of the values are properly being assigned, but other values are then b...
[4 replies] Last: // you just put it to reserve memory, why are you change it to null? ... (by wtf)
New Pointer has the same address as an existing pointer
 
I have the following situation. The weird thing is, is that this issue only pops up after a few nodes have been appended to the list. There is a description of ...
[12 replies] Last: Its nice to have a nice community like here on cplusplus.com, Its a we... (by officialhopsof)
Static variable inside a method
 
Hi This is more like a performance evaluation. I hav a static integer variable 'count' inside a method of class a, in order to keep track of no.of time...
[5 replies] Last: +1 kfmfe04 That goes for all variables of all types. (by jsmith)
Clean way to call a class oprator in the class body
 
Is there a cleaner way to call an operator of a class in it's body than using this? Ex : (*this) = val; Or should i create a method that does the same thi...
[1 reply] : Call it like you are, or like this->operator ( key ) = val; // ... (by jsmith)
by yulz
multiplying multiple/dividing variables in function giving 0
 
hi im having problems with the return variable of a function returning zero instead of the actual result any ideas? int keneticEnergy(int num1,int num2){ ...
[3 replies] Last: +1 hamsterman Not only that, but spell correctly and use meaningful... (by kfmfe04)
October 2010 Pages: 1... 56789... 23
  Archived months: [sep2010] [nov2010]

This is an archived page. To post a new message, go to the current page.