Beginners - April 2012 (Page 51)

problem in classes
 
this is the question Write two classes Class RestaurantMenu that has the following members class RestaurantMenu { double price ; string Menu ; int numMeal...
[1 reply] : if this web is to help student where is the help then ??!!!!! (by Reema Alqerm)
Sorting in Linked List
 
Can anyone please help me that how do I do sorting in a linked list? I have to use Bubble Sort to done my assignment.
[9 replies] Last: Oops sorry it was an extra line in the end of case part. Thanks :) (by Waleed Azam)
by Owain
Getting substring from another string up to a certain point
 
Hello, in my program I have this function: const char * get_substring_until_point(const char * s_stringToSearch, int i_endPoint) { const char * s_tempSt...
[2 replies] Last: Thankyou for that :) Its working now :) (by Owain)
3 little complile errors
 
I'm must write a program that moves each element of an array to the left with 1 position. I get 3 errors when I compile it and I don't know why. #include <ios...
[3 replies] Last: It will still be passed by reference, since you're passing a pointer. (by TheDestroyer)
Size of class
 
CASE without member class temp { public: private: }; int main() { temp obj1; cout<<sizeof(obj1); return 0; } output = 1 CASE with ...
[no replies]
Pointers to functions
 
Hi, I have problems understanding this. Questions below // pointer to functions #include <iostream> using namespace std; int addition (int a, int b) { r...
[8 replies] Last: Thanks (by Mtutnid)
by mania
sqlite database program
 
Hi, How to insert image to sqlite database table , and i have created table in coding with the qt application bt database cannot open is displaying how to...
[no replies]
redefinition; different basic types error
 
A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in exc...
[no replies]
parking garage assignment
 
Hello I have been working on this code for days and I am having so much trouble.. I have no idea what I am doing and really appreciate any help I can get! Also ...
[7 replies] Last: Sorry don't look like it :( but here part, to get elapsedTime. #incl... (by Shinigami)
A program that spells a float number
 
Can someone help me with a program in c++ that spells a float number
[14 replies] Last: Would you please give an explanation how to use an union correctly. (by frema)
is this even possible? to not loop
 
I'm trying to solve a problem where my code seems to loop continously when it should only do it till the for/if statement equations say so. but for some rea...
[no replies]
Isolating numbers from a string.
 
Hello, for my assignment, we have to read in a file which contains a series of numbers. The file will look like this: i1 i2 i3 i4 i5 d6 i7 d8 i999 The seque...
[2 replies] Last: Thank you, that did it! (by fidelcashflo)
PROGRAMMING ISSUE USING THE WHILE LOOP
 
I am unable to get the following program to run properly. It is supposed to start at 99 and count down to 0, however no matter what number I use for int x, it w...
[9 replies] Last: Did it worked after all ?:)) i would be extremely happy to find out th... (by TwoOfDiamonds)
Is this supposed to compile?
 
Using MinGW GCC 4.6.2, I found that my code still compiles if I don't have std:: in front of some of the functions (specifically, it seems, the ones that are ...
[6 replies] Last: If you want to talk about maximum performance then why even use C or C... (by IceThatJaw)
delay function/pwm outputs
 
hi i want to learn how to make a delay in a program and how to out put a pwm signal. i have used arduino c++ coding before but the commands are a bit different ...
[4 replies] Last: if you want a delay make a function for it. void wait(int seconds){ ... (by ui uiho)
Class/Object Help
 
#include <iostream> using namespace std; class HelloClass(){ //*Error: expected unqualified -id before ')' token public: void saying...
[3 replies] Last: class ai { private: int row, collumn, returncordiate ; //row... (by ui uiho)
by Ch1156
erasing certain lines
 
I am making a program and i want it to show a number, and after a certain amount of seconds i want it to delete that line because its a memory game where it sho...
[3 replies] Last: this is hard to do because c++ was not built to be consul dependent an... (by ui uiho)
function program
 
Hi, First year programming here and ran into some trouble that I can't seem to figure out. The purpose of the program is to ask the user to type in a string of ...
[13 replies] Last: By looking at the name of your variable I assume that you only want to... (by frema)
Help me understand this please.
 
Hello, I'm doing some beginners c++ and i have trouble understanding this particular part of a code. I wonder what the V[i-1] has to say in this code? Why...
[4 replies] Last: Say V = 45 and V = 15. If you're running through a loop and i is cur... (by Need4Sleep)
must have class/struct/union
 
I changed my code so it does not need getline, however I am now having errors with my functions lines 31-35 and I am not sure if it is okay to have line 11 wher...
[7 replies] Last: I do not really understand how to use getline so I am trying to do it... (by user056)
April 2012 Pages: 1... 4950515253... 66
  Archived months: [mar2012] [may2012]

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