General C++ Programming - April 2014 (Page 38)

by Argy
ERROR on compiling
 
Hi.I made some header files with their cpp.Everything was fine but when i made a function on one of my header's and i try to compile i get this: error: 'ListC'...
[3 replies] Last: Thanks both of you. I tried what you told me.it seems to work.i will t... (by Argy)
by Nik94
[QT] Segmentation fault by using QList
 
Hello, I have a little problem wioth my Qt-5 Program by using a QList-Object. If I call QList::isEmpty or ::size, my program stops and I recieve a Segmentation...
[2 replies] Last: Thank you for your help. I have solved the Problem by using an Object ... (by Nik94)
Student Linked list 2
 
So I decided to start again with the linked student list again. I have to use linked list to display a student's name, id, and gpa. I am having problems with tr...
[1 reply] : http://comsci.liu.edu/~murali/win32gui/Win32Apps.htm you chose the wro... (by ne555)
by gkropp
Linked List code not compiling
 
I've inherited some legacy code that I need to modify. The code that needs to be modified uses Linked Lists. I'm familiar with the concept of linked lists and...
[1 reply] : I resolved my first question..."Reading an enumeration from a node in ... (by gkropp)
by bgmnk
Problems with simple program
 
I am currently learning C++ on my own and the best way I learn is hands-on. This lead me to attempt to create a simple calculator capable of addition, subtract...
[4 replies] Last: wildblue, you were correct that i did not need that if conditioning st... (by bgmnk)
Stacks and Queues
 
So I was wondering if I were to empty the elements of a stack into a queue, but i only wanted to empty the even numbers or the odd ones. What would the if state...
[2 replies] Last: You may need another stack to temporarily store the even/odd numbers w... (by phillips zy)
by mfooo
Changing my program to use functions.
 
I am very new to programming and I am not sure if this is right. Can anyone help me out and tell me what I am doing wrong? // This program prints addition a...
[4 replies] Last: Example of declaring, defining and calling a function: #include <io... (by mutexe)
How to make an image popup?
 
Hello, I have a School project that I need some help with. Our teacher wants us to make a timeline showing a picture from each year of our lives. I thought of ...
[11 replies] Last: Yeah, this creative thought may be realized if you set the year displa... (by EisenhowerPDF)
by phil94
Template Notecards
 
So we have an exam on Templates coming up and our teachers letting us bring a notecard (YAY)! (: Only problem is, I'm not sure what to put on it. I have ide...
[1 reply] : I would put on them what every you have on your notes from class. ;P ... (by giblit)
Makefile
 
Hi guys.I have a problem about makefile. I hava a diagram following.. [url=http://hizliresim.com/x8Gj6V] http://i.hizliresim.com/x8Gj6V.jpg I wrote a makefi...
[7 replies] Last: [code firstline=5]prog1.exe: x.o y.o libpet.a $(CC) x... (by LB)
link list to store student ID, and gpa
 
So I have to store a student Id and gpa and name in a linked list. I keep getting error messages. Like: lab 20.cpp(43): error C2628: 'Student' followed by 'int'...
[1 reply] : struct Student { string name; double gpa; int id; Student *next; ... (by Yanson)
How to get relative address of member of Class of Struct
 
How to get relative memory address of members of Class or Structure ?? I want to auto scan the members of Class/Struct, and show the address/value like the "w...
[2 replies] Last: For standard-layout types, the offsetof() macro in <cstddef> http:... (by JLBorges)
by shaytn
Need help with Program
 
This program is supposed to take integer score inputs from the keyboard into an array and use a sentinel of -999 to end the process.It should call a show() func...
[3 replies] Last: Try going back to basics. Your program requirements are that it needs ... (by LB)
by quayda
Nested Loop Help
 
So, I've written part of this program, basically just gathering all the info so far. But, I need the program to now calculate, and calculate on an interval. How...
[2 replies] Last: Wow, thanks. That helped a lot! Now, I'm just having trouble having th... (by quayda)
no match function for 'getline'
 
I'm half a beginner of c++ programming. I just want to try out getline function but there're errors and i don't know what causes the error. The testing code is ...
[2 replies] Last: Thank you! (by alvinsunyixiao)
by Maissa
problem with return and calling
 
so what i want to do is design a program that will give me the entered grades by order , the thing is .i don't know how and i have to use a struct and a functio...
[2 replies] Last: Search "passing arrays as function parameters". You will find your ans... (by Ceset)
Vector Bag ADT problem
 
I have to write a program (proj2.cpp) designed to overload the + operator in order to come up with the union of two vector-based ADT bags. Here is the part of...
[10 replies] Last: > I realize I have to link them somehow http://www.cplusplus.com/doc/t... (by ne555)
by Ram1
Help with array Pleaase
 
How to write a function that receives an integer array along with its length. the function calculates and returns the sum of the squares of all the odd numbers ...
[2 replies] Last: The array size is a constant integer. I'd usually put the const keywor... (by wildblue)
Problems with kbhit().
 
Hello. I am making a game where it detects if a key is pressed or not, and i am using kbhit(). But once a key is pressed, kbhit always returns 1, even if there...
[2 replies] Last: It works fine now. Thanks (by hakeris1010)
Snake game! (windows console)
 
Hello! I have finally created my simple Snake game, and i want to share a code with you. I have written comments for you to know how it works. I am still noob...
[3 replies] Last: Thats all my code! Thanks for watching! (by hakeris1010)
April 2014 Pages: 1... 363738394041
  Archived months: [mar2014] [may2014]

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