Beginners - August 2014 (Page 38)

Help in Deleting a Record
 
Hi guys, can anyone help me in deleting a record? I can't figure out my deleterec function. #include <stdio.h> #include <string.h> #define size 100 #...
[4 replies] Last: Hey thanks! i figured this out by your first comment, even though it s... (by Omega11)
Yet another Nim question
 
Hi, I am still working through the exercises in C++ Without Fear with a student, & after a break we are back at it. I have not programmed since I took C++ bac...
[4 replies] Last: lsk asks: EDIT : Why the second code you don't place it in code tag =.... (by noobtutor)
c++ store program
 
Write your question here. Hi guys, my program is a mini-store. My problem is that I want to substract the number of the item that the user wants to buy out of ...
[1 reply] : You could just make a public function called "sell" or something like ... (by discofire)
by SVcpp
Help with static cast
 
I'm trying to learn how to use static cast. I need help understanding why my code isn't working when I try to create a while loop changing a char value to a int...
[2 replies] Last: That's why I'm asking other people. It didn't I was just trying someth... (by SVcpp)
by Yeech
Incorrect calling of function
 
When i attempt to call my function, I'm receiving this error message for line #29 "`nbrOfRows' undeclared (first use this function)" . IDK what this means. Ple...
[2 replies] Last: Nowhere. Just in the function prototype. Declaring int nbrOfRows in... (by Yeech)
Random Number repetition with 'for' loops.
 
Hi this is my first post and after using this website it's helped me out quite a bit and everyone seems very helpful. I was working on some homework and I'm sti...
[2 replies] Last: It worked! Thank you so much! Makes sense too haha. Thank you again, m... (by R2BeepBooop)
Array not Passing Parameter to function Main()
 
Hey guys, I am having problems passing array values from a sub function back to my main function. For Ex: int getInventory (vector<string> u, vector<string...
[1 reply] : If you want any of the changes made inside your function to be reflect... (by jlb)
convert character integers to integers
 
I was writing a programme which required a input of a number with a ? in between. You need to find the missing digit such that the number fulfilled certain cri...
[3 replies] Last: You could use atoi http://www.cplusplus.com/reference/cstdlib/atoi/ (by Codermik)
by SVcpp
HELP with line 47-49 of my code?
 
Hello, I've tried looking into this but I'm not finding a direct answer online. I'm writing a program that will take in the users name and major. It will capi...
[9 replies] Last: @SVcpp A double equals, is used to check if variable one 'IS EQUAL TO... (by whitenite1)
by SVcpp
Help with if statement
 
Hello again, I've been struggling with this code for a while. I need help solving my if statement issue. The problem is that I need my if statement to print ...
[2 replies] Last: Merely adding header for std::string does not solve the problem. The ... (by keskiverto)
C++ Doesn't calculate decimals.
 
Hello anyone im a beginner to C++, i tried to make my own program which would calculate Pi. It only shows 3 instead of the decimals. If anyone could analyze and...
[5 replies] Last: Okay, i will definitely start using the code tags. Apperantly i'm doub... (by Slashdash)
How would you go about making an age calculator?
 
I've tried different codes, surprisingly of the ones i've tried works. If you could give an example of one which functions or so, i'd be more than happy. My pro...
[1 reply] : please don't duplicate your question (even the first one was more clea... (by JewelCpp)
Errors in Program
 
I keep getting errors with this program in Visual Studios. #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main...
[1 reply] : You forgot to include <string>. (by Peter87)
Passing object by reference
 
I have this method that takes a pointer to a class object and right now its returning the location in memory 0x100300000 . I've tried tweaking the function in ...
[4 replies] Last: Ahh that worked, I tried that earlier but I mixed up the uses of * and... (by DomBavetta)
Prime Numbers
 
Hi I have this code that works for finding a user defined amount of prime numbers. I however do not completely understand it and was wandering if someone co...
[4 replies] Last: Cool thanks! (by JasonMcG)
2d Array and File Handling
 
Background: I'm attempting to read through a 2d array and find values that coincide with row numbers and column numbers. Question: How do I read va...
[2 replies] Last: Well wont it read as a string? Ideally, I want to assign a variable of... (by rayRase)
memory mapping
 
Can someone point me in the right direction. I want to open a file of a very specific size. from there I want to assign pointers to various bytes in memory I...
[5 replies] Last: Regarding the second snippet: int32_t is a type that is guaranteed t... (by AbstractionAnon)
SFML Text not Displaying?
 
I'm new to SFML (and external libraries in general - I messed around with OpenGL and GLUT for awhile, but it was long ago and I only ever messed around with sha...
[4 replies] Last: Thank you so much! I'm on a Mac, so I had to do it manually, but the c... (by closed account j1CpDjzh)
by jovian
Help ! please
 
Hello i'm working on a project in c++ that convert a text to a language that i want and display the result example : " string x; if (x= "a") { printf("%");} " ...
[10 replies] Last: Are you looking to make this a graphical application, or something tha... (by discofire)
simple typedef definiton
 
how do you define an alias for the type of a const pointer to const ? typedef int const *integer; // alias for int const* int ival = 10; integ...
[2 replies] Last: > how do you define an alias for the type of a const pointer to const ... (by JLBorges)
August 2014 Pages: 1... 3637383940
  Archived months: [jul2014] [sep2014]

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