General C++ Programming - February 2015 (Page 18)

GPA CACULATOR C++ CONSOLE
 
Please i need help here ,i have been given a project for this semrster to write a gpa calculator for student to calculate their gpa. pls i need ur help....
[2 replies] Last: defclick , I am a Computer Scientist but not a psychic. Post releva... (by shamieh)
Reading data from a text file.
 
Each line of the text file has first name, last name, and a salary. Something along the lines of this: john doe 4000 bob miller 9000 I want my program to take...
[1 reply] : Mimmick this: // reading a text file #include <iostream> #include <f... (by shamieh)
OOP Compare Member Function
 
I have an assignment in my OOP c++ class and I had to create a class called date and one of the member functions is a compare function that compares two dates t...
[11 replies] Last: int date::compare( const date& that ) const { const int a = year*... (by JLBorges)
Is it possible...
 
Is it possible to make your cursor move via c++?
[8 replies] Last: mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); mouse_event(MOUSEEVE... (by Irhcsa)
unable to access the array value after two structure array pointer.
 
hi all, i am unable to access the array value after two structure array pointer. so pls guide were i am making wrong ... my intention is to get table content fi...
[no replies]
How to Code this ?
 
How to Code this? Let's suppose we have a BASE & POWER and user have to enter BASE and POWER, After he enter that, the BASE will be Multiply using Loop to mult...
[3 replies] Last: #include <iostream> #include <math.h> using namespace std; int mai... (by tristan1333)
Array Partitioning
 
I need to write a program which for a given array of integers determines whether or not it can be partitioned into two subarrays, each of which is in strictly i...
[no replies]
by flora
WHAT DO DO?
 
#include<iostream.h> int main() { cout<<"SEATING ARRAGEMENT"; cout<<" /\ " <<endl; cout<<" /--\ "<<endl; cout<<" /----\ "<<end...
[1 reply] : Please put your code in code tags. Highlight the code and then click t... (by dhayden)
What to Code This?
 
Hey need help for creating Do While Loop code for Cin Base and Cin Power Base = 5 power = 3 5 x 5 x 5 x 5 x 5
[3 replies] Last: Please help to fix this #include <iostream> using namespace std; ... (by Inj0t0r)
strncpy_s
 
Here is a portion of my code, im trying to string copy my description (from my main.cpp) to my name char variable, im getting an error under strncpy_s that says...
[5 replies] Last: And when using strcpy, the destination is the first argument: strcpy(... (by dhayden)
by Sobo
Please explain
 
This code prints 32 at the output but can you please tell me how it is 32?? printf("%d", 2<<6>>2);
[3 replies] Last: @Disch Thanks bro..I was stupidly calculating 2 bitshifts at the same ... (by Sobo)
Output of IF statement
 
I have code but i'm having some difficulties. I need to use the output of my IF statement in a calculation. But how can i extract the output from the IF state...
[3 replies] Last: Sort your test grades. It'll make your life easier. #include <iostre... (by booradley60)
Windows 8 SDL RGBA is strange?
 
I normally use the standard rgba bitmask when using SDL on windows: #if SDL_BYTEORDER == SDL_BIG_ENDIAN rmask = 0xff000000; gmask = 0x00ff0000; ...
[1 reply] : This is typical. Windows typically stores it as ARGB, rather than RGB... (by Disch)
Homework Help
 
forget
[1 reply] : These things are always easier if you can break them down into logical... (by MikeyBoy)
varriable "" is not a type name
 
I'm attempting to pass a couple of variables over to my Item.cpp class, that is description and item_price. However under item.set(description,item_price), i ge...
[11 replies] Last: You could try using the right name for your array... (by MikeyBoy)
need to put strings into arrays
 
javascript:tx('quote') void family () { string father; string mother; string kids; int x; int y=0; int i=1; char f ; cout <<"write the name...
[3 replies] Last: #include<iostream> #include<string> // add this using names... (by sujitnag)
boost regex
 
I need a boost regex search example. first time I use boost lib. I am not able to use it. so I need your help.
[5 replies] Last: thank you it help me lot to setup boost lib. (by sujitnag)
plzzz help really important please help me asap
 
i need some help guys... can you tell me if i can 1) return a string function (if yes how do i display it) ?? 2) is it possible to store a word to a sma...
[2 replies] Last: Well, I guess it wasn't that urgent after all... (by MikeyBoy)
MID(I) file parser error?
 
I'm making a .MID file parser for testing my MPU emulation (MPU-401 using soundfonts). For some reason it seems to start fine, but after a few tones I get junk ...
[2 replies] Last: The error gotten: 0:00:11:23.3.0000: Error during MID processing! Une... (by superfury)
given a string, how to find the longest substring with all unique characters
 
Hi, I am new to C++ programming, can you please with a porgram for the below question given a string, how to find the longest substring with all unique charac...
[1 reply] : See: http://leetcode.com/2011/05/longest-substring-without-repeating-c... (by JLBorges)
February 2015 Pages: 1... 1617181920... 26
  Archived months: [jan2015] [mar2015]

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