Beginners - February 2013 (Page 42)

by Pebble
Vector pointer.
 
I'm trying to get the user to input 10 word's one at a time and store them in a string vector as they are entered. The biggest problem so far has been using a v...
[5 replies] Last: Thank's L B, Sorted. Is there any way i can improve my program? Only... (by Pebble)
Drawing A Box
 
I Can't Seem to get this... Can someone help me? I just need to input some integers rather than i programmed it to make when i run it. #include<stdio.h> ...
[no replies]
by ihato
Converting a binary input to long integers
 
A user has to input two numbers in binary for example like this: 10001010101110100101101111100 10101010000010111110011111101 I could just save that in a ch...
[no replies]
by kiste5
need help with hw
 
can someone expalain me this? i have no idea what i have to do.. • Write a program that asks the user to input an integer and then read the integer, •...
[10 replies] Last: I'm sorry i told you wrong where you have while (n!=2) change the ... (by supperpiccle)
by xii
Line keeps disapearing
 
Class assignment food appears of different line when outputted I have changed the code to run the report once to make diagnosint the problem easier #include <...
[1 reply] : Output looks like: Food Description Calories ... (by xii)
Slot Machine (Jumping into c++)
 
Hello there c++ programmers. I have a small, small problem. Yet it irritates me slightly. As I am interested in picking up everything I can learn, since (as ...
[2 replies] Last: Yeah, it's a good book hehe ^^. Anyways thanks, it worked! When I tr... (by Minimacfox)
Error: expected unqualified-id message
 
Hi, I am having trouble getting the following code to execute. Just need to figure out what I am doing wrong. Any suggestions? error: expected constructor,...
[1 reply] : Normally that error means you have << going the wrong way: std::cout ... (by Pickle Gunner)
Can someone please explain looping to me?
 
and what does it mean when you set it up count = 1;? or if it is count = 0?? thanks
[4 replies] Last: Thanks guys I appreciate it. (by closed account 4wRjE3v7)
Printing n rows of digits (nested loops)
 
Hello all, I'm beginning to learn C++, and I need to write a program that prints n rows of digits. The nth row needs to read 1234...n. Also, if a row has mor...
[3 replies] Last: I'm working on the same problem, but I'm absolutely stumped as to wher... (by Gap87)
by ihato
How to declare a string outside the function but define it's size inside?
 
//HERE! int main(){ int N = 6; char S ; //I don't want this here, but up there (where "HERE!" is) return 0; } I could just do: char* S;...
[1 reply] : you can do it c-style: extern S (by closed account Dy7SLyTq)
doing loops with Ifs..can't figure out why it wont add them up
 
basically im asking the user to enter numbers. IF the numbers are greater than 100, give them a discount. This part i got working fine, however i now need to ad...
[3 replies] Last: first on lines 2 and 3 remove the .h and put a c in front of the the h... (by closed account Dy7SLyTq)
Time Intervals
 
HI I'm trying to write a program that reads the height of a tower and how long it would take an object to hit the ground. I think most of my code is correct but...
[9 replies] Last: yes I do. why would you need it if i may ask? (by mirec)
BST implementation help
 
I am working an a BST implementation for class and I need help pinpointing the cause of my segfaults in my insert function code. My binary node's look like: ...
[5 replies] Last: I think you have a design flaw. If insert can only be called with a va... (by LB)
Help with strings...
 
#include<iostream> #include<cmath> #include<string> using std::cout; using std::cin; using std::endl; std::string number1 = "1234"; ...
[2 replies] Last: I understand this is not a homework site but I created this program an... (by bruntmjust)
Stuck on a class assignment
 
For my class assignment, I need to be able to expand postal state abbreviations into the full state name. The program reads an input file containing some abbre...
[2 replies] Last: @toum The assignment called for use of C strings - so std::string i... (by TheIdeasMan)
by foop
Best practice for include and using statements.
 
I've got a program that uses three files: main.cpp, date.h, and date.cpp. I've read that you shouldn't use the whole standard namespace if you don't have to. ...
[1 reply] : > if that header file were to be reused in a different program that do... (by JLBorges)
pointer and struct allocation
 
hello!! i my source code i use the following structs: typedef struct { uint8_t source; uint8_t destination; }IP4Hdr; typedef struct { IP4Hdr *ip4h; uint16_...
[2 replies] Last: you 're right!!!! thanks a lot Peter! (by drazenmozart)
Run SDL application from IDE
 
Hi all, I have an SDL snake game that uses .png textures. I want to run it from Visual Studio 2012 to debug. The problem is, when I start it, it gives an 'Unha...
[7 replies] Last: Misread the question sorry about that. (by closed account 3qX21hU5)
by Ch1156
SDL Help please
 
Ok so i instaled SDL into code blocks and im happy with how easy it is, now i was following a tutorial and he just lumped everything into main which i cannot st...
[12 replies] Last: I know how to use classes, sort of. I wouldnt say my knowledge of clas... (by Ch1156)
dll in linux?
 
Hey there, i got a little problem. we have to work with a special dll who generates important informations. the problem is, that our system is linux and is i...
[1 reply] : I don't think it's possible. AFAIK, a DLL is already compiled and a fo... (by ResidentBiscuit)
February 2013 Pages: 1... 4041424344... 67
  Archived months: [jan2013] [mar2013]

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